suport sampling params/max new tokens

This commit is contained in:
Wing Lian
2025-05-25 17:00:12 -04:00
parent 505009b454
commit 9899c924f9

View File

@@ -231,6 +231,9 @@ class OnlineTeacherCollator(KDBatchSamplerDataCollatorForSeq2Seq):
"max_new_tokens": 0,
"skip_special_tokens": False,
"temperature": self.kd_temperature,
"sampling_params": {
"max_tokens": 0,
},
}
# Initialize with empty lists, so if API call fails, these are returned.