Commit d4fef6a
committed
fix: expand stop sequences for Gemma4ChatHandler
- Add `GEMMA4_EOS_TOKEN` and `GEMMA4_STR_TOKEN` to the generation stop criteria.
- Align the stopping logic with the model's `generation_config.json` definitions.
- Prevent potential over-generation by ensuring the model halts correctly at standard EOS or when initiating a tool response.
Signed-off-by: JamePeng <jame_peng@sina.com>1 parent d7478de commit d4fef6a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4656 | 4656 | | |
4657 | 4657 | | |
4658 | 4658 | | |
4659 | | - | |
| 4659 | + | |
| 4660 | + | |
4660 | 4661 | | |
4661 | 4662 | | |
4662 | 4663 | | |
| |||
0 commit comments