Skip to content

train 1121202611: #2464 #4397 (CI only) - #4428

Closed
ashhart wants to merge 20 commits into
mainfrom
lead/train-1121202611
Closed

ashhart wants to merge 20 commits into
mainfrom
lead/train-1121202611

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2464 #4397 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 20 commits November 21, 2026 20:26
…g slot 0's chains on Macs without tensor units
…t and the disk identity, no head pass in shared rounds
…4d4795

Main's b4d4795 (#2761) moved the prompt fit into qwen27_reserve.zig's reserve.fit and reserve.rows, the same
memory.Fit as before. The previous commit's inline fit added the MTP head's keys and values to the ring term; this
passes the same head_kv into reserve.fit's ring argument. Nothing else changes.
…does

The head is a lanes.drafter.Drafter behind lanes.drafted.Drafted: per-stream contexts, a shared round's
streams absorbed and chained in one pass a level, each draft priced by its chance. The Metal backend
gives the drafter the last pass's tapped rows by slot (features, prepare_features); its MTP hooks go.
A chain steps from the head's normed rows, as CUDA's does, and a head pass may run beside a round left
to keep, which reads nothing it writes.
…it is on; docs for --mtp-drafts and TF_Q27_DRAFT_SLOTS
…L_KV_PAGES=1

The head's layer joins the runner's attention count and so the page arena, but its chained rows take no pages.
The M5 refusal and this one are one host-tested function, checked before the head loads.
…ts own file

Pure moves, no behaviour change: decode_round.zig and native/qwen27_served.zig are under 600 lines after the merge.
…rule, so decode_round.zig is under 600 lines

Pure move: Runner.keysOnly and keysForward become prompt_tail.on and prompt_tail.keysForward; layerCaches is pub.
…ines

Main's startup-line wording and the PR's MTP fields took this file to 605. Six standalone comments move onto their statements; no code, flag or token path changes.
main's kv_pages.on() now returns an error union, so the MTP device refusal takes
try on pagesOn().
After main 881e224 (prompt-tail lane blocks) and 4b997f8 (GLM Metal DFlash2 accounting), remove four blank lines from the merged runner/native modules and one duplicate blank from the tail extraction. Source tokens and behavior are unchanged.
…for gate 5

The 14 'glm moe rows' records (9e52d73) fell to the generic 'glm ' branch of the Metal limits resolver, whose key,
'moe', names no generated kernel: the device pass stopped at error.UnknownLaunch after glm_rows_wide_q8. They take
the gather source the loader builds them from (glm/wide.zig), as 'glm rows ' does.
…r adds

#3921 made kernels.zig put `#define TF_GLM_M3_FAST 1` before the KDA prompt
passes and glm_index_nax.metal on a GPU without tensor units. The KDA and
index contracts still built those texts without it, so on an M3 the loader
check refused them ("GLM contract text is not one the loader compiles") and
the whole GLM contract stopped before its first case. Both texts now follow
the loader, and gate 5's pre-M5 texts carry the define too.
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Stopped at #4397: it moved after it was stacked.

@ashhart ashhart closed this Nov 21, 2026
@ashhart
ashhart deleted the lead/train-1121202611 branch November 21, 2026 21:13
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.

2 participants