Update README.md
Browse files
README.md
CHANGED
@@ -72,7 +72,7 @@ generated_ids = model.generate(
|
|
72 |
top_p = 0.9,
|
73 |
temperature = 0.35,
|
74 |
repetition_penalty = 1.0,
|
75 |
-
eos_token_id=tokenizer.encode('
|
76 |
)
|
77 |
generated_ids = [
|
78 |
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
|
|
72 |
top_p = 0.9,
|
73 |
temperature = 0.35,
|
74 |
repetition_penalty = 1.0,
|
75 |
+
eos_token_id=tokenizer.encode('<eos>', add_special_tokens=False)
|
76 |
)
|
77 |
generated_ids = [
|
78 |
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|