Custom mixed GGUF quantization of inclusionAI/Ling-3.2-air, a 124B-parameter hybrid-linear MoE multimodal model (5.5B active parameters).
This repository contains a quantized language-model GGUF plus a separate BF16 multimodal projector. The language model was converted from the original FP8 (E4M3, 128×128 block-scale) weights; the projector comes from the checkpoint's BF16 vision weights. The label Q4_K_XL is a naming convention for this mixed recipe; it is not a built-in llama.cpp quantization type.
| Component | Type |
|---|---|
Routed expert ffn_gate_exps / ffn_up_exps |
Q4_K |
Routed expert ffn_down_exps |
Q5_K |
| All other FP8-derived matrix weights | Q8_0 |
Token embeddings, output, ssm_beta, attn_gate (layers 5–41), nextn.eh_proj |
BF16 |
| Norms, biases, conv kernels, router gates, SSM scalars | F32 |
MTP layer 42's attn_gate is Q8_0; the seven gated-MLA layer attn_gate tensors (5, 11, 17, 23, 29, 35, 41) are BF16.
bailingmoe3 (42 transformer layers + 1 MTP block = 43 GGUF blocks; 512 routed experts, 8 active, 1 shared expert)| File | Size | Notes |
|---|---|---|
Ling-3.2-Air-Q4_K_XL.gguf |
79.6 GB | Quantized language model. |
mmproj-ling-3.2-air-BF16.gguf |
878 MB | Multimodal projector (BF16 weights, F32 norms) for image/video input. |
Use a llama.cpp build that supports bailingmoe3 (PR #29151 or newer).
Baseline: the Q8_0 GGUF conversion of the same checkpoint (FP8 blocks dequantized to Q8_0). Candidate: this Q4_K_XL build. Measured with llama-perplexity --kl-divergence on wikitext-2-raw/wiki.test.raw, 16 chunks per context length.
| Context | Mean KLD ↓ | Median KLD | PPL Q4_K_XL | PPL Q8_0 | PPL ratio | RMS Δp |
|---|---|---|---|---|---|---|
| 512 | 0.0530 ± 0.0019 | 0.0164 | 4.480 | 4.384 | 1.0220 | 7.49% |
| 1024 | 0.0495 ± 0.0020 | 0.0117 | 4.300 | 4.255 | 1.0105 | 7.18% |
| 2048 | 0.0699 ± 0.0029 | 0.0156 | 6.374 | 6.391 | 0.9973 | 8.04% |
| 4096 | 0.0961 ± 0.0037 | 0.0152 | 10.136 | 10.286 | 0.9854 | 7.46% |
PPL values are measured over the scored second half of each chunk, following llama.cpp's KLD convention.
Mean KLD rises at longer contexts because of a small number of high-divergence tail tokens (99.9th percentile KLD reaches 11.7 at 4096), while the median stays around 0.011–0.016. Perplexity is effectively unchanged at 512–2048 and slightly lower than the Q8_0 baseline at 4096 on this sample.
These numbers are indicative only: 16 chunks per context is a small sample and the 4096-token point has a wide tail.
llama-server \
-m Ling-3.2-Air-Q4_K_XL.gguf \
--jinja \
--host 0.0.0.0 --port 8085
For vision, add the projector:
llama-server \
-m Ling-3.2-Air-Q4_K_XL.gguf \
--mmproj mmproj-ling-3.2-air-BF16.gguf \
--jinja \
--host 0.0.0.0 --port 8085
Recommended sampling from the base model card: temperature=1.0, top_p=0.95, top_k=20; enable_thinking=true for reasoning workloads.
--outtype bf16), then quantized in a single llama-quantize pass with Q8_0 as the base type and per-tensor overrides for the routed experts (Q4_K for gate/up, Q5_K for down).bailingmoe3 architecture requires a recent llama.cpp build (upstream support merged in PR #29151).inclusionAI/Ling-3.2-air