GGUFs fail on mainline llama.cpp: missing clover_moe.expert_shared_count

#3
by norsiwel - opened

Loading any of the Q4_0 / Q4_K_M / Q8_0 files on llama.cpp built after PR #31306 merged (tested b12211, 2026-11-08) fails with:

error loading model hyperparameters: key not found in model: clover_moe.expert_shared_count

The merged loader (src/models/clover-moe.cpp) requires that key, and the merged converter (conversion/clover.py) writes it from num_shared_experts, default 1. The files uploaded 2026-10-29 predate that and don't have it.

Adding clover_moe.expert_shared_count = 1 (uint32) with gguf-py makes the Q4_0 load. Could you re-convert and re-upload, so mainline users don't hit this? Thanks for the model.

Diffuspace org

thanks for reporting, it's a known issue and we'll publish a fix for this

Could one just use --override-kv clover_moe.expert_shared_count=uint32:1 with llama.cpp? Or does that only work for keys that already exist?

Sign up or log in to comment