diff options
| author | Zitian Gao <zitian.gao@outlook.com> | 2025-06-09 11:13:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 11:13:07 +0800 |
| commit | 6b6fb118f3302e9481f98a02b10535bfb61a67a8 (patch) | |
| tree | 73f4ed1eb2674940c5584e8cfe9ea5e81b4a67fe | |
| parent | a0e165d26adbb4ed157fc8d932b10081aeaa20c5 (diff) | |
fix repetition penalty
| -rw-r--r-- | train.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -141,6 +141,7 @@ def main(): top_p=0.95, temperature=args.sample_temp, synced_gpus=True, + repetition_penalty=1.15, pad_token_id=tokenizer.pad_token_id, use_cache=False) |
