Qwen3-Coder-Next 80b for colibrรฌ (int4-gs64)

Conversion of Qwen/Qwen3-Coder-Next-FP8 (qwen3_next, 48 layers: 36 Gated DeltaNet + 12 gated attention, 512 routed experts, top-10, shared expert) into the container format of the colibrรฌ engine, which streams the routed experts from disk.

What was done

  • Routed experts: FP8 e4m3 weights dequantized with their 128x128 block scales (weight_scale_inv), then quantized to int4 with one f32 scale per 64 inputs (--ebits 4 --gs 64).
  • Attention, DeltaNet, shared expert and router: dequantized from FP8 where needed, stored in f16. The fused DeltaNet projections in_proj_qkvz / in_proj_ba are split into in_proj_qkv + in_proj_z and in_proj_b + in_proj_a, as the engine expects.
  • Embeddings, final norm and lm_head: f16 (model-globals.safetensors).
  • Converter: tools/convert_qwen36.py of colibrรฌ, with FP8 block-scale support added for this conversion (the stock converter refused *.weight_scale_inv tensors). Command:
python tools/convert_qwen36.py --model <Qwen3-Coder-Next-FP8> --out <this folder> --ebits 4 --gs 64

Use

SNAP=<this folder> ./qwen36 16 4 ref_qwen36.json

or point coli chat --model at this folder.

State of verification

Converted without errors (all 148,380 layer tensors placed, 48 layers written) and checked with one prompt through the qwen36 engine ("What is the capital of France?" answered correctly and coherently). It has not been benchmarked: quality against the original FP8 model is not measured. Expect int4 quantization loss.

License: Apache-2.0, as the base model. All credit for the model goes to the Qwen team.

Downloads last month
46
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support