mirror of
https://github.com/tloen/alpaca-lora.git
synced 2024-10-01 01:05:56 -04:00
Expand sampling in generate.py for new test
This commit is contained in:
parent
9c1933721d
commit
c3d94707ec
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user