Views
No views yet
ik_llama.cpp imatrix Quantizations of Qwen/Qwen3.5-122B-A10Bik_llama.cpp can also run your existing GGUFs from bartowski, unsloth, mradermacher, etc if you want to try it out before downloading my quants. Only a couple quants in this collection are compatible with mainline llamma.cpp/LMStudio/KoboldCPP/etc as mentioned in the specific description, all others require ik_llama.cpp.
BF16 227.525 GiB (16.005 BPW)
Q8_0 120.942 GiB (8.508 BPW)
1#!/usr/bin/env bash
2
3custom="
4# 60 Repeating Layers [0-59]
5
6## Gated Attention/Delta Net [Blended 0-59]
7blk\..*\.attn_gate\.weight=q8_0
8blk\..*\.attn_qkv\.weight=q8_0
9blk\..*\.attn_output\.weight=q8_0
10blk\..*\.attn_q\.weight=q8_0
11blk\..*\.attn_k\.weight=q8_0
12blk\..*\.attn_v\.weight=q8_0
13blk\..*\.ssm_alpha\.weight=f32
14blk\..*\.ssm_beta\.weight=f32
15blk\..*\.ssm_out\.weight=q8_0
16
17# Shared Expert Layers [0-59]
18blk\..*\.ffn_down_shexp\.weight=q8_0
19blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
20
21# Routed Experts Layers [0-59]
22blk\..*\.ffn_down_exps\.weight=iq5_ks
23blk\..*\.ffn_(gate|up)_exps\.weight=iq5_ks
24
25# Non-Repeating Layers
26token_embd\.weight=q8_0
27output\.weight=q8_0
28"
29
30custom=$(
31 echo "$custom" | grep -v '^#' | \
32 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
33)
34
35 #--dry-run \
36numactl -N ${SOCKET} -m ${SOCKET} \
37./build/bin/llama-quantize \
38 --custom-q "$custom" \
39 --imatrix /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/imatrix-Qwen3.5-122B-A10B-BF16.dat \
40 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-BF16-00001-of-00005.gguf \
41 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-smol-IQ5_KS.gguf \
42 IQ5_KS \
43 1281#!/usr/bin/env bash
2
3custom="
4# 60 Repeating Layers [0-59]
5
6## Gated Attention/Delta Net [Blended 0-59]
7blk\..*\.attn_gate\.weight=q8_0
8blk\..*\.attn_qkv\.weight=q8_0
9blk\..*\.attn_output\.weight=q8_0
10blk\..*\.attn_q\.weight=q8_0
11blk\..*\.attn_k\.weight=q8_0
12blk\..*\.attn_v\.weight=q8_0
13blk\..*\.ssm_alpha\.weight=q8_0
14blk\..*\.ssm_beta\.weight=q8_0
15blk\..*\.ssm_out\.weight=q8_0
16
17# Shared Expert Layers [0-59]
18blk\..*\.ffn_down_shexp\.weight=q8_0
19blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
20
21# Routed Experts Layers [0-59]
22blk\..*\.ffn_down_exps\.weight=iq4_ks
23blk\..*\.ffn_(gate|up)_exps\.weight=iq4_kss
24
25# Non-Repeating Layers
26token_embd\.weight=iq6_k
27output\.weight=iq6_k
28"
29
30custom=$(
31 echo "$custom" | grep -v '^#' | \
32 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
33)
34
35numactl -N ${SOCKET} -m ${SOCKET} \
36./build/bin/llama-quantize \
37 --custom-q "$custom" \
38 --imatrix /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/imatrix-Qwen3.5-122B-A10B-BF16.dat \
39 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-BF16-00001-of-00005.gguf \
40 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-IQ4_KSS.gguf \
41 IQ4_KSS \
42 1281#!/usr/bin/env bash
2
3custom="
4# 60 Repeating Layers [0-59]
5
6## Gated Attention/Delta Net [Blended 0-59]
7blk\..*\.attn_gate\.weight=iq6_k
8blk\..*\.attn_qkv\.weight=iq6_k
9blk\..*\.attn_output\.weight=iq6_k
10blk\..*\.attn_q\.weight=iq6_k
11blk\..*\.attn_k\.weight=iq6_k
12blk\..*\.attn_v\.weight=iq6_k
13blk\..*\.ssm_alpha\.weight=iq6_k
14blk\..*\.ssm_beta\.weight=iq6_k
15blk\..*\.ssm_out\.weight=iq6_k
16
17# Shared Expert Layers [0-59]
18blk\..*\.ffn_down_shexp\.weight=iq6_k
19blk\..*\.ffn_(gate|up)_shexp\.weight=iq6_k
20
21# Routed Experts Layers [0-59]
22blk\..*\.ffn_down_exps\.weight=iq3_ks
23blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kl
24
25# Non-Repeating Layers
26token_embd\.weight=iq4_k
27output\.weight=iq6_k
28"
29
30custom=$(
31 echo "$custom" | grep -v '^#' | \
32 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
33)
34
35 #--dry-run \
36numactl -N ${SOCKET} -m ${SOCKET} \
37./build/bin/llama-quantize \
38 --custom-q "$custom" \
39 --imatrix /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/imatrix-Qwen3.5-122B-A10B-BF16.dat \
40 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-BF16-00001-of-00005.gguf \
41 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-IQ2_KL.gguf \
42 IQ2_KL \
43 1281#!/usr/bin/env bash
2
3custom="
4# 60 Repeating Layers [0-59]
5
6## Gated Attention/Delta Net [Blended 0-59]
7blk\..*\.attn_gate\.weight=q8_0
8blk\..*\.attn_qkv\.weight=q8_0
9blk\..*\.attn_output\.weight=q8_0
10blk\..*\.attn_q\.weight=q8_0
11blk\..*\.attn_k\.weight=q8_0
12blk\..*\.attn_v\.weight=q8_0
13blk\..*\.ssm_alpha\.weight=q8_0
14blk\..*\.ssm_beta\.weight=q8_0
15blk\..*\.ssm_out\.weight=q8_0
16
17# Shared Expert Layers [0-59]
18blk\..*\.ffn_down_shexp\.weight=q8_0
19blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
20
21# Routed Experts Layers [0-59]
22blk\..*\.ffn_down_exps\.weight=iq2_ks
23blk\..*\.ffn_(gate|up)_exps\.weight=iq2_ks
24
25# Non-Repeating Layers
26token_embd\.weight=iq4_k
27output\.weight=iq6_k
28"
29
30custom=$(
31 echo "$custom" | grep -v '^#' | \
32 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
33)
34
35numactl -N ${SOCKET} -m ${SOCKET} \
36./build/bin/llama-quantize \
37 --custom-q "$custom" \
38 --imatrix /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/imatrix-Qwen3.5-122B-A10B-BF16.dat \
39 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-BF16-00001-of-00005.gguf \
40 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-smol-IQ2_KS.gguf \
41 IQ2_KS \
42 1281#!/usr/bin/env bash
2
3custom="
4# 60 Repeating Layers [0-59]
5
6## Gated Attention/Delta Net [Blended 0-59]
7blk\..*\.attn_gate\.weight=iq6_k
8blk\..*\.attn_qkv\.weight=iq6_k
9blk\..*\.attn_output\.weight=iq6_k
10blk\..*\.attn_q\.weight=iq6_k
11blk\..*\.attn_k\.weight=iq6_k
12blk\..*\.attn_v\.weight=iq6_k
13blk\..*\.ssm_alpha\.weight=iq6_k
14blk\..*\.ssm_beta\.weight=iq6_k
15blk\..*\.ssm_out\.weight=iq6_k
16
17# Shared Expert Layers [0-59]
18blk\..*\.ffn_down_shexp\.weight=iq6_k
19blk\..*\.ffn_(gate|up)_shexp\.weight=iq6_k
20
21# Routed Experts Layers [0-59]
22blk\..*\.ffn_down_exps\.weight=iq2_kt
23blk\..*\.ffn_(gate|up)_exps\.weight=iq1_kt
24
25# Non-Repeating Layers
26token_embd\.weight=iq4_k
27output\.weight=iq6_k
28"
29
30custom=$(
31 echo "$custom" | grep -v '^#' | \
32 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
33)
34
35 #--dry-run \
36numactl -N ${SOCKET} -m ${SOCKET} \
37./build/bin/llama-quantize \
38 --custom-q "$custom" \
39 --imatrix /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/imatrix-Qwen3.5-122B-A10B-BF16.dat \
40 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-BF16-00001-of-00005.gguf \
41 /mnt/data/models/ubergarm/Qwen3.5-122B-A10B-GGUF/Qwen3.5-122B-A10B-IQ1_KT.gguf \
42 IQ1_KT \
43 1281# Clone and checkout
2$ git clone https://github.com/ikawrakow/ik_llama.cpp
3$ cd ik_llama.cpp
4
5# Build for hybrid CPU+CUDA
6$ cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
7$ cmake --build build --config Release -j $(nproc)
8
9# Download Desired Quants
10$ pip install huggingface_hub
11$ hf download --local-dir ./ --include=smol-IQ2_KS/*.gguf ubergarm/Qwen3.5-122B-A10B-GGUF
12
13# Full GPU Offload
14./build/bin/llama-server \
15 --model "$model" \
16 --alias Qwen3.5-122B-A10B \
17 -c 262144 \
18 -fa on \
19 -ger \
20 --merge-qkv \
21 -sm graph \
22 -ngl 99 \
23 -ub 4096 -b 4096 \
24 --parallel 1 \
25 --threads 1 \
26 --host 127.0.0.1 \
27 --port 8080 \
28 --jinja \
29 --no-mmap
30
31# Hybrid CPU+GPU Offload
32echo TODO or see other recent modelcards for examples running Qwen3.5
33
34# CPU-Only Inference
35numactl -N "$SOCKET" -m "$SOCKET" \
36./build/bin/llama-server \
37 --model "$model"\
38 --alias ubergarm/Qwen3.5-122B-A10B \
39 --ctx-size 65536 \
40 -ctk q8_0 -ctv q8_0 \
41 --parallel 1 \
42 --threads 96 \
43 --threads-batch 128 \
44 --numa numactl \
45 --host 127.0.0.1 \
46 --port 8080 \
47 --no-mmap \
48 --jinja--chat-template-kwargs '{"enable_thinking": false }'.