Skip to content

train 1120194845: #3727 (CI only) - #4243

Closed
ashhart wants to merge 4 commits into
mainfrom
lead/train-1120194845
Closed

ashhart wants to merge 4 commits into
mainfrom
lead/train-1120194845

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3727 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.

BadAd84 and others added 4 commits November 20, 2026 19:48
A checkpoint whose vision tower ModelOpt quantizes, as nvidia/Qwen3.8-Flash-Next-FP4-Local
stores attention as MXFP8 and the MLP and merger as NVFP4, was refused by the CUDA tower's
reader, which expects bf16 for every tensor. The tower's linears now decode on the host as
they load: an e4m3 code times the e8m0 power of two of its 32 inputs for MXFP8, and an e2m1
code times the e4m3 scale of its 16 inputs times the tensor's global scale for NVFP4, each a
product of exactly representable factors in fp32 and rounded to bf16 once, nearest even, so
a row is the stored value read as the format defines it rather than an approximation of it.

The tower still runs in bf16: its kernels, launches, scratch and rows are the ones a
floating-point tower gets, and its device bytes are the same, because the arena is sized for
bf16 weights either way. The decode holds one linear in host memory at a time and frees it
once the upload holds its own copy, so a failed load leaves nothing behind.

A floating-point tower is read as stored, byte for byte, so a checkpoint that loads today
loads to the same bytes; only a tower whose linear's dtype is e4m3 or u8 takes the new path,
and a stored plane, scale or global scale of another shape, a width that is not a whole
number of scale groups, and an extra tensor the reader does not take all stop the load
naming the tensor. Nothing of the tower loads without --vision, so text serving is untouched.

docs/vision.md says which towers CUDA reads now, and CHANGELOG names the change under
Unreleased.
…longer claims a floating-point tower leg

The floating-point tower leg was refused before any weight was read on both images, so the receipt says it has no result.
The current head is mapped to the measured revision by its source files, which are byte equal.
@ashhart ashhart closed this Nov 20, 2026
@ashhart ashhart reopened this Nov 20, 2026
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Landed: #3727 as main e0ebc7b. This PR only carried their CI.

@ashhart ashhart closed this Nov 20, 2026
@ashhart
ashhart deleted the lead/train-1120194845 branch November 20, 2026 20:39
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.

2 participants