Skip to content

convert: keep the model-level hc head mixer in --mtp exports - #1

Open
drluoto wants to merge 1 commit into
rmonsurate:qwen4exp-mtpfrom
drluoto:qwen4exp-mtp-whitelist-fix
Open

convert: keep the model-level hc head mixer in --mtp exports#1
drluoto wants to merge 1 commit into
rmonsurate:qwen4exp-mtpfrom
drluoto:qwen4exp-mtp-whitelist-fix

Conversation

@drluoto

@drluoto drluoto commented Aug 29, 2026

Copy link
Copy Markdown

The mtp_only whitelist kept only embed/norm/lm_head, but llama_model_qwen4exp requires the model-level output_hc_norm/_down/_up at load, so a detached sidecar exported by --mtp fails with tensor 'output_hc_norm.weight' not found.

This keeps model.hyper_connection_mixer.* as well (34 → 37 tensors). Verified end-to-end on gfx1151/ROCm together with crusaderky's detached-head loader fix: sidecar loads, greedy output clean at 2.7k-token prompts, measured numbers in the upstream PR thread.

(Same fix I posted as a comment there — sending it as a proper PR so it can ride along when you update ggml-org#27836.)

The mtp_only whitelist kept only embed/norm/lm_head, but
llama_model_qwen4exp requires the model-level output_hc_norm/_down/_up
at load, so a detached sidecar exported by --mtp failed with
'tensor output_hc_norm.weight not found'. Keep
model.hyper_connection_mixer.* as well (34 -> 37 tensors); verified
loading and generating on gfx1151/ROCm with both a self-converted
sidecar and the pre-existing community one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant