squarelike
commited on
Commit
•
ab8d438
1
Parent(s):
9a526db
Update README.md
Browse files
README.md
CHANGED
@@ -75,8 +75,9 @@ def gen(lan="en", x=""):
|
|
75 |
return_token_type_ids=False
|
76 |
).to("cuda"),
|
77 |
max_new_tokens=2000,
|
78 |
-
temperature=0.
|
79 |
-
|
|
|
80 |
stopping_criteria=stopping_criteria
|
81 |
)
|
82 |
return tokenizer.decode(gened[0][1:]).replace(prompt+" ", "").replace("</끝>", "")
|
|
|
75 |
return_token_type_ids=False
|
76 |
).to("cuda"),
|
77 |
max_new_tokens=2000,
|
78 |
+
temperature=0.3,
|
79 |
+
# no_repeat_ngram_size=5,
|
80 |
+
num_beams=5,
|
81 |
stopping_criteria=stopping_criteria
|
82 |
)
|
83 |
return tokenizer.decode(gened[0][1:]).replace(prompt+" ", "").replace("</끝>", "")
|