Explorar el Código

Expand sampling in generate.py for new test

Eric Wang hace 3 años
padre
commit
c3d94707ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      generate.py

+ 1 - 1
generate.py

@@ -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)