Repository navigation
Conversation
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.
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: #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.