mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1035] [CLOSED] serve: share the thinking budget with other apps, like max_tokens and… #2980
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#2980
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1035
Author: @elanonimo832
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:feat/shared-thinking-budget📝 Commits (10+)
fa16567setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it📊 Changes
2 files changed (+25 additions, -2 deletions)
View changed files
📝
serve/server.py(+8 -2)📝
serve/test_server.py(+17 -0)📄 Description
… the effort
The Chat settings a client posts to /settings reach every client through
shared, andreasoning_effortandmax_tokensare among them. The thinking budget (#123) was not, so a client that sets none of its own kept thinking to the ceiling while the Chat settings asked for less.Two changes make it work like the other shared keys:
reasoning_budget_tokensjoins SHARED_KEYS, validated as a whole number of tokens. 0 keeps its documented meaning ("no budget"), so it is allowed there where seed and max_tokens require > 0.Service.runreads the budget aftersampling_defaultsandsharedare merged intosampling. It read it before the merge, so no shared key could ever reach it. The request's own value still wins (an explicitreasoning_budget_tokens: 0keeps turning a shared or configured one off), and the config'sreasoning_budget_tokensstays the fallback.Tests:
test_a_shared_budget_reaches_a_request_that_sets_none(fails with "1 != 2" on the engine prompts before the change) andtest_a_shared_budget_must_be_a_whole_number_of_tokens, next to the existing budget tests. ThinkingBudget 11/11 pass, SharedSettings 6/6 pass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.