IlyaGusev commited on
Commit
27ed10e
1 Parent(s): 9d15e61

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -52,8 +52,7 @@ input_ids = tokenizer(
52
 
53
  output_ids = model.generate(
54
  input_ids=input_ids,
55
- no_repeat_ngram_size=3,
56
- early_stopping=True
57
  )[0]
58
 
59
  summary = tokenizer.decode(output_ids, skip_special_tokens=True)
 
52
 
53
  output_ids = model.generate(
54
  input_ids=input_ids,
55
+ repetition_penalty=2.0
 
56
  )[0]
57
 
58
  summary = tokenizer.decode(output_ids, skip_special_tokens=True)