forked from p04798526/LLaMA-Factory-Mirror
fix blank line contains whitespace
This commit is contained in:
parent
eb178eaff3
commit
d9a5134617
|
@ -320,7 +320,7 @@ def patch_model(
|
|||
or (gen_config.typical_p is not None and gen_config.typical_p != 1.0)
|
||||
):
|
||||
gen_config.do_sample = True
|
||||
|
||||
|
||||
if "GenerationMixin" not in str(model.generate.__func__):
|
||||
model.generate = MethodType(PreTrainedModel.generate, model)
|
||||
|
||||
|
|
Loading…
Reference in New Issue