diff options
| author | Zitian Gao <zitian.gao@outlook.com> | 2025-05-29 21:11:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-29 21:11:48 +0800 |
| commit | 7e57f275a593820a4a65e6fa4faa75b74f3d8e2d (patch) | |
| tree | 71846b91c66925bacd73a218434b1f3268db8fef /train.py | |
| parent | 6bd72b87d9d9e6b2832e1799b403b23202e54204 (diff) | |
update code format style
Diffstat (limited to 'train.py')
| -rw-r--r-- | train.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -137,7 +137,8 @@ def main(): with torch.no_grad(): gen_ids = accelerator.unwrap_model(model).generate(**enc, - max_new_tokens=512, do_sample=True, + max_new_tokens=512, + do_sample=True, top_p=0.95, temperature=args.sample_temp, synced_gpus=True, |
