Skip to content

Expose max_new_tokens run option#74

Open
vladkalinichencko wants to merge 1 commit into
handy-computer:mainfrom
vladkalinichencko:expose-max-new-tokens
Open

Expose max_new_tokens run option#74
vladkalinichencko wants to merge 1 commit into
handy-computer:mainfrom
vladkalinichencko:expose-max-new-tokens

Conversation

@vladkalinichencko

@vladkalinichencko vladkalinichencko commented Jul 8, 2026

Copy link
Copy Markdown

This exposes a per-run max_new_tokens option through the C API and the language bindings.

Some autoregressive ASR families can accept the audio input but still hit the fixed generation budget before emitting EOS. That currently returns OUTPUT_TRUNCATED with a partial transcript, which is correct, but callers have no way to request a larger output budget for longer transcripts.

The default behavior stays unchanged: -1/0 uses the existing family defaults. Qwen3-ASR and Canary just now have a positive max_new_tokens value for single and batch runs, bounded by the model decoder context.

@cjpais

cjpais commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Thanks I will take a look tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants