Expand sampling in generate.py for new test

This commit is contained in:
Eric Wang 2023-03-16 09:58:59 -07:00
parent 9c1933721d
commit c3d94707ec

View File

@ -53,7 +53,7 @@ def evaluate(instruction, input=None, **kwargs):
generation_config=generation_config,
return_dict_in_generate=True,
output_scores=True,
max_new_tokens=256,
max_new_tokens=2048,
)
s = generation_output.sequences[0]
output = tokenizer.decode(s)