Repository navigation
Server: the prompt-chunk startup line prints a 128-token prefill step as 128, not 0,128 - #526
Closed
BobClawblaw wants to merge 1 commit into
Closed
BobClawblaw wants to merge 1 commit into
BobClawblaw wants to merge 1 commit into
Conversation
…tep as 128, not 0,128 The startup line split the prefill step into thousands and a zero-padded remainder, which assumed a step of 1,000 or more. Nemotron and GLM meet that; the Qwen3.5 family's 128-token step printed as "0,128". The status line's comma grouping in live.zig becomes a public `commas` for integers of any size, and the startup line uses it. Seen in the receipt on ashhart#520. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Oct 8, 2026
Owner
|
Thank you, @BobClawblaw, for catching the 128-token startup label. The formatter now prints 128 as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spotted in jkuepker's receipt on #520 (#520 (comment)), and present on
main:server.zig:105printed the prefill step as{d},{d:0>3}of the thousands and the remainder, which assumes a step of 1,000 or more. Nemotron and GLM meet that; the Qwen3.5 family's 128-token step came out asprompt chunks of up to 0,128 tokens.What changes
zig/src/server/live.zig: the status line's comma grouping splits into a publiccommas(buf, n: u64)for integers of any size;groupedkeeps the half-to-even rounding and calls it. Acommastest covers 0, 128, 1,000, 2,048 and 1,234,567.zig/src/server/server.zig: the startup line formats the step withcommas, so 128 prints as128and 2,048 still prints as2,048.Checks
zig build test: 91 of 91 steps, all tests pass.zig build: compiles.zig fmt --checkon both files: clean.Independent of #520; only the two server files.
🤖 Generated with Claude Code