Repository navigation
Conversation
…ontract ERNIE 5.5 rewrites its head's fp32 logits in place as x + t0 relu(r0 - x) + t1 relu(x - r1) + t2 relu(r2 - x)^2 + t3 relu(x - r3)^2, with the four ranges and weights stored bf16. The vendor's Triton kernel turns fp fusion off, so tf_ernie55_multimax (ernie5_5/head.cu, a new ernie5_5_head image) rounds each subtract, square, multiply and add once in its order (__fsub_rn, __fmul_rn, __fadd_rn), and relu keeps NaN and makes -0 a +0 as torch.relu does. ernie5_5/multimax.zig replays those fp32 steps on the host and gives float64's value; the contract asks each output to be the replay's value at a decode row and a 16-row verify window over the 201,216-logit vocabulary and over a TP=2 rank's half, and gate 4 runs whole logits with whole ranges and power-of-two weights, where every step is exact. Two planted controls, each term's multiply and add fused into an fma and the last term's square dropped, go red. Nothing launches it yet. gradient-serving.tsv re-pins zig/src/cuda/kernels.zig.
…ts loader (#4860 D4, #2118) weight_names.zig holds every dense tensor's name, shape and load order (embeddings, backbone layers, tower, codebook heads) and the expert name formatter; both loaders bind it with their own one/stack. Experts, lm_head rows and residency stay per backend. A recording-loader test pins all 561 reads; check-drama-codec-bindings compiles Metal's loader.
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.
CI for a landing train: #5202 #5257 #5264 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.