Views
No views yet
ik_llama.cpp imatrix Quantizations of Qwen/Qwen3-Coder-30B-A3B-Instructik_llama.cpp can also run your existing GGUFs from bartowski, unsloth, mradermacher, etc if you want to try it out before downloading my quants.
bf16 56.894 GiB (16.007 BPW)
Q8_0 30.247 GiB (8.510 BPW)
Q4_0 16.111 GiB (4.533 BPW)
IQ5_K 21.324 GiB (5.999 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5
6# Attention
7blk\.(0)\.attn_q.*=q8_0
8blk\.(0)\.attn_k.*=q8_0
9blk\.(0)\.attn_v.*=q8_0
10blk\.(0)\.attn_output.*=q8_0
11
12blk\..*\.attn_q.*=iq5_k
13blk\..*\.attn_k.*=iq6_k
14blk\..*\.attn_v.*=iq6_k
15blk\..*\.attn_output.*=iq5_k
16
17# Routed Experts
18blk\.(0|47)\.ffn_down_exps\.weight=q8_0
19blk\.(0|47)\.ffn_(gate|up)_exps\.weight=q8_0
20
21blk\..*\.ffn_down_exps\.weight=iq6_k
22blk\..*\.ffn_(gate|up)_exps\.weight=iq5_k
23
24# Non-Repeating Layers
25token_embd\.weight=iq6_k
26output\.weight=iq6_k
27"
28
29custom=$(
30 echo "$custom" | grep -v '^#' | \
31 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
32)
33
34./build/bin/llama-quantize \
35 --custom-q "$custom" \
36 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
38 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ5_K.gguf \
39 IQ5_K \
40 192IQ4_K 17.878 GiB (5.030 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5
6# Attention
7blk\.(0)\.attn_q.*=q8_0
8blk\.(0)\.attn_k.*=q8_0
9blk\.(0)\.attn_v.*=q8_0
10blk\.(0)\.attn_output.*=q8_0
11
12blk\..*\.attn_q.*=iq5_k
13blk\..*\.attn_k.*=iq6_k
14blk\..*\.attn_v.*=iq6_k
15blk\..*\.attn_output.*=iq5_k
16
17# Routed Experts
18blk\.(0|47)\.ffn_down_exps\.weight=q8_0
19blk\.(0|47)\.ffn_(gate|up)_exps\.weight=q8_0
20
21blk\..*\.ffn_down_exps\.weight=iq5_k
22blk\..*\.ffn_(gate|up)_exps\.weight=iq4_k
23
24# Non-Repeating Layers
25token_embd\.weight=iq4_k
26output\.weight=iq6_k
27"
28
29custom=$(
30 echo "$custom" | grep -v '^#' | \
31 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
32)
33
34./build/bin/llama-quantize \
35 --custom-q "$custom" \
36 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
38 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ4_K.gguf \
39 IQ4_K \
40 192IQ4_KSS 15.531 GiB (4.370 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5
6# Attention
7blk\.(0)\.attn_q.*=q8_0
8blk\.(0)\.attn_k.*=q8_0
9blk\.(0)\.attn_v.*=q8_0
10blk\.(0)\.attn_output.*=q8_0
11
12blk\..*\.attn_q.*=iq5_k
13blk\..*\.attn_k.*=iq6_k
14blk\..*\.attn_v.*=iq6_k
15blk\..*\.attn_output.*=iq5_k
16
17# Routed Experts
18blk\.(0|47)\.ffn_down_exps\.weight=q8_0
19blk\.(0|47)\.ffn_(gate|up)_exps\.weight=q8_0
20
21blk\..*\.ffn_down_exps\.weight=iq4_ks
22blk\..*\.ffn_(gate|up)_exps\.weight=iq4_kss
23
24# Non-Repeating Layers
25token_embd\.weight=iq4_k
26output\.weight=iq6_k
27"
28
29custom=$(
30 echo "$custom" | grep -v '^#' | \
31 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
32)
33
34./build/bin/llama-quantize \
35 --custom-q "$custom" \
36 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
38 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ4_KSS.gguf \
39 IQ4_KSS \
40 192IQ3_K 14.509 GiB (4.082 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5
6# Attention
7blk\.(0)\.attn_q.*=q8_0
8blk\.(0)\.attn_k.*=q8_0
9blk\.(0)\.attn_v.*=q8_0
10blk\.(0)\.attn_output.*=q8_0
11
12blk\..*\.attn_q.*=iq5_k
13blk\..*\.attn_k.*=iq6_k
14blk\..*\.attn_v.*=iq6_k
15blk\..*\.attn_output.*=iq5_k
16
17# Routed Experts
18blk\.(0|47)\.ffn_down_exps\.weight=q8_0
19blk\.(0|47)\.ffn_(gate|up)_exps\.weight=q8_0
20
21blk\..*\.ffn_down_exps\.weight=iq4_k
22blk\..*\.ffn_(gate|up)_exps\.weight=iq3_k
23
24# Non-Repeating Layers
25token_embd\.weight=iq4_k
26output\.weight=iq6_k
27"
28
29custom=$(
30 echo "$custom" | grep -v '^#' | \
31 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
32)
33
34./build/bin/llama-quantize \
35 --custom-q "$custom" \
36 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
38 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-PR735-IQ3_K.gguf \
39 IQ3_K \
40 192IQ3_KS 13.633 GiB (3.836 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5
6# Attention
7blk\.(0)\.attn_q.*=q8_0
8blk\.(0)\.attn_k.*=q8_0
9blk\.(0)\.attn_v.*=q8_0
10blk\.(0)\.attn_output.*=q8_0
11
12blk\..*\.attn_q.*=iq4_ks
13blk\..*\.attn_k.*=iq5_ks
14blk\..*\.attn_v.*=iq5_ks
15blk\..*\.attn_output.*=iq4_ks
16
17# Routed Experts
18blk\.(0|47)\.ffn_down_exps\.weight=q8_0
19blk\.(0|47)\.ffn_(gate|up)_exps\.weight=q8_0
20
21blk\..*\.ffn_down_exps\.weight=iq4_ks
22blk\..*\.ffn_(gate|up)_exps\.weight=iq3_ks
23
24# Non-Repeating Layers
25token_embd\.weight=iq4_k
26output\.weight=iq6_k
27"
28
29custom=$(
30 echo "$custom" | grep -v '^#' | \
31 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
32)
33
34./build/bin/llama-quantize \
35 --custom-q "$custom" \
36 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
38 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ3_KS.gguf \
39 IQ3_KS \
40 192IQ2_KL 11.516 GiB (3.240 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5
6# Attention
7blk\.(0)\.attn_q.*=q8_0
8blk\.(0)\.attn_k.*=q8_0
9blk\.(0)\.attn_v.*=q8_0
10blk\.(0)\.attn_output.*=q8_0
11
12blk\..*\.attn_q.*=iq5_k
13blk\..*\.attn_k.*=iq6_k
14blk\..*\.attn_v.*=iq6_k
15blk\..*\.attn_output.*=iq5_k
16
17# Routed Experts
18blk\.(0|47)\.ffn_down_exps\.weight=q8_0
19blk\.(0|47)\.ffn_(gate|up)_exps\.weight=q8_0
20
21blk\..*\.ffn_down_exps\.weight=iq3_ks
22blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kl
23
24# Non-Repeating Layers
25token_embd\.weight=iq4_k
26output\.weight=iq6_k
27"
28
29custom=$(
30 echo "$custom" | grep -v '^#' | \
31 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
32)
33
34./build/bin/llama-quantize \
35 --custom-q "$custom" \
36 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
38 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ2_KL.gguf \
39 IQ2_KL \
40 192IQ2_KT 9.469 GiB (2.664 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5blk\.(0)\.attn_q.*=iq5_ks
6blk\.(0)\.attn_k.*=iq6_k
7blk\.(0)\.attn_v.*=iq6_k
8blk\.(0)\.attn_output.*=iq5_ks
9
10# Attention
11blk\..*\.attn_q.*=iq4_kt
12blk\..*\.attn_k.*=iq5_ks
13blk\..*\.attn_v.*=iq5_ks
14blk\..*\.attn_output.*=iq4_kt
15
16# Routed Experts
17blk\.(0|47)\.ffn_down_exps\.weight=iq4_kt
18blk\.(0|47)\.ffn_(gate|up)_exps\.weight=iq4_kt
19
20blk\..*\.ffn_down_exps\.weight=iq3_kt
21blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kt
22
23# Non-Repeating Layers
24token_embd\.weight=iq4_kt
25output\.weight=iq6_k
26"
27
28custom=$(
29 echo "$custom" | grep -v '^#' | \
30 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
31)
32
33./build/bin/llama-quantize \
34 --custom-q "$custom" \
35 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
36 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ2_KT.gguf \
38 IQ2_KT \
39 192IQ1_KT 7.583 GiB (2.133 BPW)1#!/usr/bin/env bash
2
3custom="
4# 48 Repeating Layers [0-47]
5blk\.(0)\.attn_q.*=iq5_ks
6blk\.(0)\.attn_k.*=iq6_k
7blk\.(0)\.attn_v.*=iq6_k
8blk\.(0)\.attn_output.*=iq5_ks
9
10# Attention
11blk\..*\.attn_q.*=iq4_kt
12blk\..*\.attn_k.*=iq5_ks
13blk\..*\.attn_v.*=iq5_ks
14blk\..*\.attn_output.*=iq4_kt
15
16# Routed Experts
17blk\.(0|47)\.ffn_down_exps\.weight=iq4_kt
18blk\.(0|47)\.ffn_(gate|up)_exps\.weight=iq4_kt
19
20blk\..*\.ffn_down_exps\.weight=iq2_kt
21blk\..*\.ffn_(gate|up)_exps\.weight=iq1_kt
22
23# Non-Repeating Layers
24token_embd\.weight=iq4_kt
25output\.weight=iq6_k
26"
27
28custom=$(
29 echo "$custom" | grep -v '^#' | \
30 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
31)
32
33./build/bin/llama-quantize \
34 --custom-q "$custom" \
35 --imatrix /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/imatrix-Qwen3-Coder-30B-A3B-Instruct-BF16.dat \
36 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-BF16-00001-of-00002.gguf \
37 /mnt/raid/models/ubergarm/Qwen3-Coder-30B-A3B-Instruct-GGUF/Qwen3-Coder-30B-A3B-Instruct-IQ1_KT.gguf \
38 IQ1_KT \
39 1921# Compile CUDA backend
2cmake -B ./build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON -DGGML_SCHED_MAX_COPIES=1 -DGGML_CUDA_F16=ON
3cmake --build ./build --config Release -j $(nproc)
4
5# Run Server
6./build/bin/llama-server \
7 --model Qwen3-Coder-30B-A3B-Instruct-IQ3_KS.gguf \
8 --alias ubergarm/Qwen3-Coder-30B-A3B-Instruct \
9 --ctx-size 32768 \
10 -ctk q8_0 -ctv q8_0 \
11 -fa -fmoe \
12 -ngl 99 \
13 --parallel 1 \
14 --threads 1 \
15 --host 127.0.0.1 \
16 --port 80801# Compile
2cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=0 -DGGML_VULKAN=0
3cmake --build build --config Release -j $(nproc)
4
5# Run Server
6./build/bin/llama-server \
7 --model Qwen3-Coder-30B-A3B-Instruct-IQ3_KS.gguf \
8 --alias ubergarm/Qwen3-Coder-30B-A3B-Instruct \
9 --ctx-size 32768 \
10 -ctk q8_0 -ctv q8_0 \
11 -fa -fmoe \
12 -ub 4096 -b 4096 \
13 --parallel 1 \
14 --threads 8 \
15 --host 127.0.0.1 \
16 --port 8080 \
17 --no-mmap