config: configurable max_new generation budget (default 16384) so CoT+answer are not truncated

This commit is contained in:
adm committed 2026-11-27 18:13:18 +01:00
1 parent 862897fdbc
commit 4cdc4334d8
6 files changed
+70 -16

No files matched your search

+3 -1
View File
@@ -65,8 +65,10 @@ pub trait Formatter: Send + Sync {
fn model_name(&self) -> &str;
/// The formatter's default token budget when the request sets none.
/// Matches the project-wide generation budget (CoT + answer share it); a
/// dialect with a real tokenizer overrides this from its config.
fn default_max_new(&self) -> u32 {
2048
16384
}
/// Token count of a text, used to route uploads (small-text inline threshold).