Repository navigation
Conversation
…ens; one stalled 60 s is cancelled A streamed reply's tokens went to its mailbox with no bound, so a client that read slowly, or stopped reading without closing, left its lane decoding text nobody was taking. - The mailbox counts a streamed reply's tokens that have landed and are not yet written to the client, and hands the count to the engine as Request.unread. A whole reply passes none and is never watched. - Before each turn the shared lane host holds a stream whose count reaches 1,024 (Stream.paused) until it falls to 512. A stream with a step queued ahead lands it in its next round first, so a held stream keeps no draw in flight (GLM's ring would refuse a peer's next one). - A held stream whose client reads nothing for 60 s goes on the cancel list a disconnect uses; any read restarts the 60 s. - The host lifts only holds it placed: a stream its backend paused (Flash Next's sized sessions) stays paused. - A lone driver hands back a stream whose reader is behind, and reclaim leaves such a stream in the lane core. - With every stream held and no cancel waiting, the engine thread waits up to 2 ms for an arrival, outside its activity scope, instead of turning empty rounds. The scan runs on the engine thread with no lock or clock read while no stream is held. Host tests with the fake backend cover a normal reader, a slow reader in stepped and drafted rounds, a stalled reader beside a fast one, a four-slot ring, the stall cancel, the lone driver and the hold rules; a server test checks the count a streamed reply's engine sees. docs/api.md names the limit, the resume point and the timeout. Fixes #3198
…ne limit Keep main's wait_reason and fell_back fields in lane_job.Job and place the PR's backlog field after them. Join lane_host.zig's two trailing test blocks into one (all imports kept) so the merged file is 600 lines. Add the CHANGELOG entry under Unreleased.
The value is registered in platform/environment.zig (new .parallel kind: auto or 1 to 4096), so a value outside the forms is refused by name at startup with the bad value escaped, instead of clamped. main applies the environment's text as the default lanes only when --parallel is absent, through environment.parallel(flag, raw) in the module's device() shape, and cli.parse's other callers (benchmark client, fake server) never see the setting. Tests: unset, set, flag wins, blank default, refusals.
…artup check A setting the flag supersedes is not a setting, so the startup refusal skips TENSORFOLD_PARALLEL when --parallel is on the command line, as a flag-named TF_CUDA_DEVICE already does.
The parallel_named field's comment folds onto its line and the --parallel branch sets both fields in one destructuring assignment; no behaviour change.
…review: no direct getenv) main.zig took the raw value with sys.getenv, which the lean rule refuses for a setting; environment.Process.get reads the same value. The lean count is back to main's 221.
The Metal engine advertises the Qwen MoE family and format but does not admit this checkpoint. Use the documented Python line on Macs and retain native CUDA selection. Keep the catalog, context estimates, and launcher on the same policy. Refs #3710
4 tasks done
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.
CI for a landing train: #3234 #3685 #3738 #3753 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.