Repository navigation
Conversation
moe_nvfp4_cuda.zig packs the build's ModelOpt per-expert tensors (gate and up [intermediate, latent], down [latent, intermediate]) for core's grouped NVFP4 kernels (BF16 activations, W4A16) and runs them on grouped.zig's plan with Hy4's SwiGLU clamp; the router, its top-k and the weighted sum are the EXL3 path's. A tensor stored wider than the layer is refused, never sliced. tf-cuda-test hy4-nvfp4-experts: 8 experts, 4 picks a row, 1 to 300 rows (the one-block and the wide plans), every pair's gate-up and fp32 down FP64-bounded with the clamp crossed; a wider stored gate refused.
…t hy4-nvfp4-experts-ckpt) One layer's 512 experts of atakans/Hy4-flash-NVFP4 load and pack; 64 rows of 16 picks run, the first 8 rows' 128 pairs are FP64-bounded and equal to the same rows in an 8-row run. Layer 1 passes on GB10.
…the widest run, poison the outputs before each run, and a planted flip shows the comparison finds it The synthetic test runs 300 rows first; the gate-up and fp32 down of the 1, 5, 64, 255 and 256-row runs must equal the same rows of that run byte for byte, with the FP64 bounds and the clamp check kept. Before every run the gate-up and down buffers are filled with 0xFF (NaN), so a row a run leaves unwritten fails instead of showing the last run's values; the checkpoint test's 8 and 64-row runs get the same. A planted control flips one bit in a 5-row copy of the gate-up and checks that the comparison reports that byte. On GB10: the synthetic test and layers 1, 2 and 40 pass.
Owner
Author
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: #4934 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.