The hybrid quant employs different quantization levels on a per layer basis to increase
flexibility of trading off performance vs file size. Less parameter bits are used at deep layers
and more bits at cortex layers to simulultaneously optimize quantized size and model performance.
For this file the layer quants are as follows (refreshed on 4/26/2026):
These layer quants were optimized for strong performance across a small set of code gen prompts while sized to
approximately Q4_K_M bit efficiency.
A second quant is available using new extended K quant layer definitions which provide more flexibility in configuring
the attn_v, attn_o, and ffn_d quant levels:
This moe model can be efficiently run by offloading expert tensors to CPU via -ot exps=CPU
to open up very large context space. The smaller size of the optimally quantized parameters will give
an effective boost in CPU processing speed due to reducing the memory BW needed to repeatedly copy them
from main memory to SIMD regs. It can also run fully offloaded on GPU via RPC or high VRAM GPU.
The model can be speculated using Qwen2.5-Coder-0.5B-Instruct if the inference platform can support
vocabulary translation between draft and target. Example performance on humaneval first problem prompt using
a downstream speculator with fixed draft block length ND:
Config
ND
F16 context size
Q8 context size
gen rate
2 4070, RPC
0
~55k tokens
~100k tokens
104tps
2 4070, RPC
4
~45k tokens
~75k tokens
130tps
1 4070, exp CPU
0
~105k tokens
~200k tokens
22 tps
1 4070, exp CPU
4
~90k tokens
~155k tokens
28 tps
These results show speculation to be of marginal benefit with the model.
The model has a native 256k context window which can be extended to 1M with Yarn as follows:
Set base context for yarn rope scale compute to 262144 (256k), then with a context of N tokens > 256k the rope scale = N / 256k.
Example, if N = 512k then rope scale = 2.0.
Then on model start pass --rope-scaling yarn --yarn-orig-ctx 262144 --rope_scale 2.0 (must be ajusted if kv other than 512k)
Later versions of llama.cpp have a bug which soft caps context length to the training context, effectively disabling yarn context extension. Patch server-context.cpp according to https://github.com/ggml-org/llama.cpp/issues/22140 to fix it.
High context performance appears to work verified against a needle in haystack test at 75k tokens.