Skip to content

train 1115171410: #2894 #3054 #2873 (CI only) - #3450

Closed
ashhart wants to merge 10 commits into
mainfrom
lead/train-1115171410
Closed

ashhart wants to merge 10 commits into
mainfrom
lead/train-1115171410

Conversation

@ashhart

@ashhart ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner

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.

Bizuayeu and others added 10 commits November 15, 2026 18:42
…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
ashhart force-pushed the lead/train-1115171410 branch from 609cd94 to 658ad30 Compare November 15, 2026 18:42
@ashhart

ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

Landed: #2894 #3054 #2873 as main d2b3722. This PR only carried their CI.

@ashhart ashhart closed this Nov 15, 2026
@ashhart
ashhart deleted the lead/train-1115171410 branch November 15, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants