Views
No views yet
ik_llama.cpp imatrix quantization of Qwen/Qwen3.6-35B-A3B.Q8_0/F32, while the massive routed MoE expert layers are quantized to IQ5_KS and IQ4_KS.wiki.test.raw with n_ctx=512:| Quant | Size | PPL |
|---|---|---|
| IQ4_KS | ~19.8 GiB | 6.7401 +/- 0.04381 |
1custom="
2# 60 Repeating Layers [0-59]
3## Gated Attention/Delta Net [Blended 0-59]
4blk\..*\.attn_gate\.weight=q8_0
5blk\..*\.attn_qkv\.weight=q8_0
6blk\..*\.attn_output\.weight=q8_0
7blk\..*\.attn_q\.weight=q8_0
8blk\..*\.attn_k\.weight=q8_0
9blk\..*\.attn_v\.weight=q8_0
10blk\..*\.ssm_alpha\.weight=f32
11blk\..*\.ssm_beta\.weight=f32
12blk\..*\.ssm_out\.weight=q8_0
13# Shared Expert Layers [0-59]
14blk\..*\.ffn_down_shexp\.weight=q8_0
15blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
16# Routed Experts Layers [0-59]
17blk\..*\.ffn_down_exps\.weight=iq5_ks
18blk\..*\.ffn_(gate|up)_exps\.weight=iq4_ks
19# Non-Repeating Layers
20token_embd\.weight=q8_0
21output\.weight=q8_0
22"
23
24custom=$(
25 echo "$custom" | grep -v '^#' | \
26 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
27)1python llama.cpp/convert_hf_to_gguf.py \
2 --outtype bf16 \
3 --split-max-size 50G \
4 --outfile ./Qwen3.6-35B-A3B-BF16.gguf \
5 /path/to/Qwen3.6-35B-A3B/1./ik_llama.cpp/build/bin/llama-quantize \
2 ./Qwen3.6-35B-A3B-BF16-00001-of-00002.gguf \
3 ./Qwen3.6-35B-A3B-Q8_0.gguf \
4 Q8_0 16GGML_CUDA_NO_PINNED=1 is used to prevent system RAM exhaustion on 24GB VRAM setups.1GGML_CUDA_NO_PINNED=1 ./ik_llama.cpp/build/bin/llama-imatrix \
2 -m ./Qwen3.6-35B-A3B-Q8_0.gguf \
3 -f /path/to/ubergarm-imatrix-calibration-corpus-v02.txt \
4 -o Qwen3.6-35B-A3B-imatrix.dat \
5 --ctx-size 512 \
6 -t 11 \
7 --fit1./ik_llama.cpp/build/bin/llama-quantize \
2 --imatrix ./Qwen3.6-35B-A3B-imatrix.dat \
3 --custom-q "$custom" \
4 ./Qwen3.6-35B-A3B-BF16-00001-of-00002.gguf \
5 ./Qwen3.6-35B-A3B-IQ4_KS.gguf \
6 IQ4_KS 161wget https://huggingface.co/datasets/ikawrakow/validation-datasets-for-llama.cpp/resolve/main/wiki.test.raw.gz
2gunzip wiki.test.raw.gz
3
4./ik_llama.cpp/build/bin/llama-perplexity \
5 -m ./Qwen3.6-35B-A3B-IQ4_KS.gguf \
6 -f ./wiki.test.raw \
7 -c 512 \
8 -ngl 99 \
9 -t 1 \
10 -fa1./ik_llama.cpp/build/bin/llama-server \
2 -m ./Qwen3.6-35B-A3B-IQ4_KS.gguf \
3 -c 131072 \
4 -ngl 99