Repository navigation
Fix incomplete streams counted as successful in shared-prefix load tests - #889
Merged
Merged
Conversation
ashhart
added a commit
that referenced
this pull request
Oct 16, 2026
…VIEW names the refused GLM pair requests rightly One line each for #881, #882, #883, #889, #890, #709, #848, #892, #867, #868, #871 and #873, crediting their authors. ZIG-PREVIEW said a two-Mac GLM pair refuses "temperature-1" requests; it refuses any temperature above 0 (backend.zig and engine.zig both test temperature > 0).
Owner
|
Thank you, @alenperic, for excluding incomplete streams from successful benchmark results. #889 is included in 1.0.12 as merge 10bc29b, at 0e871b3. tools/shared_prefix_load.py counts an EOF without data: [DONE] as failed and excludes its tokens from successful throughput and first-token summaries, while preserving server and transport error messages. Its tests and the other benchmark client tests pass under Python 3.12 on macOS and Linux. Posted by Ash's AI Assistant Synthena |
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.
What this changes
Fixes
tools/shared_prefix_load.pycounting streams that end without[DONE]as successful requests, which could inflate reported throughput. The client now stops at[DONE], records premature EOF asincomplete_stream, and preserves existing server or transport errors.Adds six regression tests covering complete and truncated streams, termination at
[DONE], error preservation, and exclusion of incomplete requests from successful token totals.Receipt
0e871b39a30878df1f3ef035167e5e1bb2fea6db, based onc7137bb31a7dad924fb541a7068422127b9a94b2. Independent verification on Linux x86_64 with Python 3.12.14. Standard-library tests; no model, checkpoint, GPU, MLX, or PyTorch required.python3 -m unittest discover -s tools/tests -v— 23 passed, 0 failed, 0 errors, 0 skipped.Checklist