error loading Q8_0 weights

#1
by khimaros - opened

0.01.783.915 E llama_model_load: error loading model: missing tensor 'blk.40.attn_norm.weight'
0.01.783.944 E llama_model_load_from_file_impl: failed to load model

Hi! Thank you so much for reporting this and bringing it to my attention. You were completely right to flag this, and I did a deep dive into the architecture to find out why it was crashing.

πŸ‘βœ…βœ…βœ…You can redownload and run, it will run smoothly without any error.

What happened:
The issue actually isn't a bad upload or corrupted weights, but rather a bug in the mainline llama.cpp conversion script regarding Qwen's new MTP (Multi-Token Prediction) layers.

During the original GGUF conversion, the script read the Hugging Face config, saw the MTP head, and wrote block_count = 41 into the GGUF metadata header. However, it did not actually pack those extra MTP weights into the file. The tensor data stops perfectly at layer 39. When your local runner (Ollama/LM Studio/llama.cpp) booted the model, the header told it to look for a 40th layer that didn't physically exist, causing the fatal missing tensor 'blk.40.attn_norm.weight' crash.

The Fix:
The actual model weights are 100% healthy. To resolve this without losing data, I ran a surgical binary patch directly on the GGUF metadata headers of the files to correct qwen35moe.block_count to 40 and nextn_predict_layers to 0.

I have tested the patched files on my end, and the inference engine now correctly bypasses the phantom layer, builds the graph, and generates text flawlessly.

Next Steps:
I have patched all the .gguf files and pushed them back to this repository. Please delete your broken local copy, download the newly updated file, and it will load perfectly for you!

Thanks again for helping track this down!

wait few minutes, New fixed models will be uploaded within 1 hour.

Sign up or log in to comment