Update README.md
Browse files
README.md
CHANGED
@@ -52,8 +52,7 @@ input_ids = tokenizer(
|
|
52 |
|
53 |
output_ids = model.generate(
|
54 |
input_ids=input_ids,
|
55 |
-
|
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)
|