Repository navigation
spec(hslm): nn/hslm is the model trinity-training trained (Closes #10062) - #10068
Merged
Merged
Conversation
) specs/nn/hslm.t27 now describes src/hslm in trinity-training @3e9648c1: 3 blocks, context 27 (the PPL 2.96 run), a ReLU FFN 243-729-243 with biases and TWN alphas, phi position encoding and phi-RoPE, a token embedding and the vocab-729 head with cross-entropy on the last position. The header cites the trained source files and names what is not modelled (the per-block VSA path, f32, the trainer's STE update). The backward pass reaches the embedding; every gradient (embedding, Q/K/V/O, W_up/W_down, biases, both RMSNorm gammas, W_out, b_out) is checked against a central difference or an exact trit flip. Lab (t27c @efe3c94): 46/46 pass, 0 vacuous, 10 invariants proved. A mutant that drops alpha_q fails 10 of the 46. own_model: forward 60 -> 85, backward 40 -> 70; HSLM lens 51 -> 57, overall 42 -> 44; rows and header updated. own_model_board mirrors it. Lab: own_model 8/8, own_model_board 6/6, 0 vacuous. Seals HSLM and nn_HSLM re-saved on the lab with t27c seal --save. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
October 17, 2026 18:06
Owner
Author
|
cli-tri is red on master too, the last 3 master runs of the same workflow failed with the same error, so this PR inherits it: cli/tri/src/gates.rs include_str!s .github/workflows/brain-seal-refresh.yml, which #9117 deleted. It is tracked in #9634. This PR touches only .t27 specs and seals and does not change cli/tri. The fix is a Rust edit, which needs the owner-approved-foreign label, so it is not made here. |
Contributor
This was referenced Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #10062
What changed
specs/nn/hslm.t27now describes the HSLM thattrinity-trainingactually trained (src/hslm@3e9648c1). The header cites constants.zig, embedding.zig, sacred_attention.zig, trinity_block.zig, model.zig, ste.zig, trainer.zig, and FOUND_EXPERIMENTS_SUMMARY.md @ee512359 for the context sweep (ctx 18: PPL 5.58, ctx 27: 2.96, ctx 54: 6.05).The spec still leaves out three things, and the header says so:
Gradient checks
The backward pass now reaches the embedding (
g_embed[token]). Each gradient is checked against a central difference, using a test hook that makes one ternary weight real-valued:W_out is also checked exactly against a trit flip, and the last block's W_down against a trit flip within 0.2%. The tests also cover ReLU, RoPE (identity at position 0, norm-preserving, invertible), the head, the cross-entropy gradient and the attention cache.
Lab results (Railway lab, t27c @efe3c94)
Mutation control: a copy with
alpha_qdropped from the attention forward fails 10 of the 46 tests: the embedding, cross-entropy, Q, first-block W_up, bias and gamma finite-difference checks.own_model
own_model_board.t27mirrors all of this: MSG, OVERALL_PCT, PROGRESS, LENS_PCT, CELL_PCT and the one-off negative cases. METRICS_BYTES is unchanged at 622.Seals
HSLM.jsonandnn_HSLM.jsonwere re-saved on the lab withseal specs/nn/hslm.t27 --save:sha256:df24bc0c..., 46/46, 0 vacuous;Not in this PR
conformance/nn_hslm_vectors.json(generated 2026-04) still describes the old 6-layer / FF 972 / ctx 81 shape. Nothing in the tree reads it; it was already stale before #7778.Only
.t27files and compiler-written seals change; no hand-written foreign code.🤖 Generated with Claude Code