Repository navigation
gemma4 drafters, hy4_flash cuda: refuse leftover checkpoint tensors - #4566
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/cuda-leftovers-gemma4-hy4
branch
3 times, most recently
from
November 24, 2026 02:50
51847c1 to
3ce1b1d
Compare
DV25's audit named these seams. The gemma4 assistant's own directory binds every name it opens, so a full refusal is exact. The DFlash draft shares the model's directory: openModelPrefixes indexes only its fc./hidden_norm./norm./layers. roots, so model./vision_ tensors owned by other loaders never count. hy4_flash's checkpoint stays open past weights.check for the per-layer loads, so the refusal sits after the layer loop — the checkpoint's last read site.
The table is read through openDirect rather than Checkpoint.get, so record its exact name after the direct open succeeds. Close the table if recording the name fails. Extend the checkpoint fixture with that table: the complete load passes the leftover audit while a stray tensor is still refused.
ashhart
force-pushed
the
lead/cuda-leftovers-gemma4-hy4
branch
from
November 24, 2026 10:05
3ce1b1d to
42838d7
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.
What this changes
Follows #4537 and #4552. Three more CUDA loaders end with the checkpoint's leftover-tensor refusal:
hy4_flashfamily: the refusal sits at the last read site, since the checkpoint stays open after the first weight check.Checks
Still to run
Load the real checkpoints for each on CUDA and confirm none is refused.