Update README.md
Browse files
README.md
CHANGED
@@ -39,8 +39,8 @@ tokenized_poet_start = tokenizer.encode(poet_start, return_tensors='pt')
|
|
39 |
# generated a continuation to it
|
40 |
out = model.generate(tokenized_poet_start,
|
41 |
max_length=256,
|
42 |
-
|
43 |
-
|
44 |
early_stopping=True,
|
45 |
pad_token_id= tokenizer.pad_token_id,
|
46 |
eos_token_id = tokenizer.eos_token_id)
|
|
|
39 |
# generated a continuation to it
|
40 |
out = model.generate(tokenized_poet_start,
|
41 |
max_length=256,
|
42 |
+
do_sample=True,
|
43 |
+
top_k=50
|
44 |
early_stopping=True,
|
45 |
pad_token_id= tokenizer.pad_token_id,
|
46 |
eos_token_id = tokenizer.eos_token_id)
|