Update README.md
Browse files
README.md
CHANGED
@@ -81,7 +81,7 @@ device = "cuda:0"
|
|
81 |
|
82 |
inputs = tokenizer2(text, return_tensors="pt").to(device)
|
83 |
|
84 |
-
outputs = model2.generate(**inputs, max_new_tokens=
|
85 |
|
86 |
output = tokenizer2.decode(outputs[0], skip_special_tokens=True, skip_prompt=True)
|
87 |
print(output.replace("model"," "))
|
|
|
81 |
|
82 |
inputs = tokenizer2(text, return_tensors="pt").to(device)
|
83 |
|
84 |
+
outputs = model2.generate(**inputs, max_new_tokens=256, do_sample=False)
|
85 |
|
86 |
output = tokenizer2.decode(outputs[0], skip_special_tokens=True, skip_prompt=True)
|
87 |
print(output.replace("model"," "))
|