[GH-ISSUE #530] high/xhigh reasoning_effort can silently run to max_tokens with empty content when reasoning_budget_tokens isn't set #249

Closed
opened 2026-11-04 01:41:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @maxlippe-leonardo on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/530

#123 added the fix, but nothing defaults it or warns about it, and it's easy to not know you need it.

5 separate runs here (same prompt, temp 0, seed 42) hit finish_reason: length with empty content — reasoning alone filled the whole budget, never got to the answer. Happened across two engine versions (0.1.32, 0.1.35), with and without a system message, with xhigh and the official high.

Setting reasoning_budget_tokens fixed it in our repro (finish_reason: stop, valid content, actually fewer total tokens than any of the failed runs). Worth noting for honesty: one earlier run at the same effort level with a system message did finish normally without the parameter set, so this isn't 100% deterministic every time at temp 0 — but it was common enough across our testing to be a real footgun, not a one-off.

Suggestion: either a sane default tied to reasoning_effort (especially high/xhigh), or at minimum a server-side warning/log line when a response finishes with length and empty content, pointing at reasoning_budget_tokens.

Setup: Windows, dual GPU (RTX 3080 Ti 12GB + RTX 3080 10GB), Swift 1.5 IQ2_XS.

Originally created by @maxlippe-leonardo on GitHub (Oct 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/530 #123 added the fix, but nothing defaults it or warns about it, and it's easy to not know you need it. 5 separate runs here (same prompt, temp 0, seed 42) hit `finish_reason: length` with empty `content` — reasoning alone filled the whole budget, never got to the answer. Happened across two engine versions (0.1.32, 0.1.35), with and without a system message, with `xhigh` and the official `high`. Setting `reasoning_budget_tokens` fixed it in our repro (`finish_reason: stop`, valid content, actually fewer total tokens than any of the failed runs). Worth noting for honesty: one earlier run at the same effort level with a system message *did* finish normally without the parameter set, so this isn't 100% deterministic every time at temp 0 — but it was common enough across our testing to be a real footgun, not a one-off. Suggestion: either a sane default tied to `reasoning_effort` (especially `high`/`xhigh`), or at minimum a server-side warning/log line when a response finishes with `length` and empty content, pointing at `reasoning_budget_tokens`. Setup: Windows, dual GPU (RTX 3080 Ti 12GB + RTX 3080 10GB), Swift 1.5 IQ2_XS.
Author
Owner

@Niko1221 commented on GitHub (Oct 3, 2026):

Thanks, that's a fair point. Fixed in 0.1.38: when a reply reaches max tokens while it is still thinking, the server window now says so and points to reasoning_budget_tokens. The budget stays opt-in, because a default budget would change answers for everyone. If your clients ask for high or xhigh, "reasoning_budget_tokens": N in strata-<model>.json sets it for every request (a request's own value still wins).

<!-- gh-comment-id:5964030126 --> @Niko1221 commented on GitHub (Oct 3, 2026): Thanks, that's a fair point. **Fixed in 0.1.38**: when a reply reaches max tokens while it is still thinking, the server window now says so and points to `reasoning_budget_tokens`. The budget stays opt-in, because a default budget would change answers for everyone. If your clients ask for high or xhigh, `"reasoning_budget_tokens": N` in `strata-<model>.json` sets it for every request (a request's own value still wins).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#249
No description provided.