Skip to content

train 1120010508: #3239 #3287 (CI only) - #4119

Closed
ashhart wants to merge 18 commits into
mainfrom
lead/train-1120010508
Closed

ashhart wants to merge 18 commits into
mainfrom
lead/train-1120010508

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3239 #3287 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.

cshintov and others added 18 commits November 20, 2026 01:05
… float64 forward

One stage vocabulary (families/qwen3_5/stages.zig): the residual stream after the embedding and after each
layer's mixer and MLP, then final (the normed rows the head reads, not the residual) and the logits.
tools/zig/qwen36_stage_ref.py measures each against float64 of the checkpoint's exact weights; a non-unit
final norm fixture refuses a residual labelled final.
…, as the recorder allows

While stages record, the last layer counts as tapped, so main's keys-only last layer stays off and the
recorded stream and final are real rows. The stage hook (planes and glue) and the admit check move into
stage_planes.zig, so the runner needs no forwarding function, and planes.end runs after the round is
committed, so a recorder error leaves the runner consistent.
The A3B config in qwen27/config_test.zig is a new real config: Metal's 27B
and HIP admit it, as main's rules did; the 2B, CUDA and XPU keep their
refusal. The stage reference test needs mlx, which CI does not install.
… refuses the 35B-A3B

Stage recording is compiled in only when the program's root declares
qwen27_stages (tf-qwen27-run). The served engine keeps main's pass hooks
and Runner: tensorfold-native's machine code, constants and data are
byte-identical to a build with every stage line removed.

--vision on Qwen3.6-35B-A3B is refused by name: this slice qualifies its
text path only.
…f its rows, bit-equal to one row a launch

The decode gate/up and down for an expert's slot of 2-16 rows ran Kimi's four-row passes: two rows
paid for four rows of arithmetic, five rows for two passes of four, each rereading the weights. The
new tf_dsv41_xp_upc_rows and tf_dsv41_xp_down_rows decode each 32-group of an expert's MXFP4
weights once per pass and apply it to every row in it (passes of 2, 4, 6 or 8 rows for gate/up, 2
or 4 for down, rows past the slot repeating its last row unwritten), reading the activations
straight from device memory. Each row's chain is the one-row kernel's: 32 products in k order from
zero, then its group's scale, then the same tree and epilogue, so a row's bits are the same alone
or with any other rows and routing. Slots of one row keep tf_dsv41_xp_upc_one/down_one unchanged.

Contract: registrations with every row on the same six experts (gate/up coded and down, gates 1-4
against the oracle), one planted control a kernel (rows reading their pass's first row, red at
shapes), gate-5 records for both launches, and a probe holding a launch's act, out and combine
output bit-equal to each row launched alone at 1-16 rows on the same, disjoint and random experts,
with NaN and Inf planted, plus its own control. Device test: the same equality at 2-16 rows.
…olumn a simdgroup for big K

The one-launch FP8 row kernel now issues every weight and scale load before its chains, and an output's
tile roots meet in one simdgroup's butterfly (lane k holds tile k's root, zero past the tiles), the same
zero-padded pair tree that one thread used to walk over 32 roots. A new block kind d takes one column a
simdgroup over 32-group tiles. kindOf picks d for K in whole 1024s with 2048 or more columns in the batch
at 1 and 3-5 rows, and b otherwise; c is no longer picked. The contract's row invariance covers every kind.

Bits unchanged: release layers 2 and 21 give main's output and KV hashes at 1 and 4 rows, 20 of 20
concurrent launches equal, and the float64 real-layer checks pass.

M5 Ultra, release layer 2, the 8 FP8 launches timed alone: 1 row 247 -> 215 us, 4 rows 325 -> 281 us,
5 rows 360 -> 316 us. x40 round: 1 row 25.1 -> 24.6 ms, 4 rows 41.9 -> 40.0 ms, 5 rows 47.5 -> 45.7 ms.
@ashhart ashhart closed this Nov 20, 2026
@ashhart ashhart reopened this Nov 20, 2026
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

CI wait on this tip (no result in 240 min); the PRs land the usual way.

@ashhart ashhart closed this Nov 20, 2026
@ashhart
ashhart deleted the lead/train-1120010508 branch November 20, 2026 05:26
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