Update README.md
Browse files
README.md
CHANGED
@@ -33,14 +33,13 @@ with torch.no_grad():
|
|
33 |
out = model.generate(input_ids,
|
34 |
do_sample=True,
|
35 |
num_beams=4,
|
36 |
-
|
37 |
top_p=0.9,
|
38 |
top_k=50,
|
39 |
max_length=250,
|
40 |
min_length=50,
|
41 |
early_stopping=True,
|
42 |
-
|
43 |
-
no_repeat_ngram_size=3
|
44 |
)
|
45 |
|
46 |
generated_text = list(map(tokenizer.decode, out))[0]
|
|
|
33 |
out = model.generate(input_ids,
|
34 |
do_sample=True,
|
35 |
num_beams=4,
|
36 |
+
temperature=1.1,
|
37 |
top_p=0.9,
|
38 |
top_k=50,
|
39 |
max_length=250,
|
40 |
min_length=50,
|
41 |
early_stopping=True,
|
42 |
+
no_repeat_ngram_size=2
|
|
|
43 |
)
|
44 |
|
45 |
generated_text = list(map(tokenizer.decode, out))[0]
|