jinymusim commited on
Commit
442d3a5
1 Parent(s): 801b11e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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
- num_beams=8,
43
- no_repeat_ngram_size=2,
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)