Skip to content

The engine's trainer never kills serving: llama.cpp moves to 54939d690 (fork #99) - #5834

Merged
joelteply merged 2 commits into
canaryfrom
fable/engine-trainer-never-kills-serving
Nov 7, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fable/engine-trainer-never-kills-serving

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Moves the engine submodule 46c664457 -> 54939d690 (fork #99, PASSED by Cormac, review 87f5c04f).

  • Cause (M5, 2026-11-07 16:13:58Z): GGML_ASSERT in ggml_compute_backward killed llama-server mid-serving. DIV's backward never reduced a broadcast divisor's gradient; the MoE router's weights / clamp(sum_rows(weights)) broadcasts over 8 experts on the 35B-A3B (fork Build(deps-dev): Bump eslint from 9.24.0 to 9.30.0 #84 was proven on a 1-expert toy). The log shows that run was the only served-model training ever, so the 35B-A3B likely never trained since Build(deps-dev): Bump eslint from 9.24.0 to 9.30.0 #84 (inference).
  • Fix: DIV/SUB sum the broadcast grad with ggml_repeat_back; the post-backward shape check returns a named refusal; ggml_opt_build allocates nothing on refusal; /train reports error and the process keeps serving.

Measured

  • Fork: test-opt-dynamic-accum + 2 new cases (router normalization trains one step to the analytic update; a wrong-shape grad refused by name); test-backend-ops grad with broadcast SUB/MUL/DIV/ADD vs finite differences: 19839/19840 (the one fail, flash_attn_ext_grad, fails identically on 46c664457).
  • After deploy (owner Fable, by the next M5 deploy): a /train or dream step on the served 35B-A3B completes (or refuses by name) with the engine pid unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…0 (fork #99)

A broadcast divisor's gradient is summed back (DIV and SUB), so the MoE router's
weight normalization trains on the 35B-A3B instead of tripping the backward shape
assert; and a backward that breaks its shape contract refuses the training graph
by name instead of aborting the server. M5 2026-11-07 16:13:58Z: that assert
killed llama-server mid-serving (card 6be38d73).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit de80621 into canary Nov 7, 2026
42 of 43 checks passed
@joelteply
joelteply deleted the fable/engine-trainer-never-kills-serving branch November 7, 2026 19:19
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