Repository navigation
Conversation
This was referenced Nov 22, 2026
ashhart
force-pushed
the
lead/cuda-leftovers-lfm2-minimax
branch
from
November 23, 2026 11:24
0441d53 to
809f152
Compare
Both loaders bound their expected names but never audited what the checkpoint held back, so a stray tensor loaded silently. Full loads now refuse unconsumed names; a thin layer-prefix check still leaves deeper layers unbound on purpose. - lfm2_moe: refuseLeftovers gated on a whole-model layer count - minimax_m3: openModelPrefix scopes the index to language_model. so the vision tower's and drafters' names never enter the audit, and the LM's real depth decides full vs thin
ashhart
force-pushed
the
lead/cuda-leftovers-lfm2-minimax
branch
from
November 23, 2026 17:31
809f152 to
ededc1c
Compare
This branch has not been deployed
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 (Qwen3). The LFM2 MoE and MiniMax M3 CUDA loaders checked each tensor they bind but ignored any they never read. On a full load (no layer limit) they now end with the checkpoint's leftover-tensor refusal. LFM2's embedding, bound twice for the tied head, is marked used once. MiniMax scopes the check to the language model's own names, so the vision tower and drafter tensors in the same directory never count as leftovers. Loads limited to a layer prefix keep today's behaviour.
Checks
Still to run
Load the real LFM2 MoE and MiniMax M3 checkpoints we list for CUDA on a GB10 and confirm none is refused.