mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #530] high/xhigh reasoning_effort can silently run to max_tokens with empty content when reasoning_budget_tokens isn't set #249
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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: lengthwith emptycontent— 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, withxhighand the officialhigh.Setting
reasoning_budget_tokensfixed 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(especiallyhigh/xhigh), or at minimum a server-side warning/log line when a response finishes withlengthand empty content, pointing atreasoning_budget_tokens.Setup: Windows, dual GPU (RTX 3080 Ti 12GB + RTX 3080 10GB), Swift 1.5 IQ2_XS.
@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": Ninstrata-<model>.jsonsets it for every request (a request's own value still wins).