Load Qwen3.8 GGUFs with Embedded NextN/MTP Blocks - #610
Merged
Conversation
Contributor
Author
|
works with current 3.6 drafter, but its slow. I guess we need a 3.8 drafter. |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
jkyamog
force-pushed
the
feat-qwen35-embedded-mtp-target
branch
from
August 15, 2026 01:21
2ca858b to
8d28de3
Compare
Contributor
Author
|
updated to address issues reported by cubic-dev-ai |
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.
Qwen3.8-27B GGUFs can contain the normal target transformer layers followed by
embedded NextN/MTP predictor blocks. The current loader treated every GGUF
block as a target layer and rejected the model during startup when the total
block count was not divisible by Qwen's full-attention interval.
This change separates the raw GGUF block count from the target layer count:
The target loader now validates the 64-layer trunk and ignores the trailing
embedded MTP block for ordinary target execution.
Reproduction
Model:
Before this change, startup failed with:
The GGUF metadata was verified directly:
Implementation
qwen35andqwen35moemetadata.nextn_predict_layers >= block_count.blk.<index>.nextn.tensor.block_countandnextn_predict_layersin model inspection.Non-Qwen architectures are not reinterpreted, even if they contain similarly
named metadata.