Skip to content

Merge upstream main - #80

Merged
plotarmordev merged 210 commits into
mainfrom
feat/121-merge-upstream-main
Nov 19, 2026
Merged

plotarmordev merged 210 commits into
mainfrom
feat/121-merge-upstream-main

Conversation

@plotarmordev

Copy link
Copy Markdown
Owner

ashhart and others added 30 commits November 18, 2026 21:18
Regenerate the stand-in version from the native manifest. A manifest-only change now runs Web CI, and the build checks the packaged version file alongside the generated page.

Fixes ashhart#3739
The only FP4-Local receipt was the 1.1.5-era one on 80517fc, and
the recipe gave no FP4-Local launch. This adds a receipt of upstream
main 3a56d4e on two GB10 at TP=2 with default settings: drafted
replies equal plain, concurrent equal alone and resumed equal cold,
the golden ids are the earlier receipt's, and it records per-rank
memory, decode with and without drafts and cold prompts from 2,048 to
65,536 tokens, with the raw results, launch scripts and a table
script. The recipe gains the FP4-Local pull and a link to it.
git diff --check against the base flags two lines of the receipt's
runs.log, where the run script left a space after each suite result.
This strips them and refreshes SHA256SUMS; no result or number in
the receipt changes.
ashhart and others added 28 commits November 19, 2026 10:28
…ch combines the picks' rows by their weights as the combine kernel did, the same bits, one launch fewer each MoE layer but the last; tf-glm-hc-rows checks and times it
… group replays the route select's picks with its routine, slot u takes pick u and the last pick's first group writes the picks and weights, the same bytes; tf-glm-moe-pick checks and times it
…s a fourth role, glm_rms' bits, one launch fewer an MLA layer; tf-glm-mla-norms checks and times it
…le, combining expand and one-row picked experts, with controls and launch records

tf_route_select runs beside main's select (a frozen moe_route.metal) at GLM's 288 experts, every expert or either held
half, and at Step-5's 352. glm_mla_norms with three and four roles runs beside main's glm_rms, glm_layer_norm and
glm_scale (a frozen glm_glue.metal). The attention entry's scores kernel scales the queries as it loads them, against
main's glm_scale and one-row launches. tf_hc_expand_mix_moe and its parts run beside main's combine then expand and
split. A one-row MoE layer's gate/up groups replaying the select run beside main's select then the one-row gathers.
Gates 1-3 require the predecessor's bytes; eight new controls plant source faults red at shapes. The records add the
seven launches with this GPU's threadgroup bytes and the M1/M2 limits from --offline.
…experts' gate/up and down, the shared expert's halves, the combine and the boundary by part, and takes a later chunk (GLM_PROFILE_AT) after the rows before it
…LM_STATE_HASH): KDA states, convolution tails, MLA keys and pooled keys
…ir tiles in groups of 32 column tiles, each group taking every row tile in turn: core/affine_mm.zig's tiles, staging and sums; tf-glm-mm-groups checks and times them
…ainst core/affine_mm.zig's gathers and matmul, with controls and launch records

glm_gather_glu_32/_64 and glm_gather_scatter_32/_64 run beside tf_affine_gather_glu and tf_affine_gather_scatter on one
route over six experts (means of 2, 43 and 183 rows: both heights of each launch), NaN and infinities planted in the
activations and in down's scales (the SwiGLU's clip keeps them out of the activations). glm_mm_grouped runs beside
tf_affine_mm at 4096, 2240 and 24896 columns (a partial last group). Gates 1-3 require the predecessor's bytes; two
controls plant source faults red at shapes. The records add the five launches (nax.h: no M1/M2 build ahead of time).
…ck from a recorded pass (GLM_PROFILE_TAPE), so a knock-out leaves later layers' expert loads and selections as served; the route and the selection are timed live against it
…locks, so a row's queries are read once a tile instead of twice, in 128-row tiles of 8 simdgroups (64-row tiles where those would leave the GPU half idle): the same products, head order and sums; tf-glm-prompt-select checks them against main's kernel and times them at long positions
…'s kernel, NaN and infinities planted in the queries and weights, with a control and a launch record
…cales and biases a step ahead, so the next step's weight reads overlap this step's products: the same tiles, products and sums; tf-glm-mm-groups times them from 128 rows with the weight bandwidth
…tep's codes again in place of the next step's
Gates 1-4 run the relu^2 stream tile at every width Nemotron's oQ
checkpoints store it (4, 5, 6 and 8 bits in groups of 64), each wider
width with a planted control that reads its codes as 4-bit and goes red
at gate 3. Gate 5 records the 24 launches at 5, 6 and 8 bits on the four
RDNA chips. The 1x8 tile at those widths spills to scratch on gfx1100;
the records name it as a known finding and a host test holds the list
to the records.
The loader, the memory plan and admission read config.json's per-module
widths: MLX affine 4, 5, 6 and 8 bits in groups of 64, one width per
tensor. Routed stacks are checked against their stated width. Other
widths, unquantized projections and an MTP head inside the model's
shards are refused by name. The uniform 4-bit checkpoint reads as before.

The MTP head file is still read at the model's own width, so admission
refuses it by name beside a model not stored 4-bit in groups of 64.
@plotarmordev
plotarmordev merged commit 354662d into main Nov 19, 2026
@plotarmordev
plotarmordev deleted the feat/121-merge-upstream-main branch November 19, 2026 12:48
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.