Skip to content

Engine pin to 6606d1aad: MUL_MAT_ID has a backward pass (CPU and Metal), so a gene can train on the M5's MoE base (card 8a4fc5ea) - #5679

Merged
joelteply merged 2 commits into
canaryfrom
cormac/engine-pin-mmid-back
Nov 1, 2026
Merged

joelteply merged 2 commits into
canaryfrom
cormac/engine-pin-mmid-back

Conversation

@joelteply

@joelteply joelteply commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

core/vendor/llama.cpp 08d6d354b -> 6606d1aad on the fork's live line
(889580fc/seq-state-across-stream-counts). The range is exactly two commits:

Why: the resident base on the M5 (Qwen3.6-35B-A3B) could not be trained at all. Every MoE block
routes experts through MUL_MAT_ID, which had no backward, so /train aborted building the gradient
graph inside the serving engine (card 14b64aa9). On the M5, 12 h on 2026-10-31: genome jobs 0.

Proven on their own PRs:

  • CPU (enrico): grad checks with weighted losses, mutation-proven.
  • Metal (the M5, Fable): test-backend-ops MUL_MAT_ID_BACK 12/12 and grad 19838/19838 on MTL0.

No continuum code reads ggml op numbers: git grep finds no GGML_OP_ outside core/vendor, so the
new enum value moves nothing here.

Receipts (enrico, 2026-10-31T23:42Z): cargo check -p continuum-engine --features metal at the new
pin, exit 0 (llama.cpp rebuilt from source).

Live check after deploy (card 14b64aa9's acceptance): /train/measure on the 35B-A3B builds its
gradient graph with no "no backward through" abort. Any other op that turns up is the next slice.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…l), so a gene can train on the M5's MoE base (card 8a4fc5ea)

core/vendor/llama.cpp 08d6d354b -> 6606d1aad on the fork's live line
(889580fc/seq-state-across-stream-counts). The range is exactly two commits:
- fork #82 (7640a2631): GGML_OP_MUL_MAT_ID_BACK, the activations' gradient through frozen,
  quantized experts; MUL_MAT_ID's backward; batched GET_ROWS_BACK for the router weights.
- fork #83 (6606d1aad): the Metal kernel for MUL_MAT_ID_BACK.

Why: the resident base on the M5 (Qwen3.6-35B-A3B) could not be trained at all. Every MoE block
routes experts through MUL_MAT_ID, which had no backward, so /train aborted building the gradient
graph inside the serving engine (card 14b64aa9). On the M5, 12 h on 2026-10-31: genome jobs 0.

Proven on their own PRs:
- CPU (enrico): grad checks with weighted losses, mutation-proven.
- Metal (the M5, Fable): test-backend-ops MUL_MAT_ID_BACK 12/12 and grad 19838/19838 on MTL0.

No continuum code reads ggml op numbers: git grep finds no GGML_OP_ outside core/vendor, so the
new enum value moves nothing here.

Receipts (enrico, 2026-10-31T23:42Z): cargo check -p continuum-engine --features metal at the new
pin, exit 0 (llama.cpp rebuilt from source).

Live check after deploy (card 14b64aa9's acceptance): /train/measure on the 35B-A3B builds its
gradient graph with no "no backward through" abort. Any other op that turns up is the next slice.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 6bb3a5e (Fable). Verified: the submodule moves 08d6d354b -> 6606d1aad, and git log 08d6d354b..6606d1aad is exactly fork #82 (7640a2631) and #83 (6606d1aad); git diff a726c39d7 6606d1aad is empty, so the tree is the one I tested on the M5 MTL0 (MUL_MAT_ID_BACK 12/12, grad MUL_MAT_ID 19838/19838; logs ~/.continuum/evidence/2026-10-31-fork83-metal/a726c39d7-*.log). Merges on green.

@joelteply
joelteply merged commit fddb506 into canary Nov 1, 2026
76 of 79 checks passed
@joelteply
joelteply deleted the cormac/engine-pin-mmid-back branch November 1, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant