Skip to content

train 1119142449: #3705 #3726 #3721 #3685 (CI only) - #3987

Closed
ashhart wants to merge 21 commits into
mainfrom
lead/train-1119142449
Closed

ashhart wants to merge 21 commits into
mainfrom
lead/train-1119142449

Conversation

@ashhart

@ashhart ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3705 #3726 #3721 #3685 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.

jschmied and others added 21 commits November 19, 2026 14:24
…d-built copy

GLM's CUDA sampler redeclared sample.cu's Rule and filled it by hand (near 20.0 literal), as MiniMax M3
did before #2680. It now takes cuda.sample.Rule and cuda.sample.rule, which reach the core rule through
lanes.Sampling.gpuRule. Byte-equal: a host test checks the old hand-built rule against rule and ruleFor
over a 4,500-setting grid; the greedy gate (check) is ruleFor's.
The default pass held 1,536 rows while another stream decoded, so a long prompt ran in
passes of 1,536 and each lane admitted 1,536 rows a pass. It holds 3,072 now: a long prompt
takes about half the passes, and each one holds twice the rows.

A row's bits do not depend on how many rows a pass holds. splitK reads the weight's shape
alone, planSlices gives both sizes the fused plan with one K-slice order because the fused
floor is 256 rows, and every other prompt kernel computes a row from its own inputs and its
absolute position. The change moves launch grouping and the pass's device scratch, not the
arithmetic.

The scratch at the default grows with the rows, so the test that bounded it at two gigabytes
bounds it at three and names the default it prices. The startup line's default pass and the
serving pin file follow, and a server started at one stream keeps its 8,192-row passes, so
only a server with more than one stream changes.
…tests and docs

The empty-setting test expected 1536 and the environment table, its help and the recipe still named it as the default.
The test now expects default_chunk for an empty setting and keeps an explicit 1536 case.
…losed think block

Cherry-pick of d4@3ba4225c7 onto upstream main af9777b, review fixes kept:
g.recover (the request's own opt-in) stays the first term of the guard chain,
the reasoning_recovered response field is preserved, and the call-opener and
bare-call cases stay blocked through neverClosed plus callIn. D4's stricter
ask-to-reason semantics ride on g.thinking; main's four behavior pins pass
unchanged.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
…hree tests that pin stop-without-EOS recovery

The endedOnEos term replaces the bare reason==stop check so the guard agrees with 3687's golden pins (harmony/no_end/ignore-eos: no recovery without an EOS-terminated reply). The three thinking tests that asserted recovery on stop-without-EOS are removed here rather than rewritten, pending the semantic question in the review.

Proved: full suite green on jw16 (0d1a47f + this commit; 37 environment failures in the originals/slide family = D4's own baseline, unchanged), test-golden 0 mismatches, thinking tests 0 failures.
…g fmt the test file

lean_check flagged 4 new multi-line comments in chat_generation.zig (both
blocks collapse to one line each, meaning unchanged); zig fmt had drift in
thinking_request_test.zig from the test-block removal.

Proof: local lean_check 0 chat_generation flags; zig fmt --check clean over
zig/; diff is comment-only plus formatting, suite already green at this
content.
lean_check flagged 1 new comment-past-120-columns at 58ab424; same
meaning, fewer words.

Proof: local lean_check 0 new flags in touched files; zig fmt --check clean.
…e two checkpoint tests, drop the misplaced comment
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.
@ashhart ashhart closed this Nov 19, 2026
@ashhart ashhart reopened this Nov 19, 2026
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Stale CI-only train PR: its train ended on 19 Nov, and the PRs it carried land through their own trains.

@ashhart ashhart closed this Nov 20, 2026
@ashhart
ashhart deleted the lead/train-1119142449 branch November 20, 2026 08:10
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.

5 participants