aixsatoshi
commited on
Commit
•
311cc5a
1
Parent(s):
5265492
Update README.md
Browse files
README.md
CHANGED
@@ -194,6 +194,9 @@ def predict(message, tokens, temperature, language):
|
|
194 |
**model_inputs,
|
195 |
max_new_tokens=int(tokens),
|
196 |
temperature=float(temperature),
|
|
|
|
|
|
|
197 |
num_beams=1,
|
198 |
eos_token_id=tokenizer.eos_token_id
|
199 |
)
|
|
|
194 |
**model_inputs,
|
195 |
max_new_tokens=int(tokens),
|
196 |
temperature=float(temperature),
|
197 |
+
do_sample=True,
|
198 |
+
top_p=0.95,
|
199 |
+
top_k=20,
|
200 |
num_beams=1,
|
201 |
eos_token_id=tokenizer.eos_token_id
|
202 |
)
|