radm commited on
Commit
382afa7
1 Parent(s): 5a648b4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
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
- # temperature=1.4,
37
  top_p=0.9,
38
  top_k=50,
39
  max_length=250,
40
  min_length=50,
41
  early_stopping=True,
42
- num_return_sequences=3,
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]