Repository navigation
Conversation
…0b1000 read as +5
E2M1 spends two of its sixteen codes on zero. A quantized_layers entry of
{"quant_algo": "NVFP4_NZ5", "group_size": 32, "weight_scale_encoding":
"csf0_v1", "code_map": "e2m1_nz5"} holds csf0_v1's tensors in the same
layout and reads 0b1000 as +5. admitRecipes takes that pairing alone and
refuses a code map beside any other recipe by module, and GLM's CUDA load
refuses a checkpoint that declares both NVFP4_NZ5 and NVFP4 csf0_v1.
nvfp4_experts32.cu gains NZ5 entries of its five launches: the same
templates with fp4pair_nz5, which turns fp4pair's 0x8000 (-0) into 0x40A0
(+5), and the same sums in the same order. The image loads the E2M1 or the
NZ5 entries as the checkpoint's modules declare, so a csf0_v1 checkpoint
runs the entries it ran before and a block 16 one loads no block 32 image.
The kernel contract holds each NZ5 entry bit-equal to the block 16 instance
it replaces on the same values, a planted +5 written there as a 4 under a
scale two e4m3 steps up, with E2M1's entry on NZ5's codes as the planted
control; nvfp4_experts32_records.zig gives their limits under nvcc 13.0 and
13.3. tf-cuda-test nvfp4-nz5 compares each form's bytes with E2M1's kernels
on the same values at widths 1,024, 704 and 640, on bf16 integer inputs so
that a group's sum is exact before its scale. The FP4-Local recipe count in
modelopt's test gains the new recipe's zero.
1.2.7 was released after this branch's base. On that base the line would merge into 1.2.7's section, so it goes under Unreleased when the change lands.
test_real_exl3_layout parses exl3_layout.cpp, whose includes reach common/fp_pairs.cuh, against the fixed SDK declarations in tools/zig/cuda_host. fp4pair_nz5 there calls __vcmpeq2, which they did not declare, so pytest failed. Declare it with the signature in CUDA 13.0's crt/device_functions.h, unsigned int __vcmpeq2(unsigned int a, unsigned int b). Only check_cuda_sources.py reads these headers: no kernel, engine or test binary changes.
… dispatch lines, so main.zig stays within 600 lines on today's main
…r stalls other streams' rounds (#3021) The Metal backend now declares prefill_step and cancel_prefill beside reports_fill. The prompt pass moves out of backend.zig into prefill_metal.zig (the device side, unchanged) and prefill_steps.zig (whole pass and step, generic, with recording-fake tests). Both run the same chunk at prompt_flight's cuts, so replies are unchanged; each step lands the queue and reloads its own prompt ids before encoding, since the prompt buffer is shared.
ashhart
force-pushed
the
lead/train-1115171410
branch
from
November 15, 2026 18:42
609cd94 to
658ad30
Compare
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: #2894 #3054 #2873 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.