TECHNOLOGY

How should you qualify a MiniCPM5 MoE conversion for llama.cpp?

In this article
THE QUICK TAKE

Check the converted tokenizer and the expert routing configuration before comparing decode speed.

The llama.cpp b12847 prerelease adds MiniCPM5 MoE support. Its changes include conversion and graph handling, preserving the released tokenizer’s beginning-of-sequence setting and choosing sigmoid when the gating field is unset. Those details can affect what the model sees and which experts contribute even if a file loads successfully.

Make the original checkpoint your reference

Use a known revision of the published source weights together with its tokenizer and configuration. Record the converter revision and the hash of the resulting file. Begin with a supported format that minimizes extra numerical differences. Quantization can be evaluated after conversion is shown to preserve behavior within the required tolerance.

Find mismatches before generation

Prepare short prompts that expose separator and beginning-of-sequence handling as well as representative longer prompts. Compare the token IDs and the treatment of special tokens between the reference and the converted case. In a traceable development run, check the configured gating and the behavior when the original configuration relies on the default. Avoid reading quality differences into results from different token sequences.

Compare the local execution path

On matched inputs, compare logits or ranks among candidate tokens within a declared tolerance. Then compare known task outputs and note backend, cache format and hardware. Check a repeated run to distinguish stable conversion differences from ordinary sampling variation. Memory and throughput numbers have meaning only after confirming both paths run the intended model. Keep the tokenizer diff close to the model manifest. An input mismatch should fail a conversion release even if downstream task scores appear stable. Conversely, numerical changes under quantization can be evaluated only once the two runners consume the same token sequence and use the intended gate.

Release the validated artifact

Ship the converted revision only after the prompts, configuration and quality checks agree with the reference within stated limits. Keep the original converter output and create separate acceptance checks for quantized variants.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles