fix: 规范 generate.py 命令行接口

- generate.py 清理描述文字,help 统一标注默认值
- max_tokens 默认改为 None,回退 model config max_len
- evaluate_ppl.py 同步清理描述文字
- params.md 同步 max_tokens 默认值
This commit is contained in:
2026-06-19 14:03:02 +08:00
parent 8ab7564d02
commit 7348bac6ab
3 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ See [Inference Guide](inference.md) for HTTP API documentation.
| `--top_k` | int | `30` | Top-k filtering |
| `--top_p` | float | `0.95` | Nucleus sampling threshold |
| `--batch_size` | int | `1` | Batch size for generation |
| `--max_tokens` | int | `2048` | Maximum tokens to generate |
| `--max_tokens` | int | model config `max_len` | Maximum tokens to generate |
Usage:
```bash