Skip to content

train 1121024604: #3234 #3685 #3738 #3753 (CI only) - #4292

Closed
ashhart wants to merge 17 commits into
mainfrom
lead/train-1121024604
Closed

ashhart wants to merge 17 commits into
mainfrom
lead/train-1121024604

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

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.

ashhart and others added 17 commits November 21, 2026 02:46
…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
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Landed: #3234 #3685 #3738 #3753 as main a8aed33. This PR only carried their CI.

@ashhart ashhart closed this Nov 21, 2026
@ashhart
ashhart deleted the lead/train-1121024604 branch November 21, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants