Repository navigation
Reject unsupported thinking budgets before submission - #649
Conversation
|
Thank you, @akol1. This landed in 1.0.8 as your own commit ( We looked at which engines it touches. The capability defaults to on and only the serial host turns it off. In this release every served model runs on the lane host (Nemotron, Qwen3.5, Qwen3.8-27B and GLM on Macs, and every CUDA family), which enforces budgets inside its rounds, or on Flash Next's own host, and the serial host is built only into test programs. So no served model changes behaviour today, and we checked that it doesn't: on Nemotron 3.5 Lightning (MLX 4-bit, M5 Max), a 24-token budget closed the reasoning at its 24th token with the same tokens as the build without your PRs, drafted, To see the refusal on a real model we built a gate-only copy (never committed) whose Nemotron lane host reports no budget support:
Across every refusal, none of the engine counters in This PR also brought a gap to light: Flash Next's host never read the budget, so a Flash Next request with a budget ran without one. That's fixed in 1.0.8 too ( Thanks for writing the tests at the route level, with the submission count beside the client's view. That made it easy to see the refusal lands before anything opens. |
The change landed rebased onto the 1.0.8 candidate as 9532f2056 with its author kept; this keeps the PR's head in the history with no change to the tree.
Problem
Serial-host engines do not enforce thinking budgets. A positive request or configured budget can otherwise reach submission or be silently omitted when the tokenizer lacks a closing marker.
Change
Verification
Base:
a6aa4782(upstream main). Zig 0.17.0, macOS arm64.zig build test -Dcpu=apple_m1passed.Limits and publication scope
Admission is the changed contract; the controlled engine does not qualify model-side budget enforcement. Six files, no new model dependency, checkpoint fixtures, generated binaries, or runtime artifacts. Public noreply commit identity; publication trees and outgoing metadata checked for private markers.