mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #123] Feature request: cap on thinking tokens (like llama.cpp's reasoning_budget_tokens) #63
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#63
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 @joey-j7 on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/123
With
reasoning_effortmedium, Qwen3.8-Flash-Next sometimes thinks past 8k to 12k tokens. Thinking and the answer sharemax_tokens, so some requests end with reasoning only and empty content, and the client sees no answer.llama.cpp handles this with
reasoning_budget_tokensandreasoning_budget_message: once the budget is spent, the model is told to wrap up, thinking is closed, and it writes the answer. Could Strata offer something similar, either per request or as a server default?Setup: Linux, RTX 4080 Laptop 12 GB, IQ3_S, engine 0.1.20.
@technerd-official commented on GitHub (Sep 29, 2026):
Just found out that you can set "Max tokens" inside the chat window "127.0.0.1:8080" (click on the small gear) right now max tokens is set to "Until done" and also the sampling settings can be adjusted. These carry over to an agent in case you use one.
@Niko1221 commented on GitHub (Sep 29, 2026):
Good idea - planned server-side: when the thinking part reaches the budget, append a short wrap-up and
</think>, and continue from there (the prefix is reused, so it costs nothing extra). Keeping this open until it lands.@Niko1221 commented on GitHub (Sep 29, 2026):
Planned as described: once the thinking reaches the budget, the server appends a short wrap-up and
</think>and continues from the reused prefix. Until then, the chat page's max-tokens setting (the gear icon) helps.@Niko1221 commented on GitHub (Sep 30, 2026):
Planned for 0.1.31 as an opt-in: a
reasoning_budget_tokensrequest field (and a config default). At the budget the server closes the thinking block and lets the model answer. Off by default.@Niko1221 commented on GitHub (Oct 1, 2026):
0.1.31:
reasoning_budget_tokensin a request (OpenAI or Anthropic) or as a config default, off by default. At the budget the server closes the thinking block with a short wrap-up and lets the model answer. See docs/DETAILS.md.