Views
No views yet
ik_llama.cpp imatrix Quantizations of Qwen/Qwen3.6-27Bik_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 50.103 GiB (16.002 BPW)
Q8_0 26.622 GiB (8.502 BPW)
1#!/usr/bin/env bash
2
3custom="
4# 64 Repeating Layers [0-63]
5
6## Gated Attention/Delta Net [Blended 0-63]
7blk\..*\.attn_gate\.weight=q6_0
8blk\..*\.attn_qkv\.weight=q6_0
9blk\..*\.attn_output\.weight=q6_0
10blk\..*\.attn_q\.weight=q6_0
11blk\..*\.attn_k\.weight=q6_0
12blk\..*\.attn_v\.weight=q6_0
13blk\..*\.ssm_alpha\.weight=q8_0
14blk\..*\.ssm_beta\.weight=q8_0
15blk\..*\.ssm_out\.weight=q8_0
16
17# Dense Layers [0-63]
18blk\..*\.ffn_down\.weight=iq5_ks
19blk\..*\.ffn_(gate|up)\.weight=iq5_ks
20
21# Non-Repeating Layers
22token_embd\.weight=q6_0
23output\.weight=q8_0
24"
25
26custom=$(
27 echo "$custom" | grep -v '^#' | \
28 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
29)
30
31 #--dry-run \
32numactl -N ${SOCKET} -m ${SOCKET} \
33./build/bin/llama-quantize \
34 --custom-q "$custom" \
35 --imatrix /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/imatrix-Qwen3.6-27B-BF16.dat \
36 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-BF16-00001-of-00002.gguf \
37 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-IQ5_KS.gguf \
38 IQ5_KS \
39 1281#!/usr/bin/env bash
2
3custom="
4# 64 Repeating Layers [0-63]
5
6## Gated Attention/Delta Net [Blended 0-63]
7blk\..*\.attn_gate\.weight=iq4_nl
8blk\..*\.attn_qkv\.weight=iq4_nl
9blk\..*\.attn_output\.weight=iq4_nl
10blk\..*\.attn_q\.weight=iq4_nl
11blk\..*\.attn_k\.weight=iq4_nl
12blk\..*\.attn_v\.weight=iq4_nl
13blk\..*\.ssm_alpha\.weight=q8_0
14blk\..*\.ssm_beta\.weight=q8_0
15blk\..*\.ssm_out\.weight=q8_0
16
17# Dense Layers [0-63]
18blk\..*\.ffn_down\.weight=iq4_nl
19blk\..*\.ffn_(gate|up)\.weight=iq4_nl
20
21# Non-Repeating Layers
22token_embd\.weight=iq4_nl
23output\.weight=q8_0
24"
25
26custom=$(
27 echo "$custom" | grep -v '^#' | \
28 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
29)
30
31 #--dry-run \
32numactl -N ${SOCKET} -m ${SOCKET} \
33./build/bin/llama-quantize \
34 --custom-q "$custom" \
35 --imatrix /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/imatrix-Qwen3.6-27B-BF16.dat \
36 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-BF16-00001-of-00002.gguf \
37 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-smol-IQ4_NL.gguf \
38 IQ4_NL \
39 128blk.64.* MTP tensors below)-mtp --draft-max 4 --draft-p-min 0.751#!/usr/bin/env bash
2
3custom="
4# 64 Repeating Layers [0-63] + blk.64 MTP/nextn tensors
5
6## MTP/nextn tensors
7## No way to make imatrix data for blk.64.*
8## Keep q8_0 for best MTP spec-decoding acceptance rate
9## Adds ~430.41 MiB extra size over non-MTP quants
10blk\.64\..*\.weight=q8_0
11
12## Gated Attention/Delta Net [Blended 0-63]
13blk\..*\.attn_gate\.weight=iq4_ks
14blk\..*\.attn_qkv\.weight=iq4_ks
15blk\..*\.attn_output\.weight=iq4_ks
16blk\..*\.attn_q\.weight=iq4_ks
17blk\..*\.attn_k\.weight=iq4_ks
18blk\..*\.attn_v\.weight=iq4_ks
19blk\..*\.ssm_alpha\.weight=q6_0
20blk\..*\.ssm_beta\.weight=q6_0
21blk\..*\.ssm_out\.weight=q6_0
22
23# Dense Layers [0-63]
24blk\..*\.ffn_down\.weight=iq4_ks
25blk\..*\.ffn_(gate|up)\.weight=iq4_ks
26
27# Non-Repeating Layers
28token_embd\.weight=q6_0
29output\.weight=q8_0
30"
31
32custom=$(
33 echo "$custom" | grep -v '^#' | \
34 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
35)
36
37 #--dry-run \
38numactl -N ${SOCKET} -m ${SOCKET} \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/imatrix-Qwen3.6-27B-BF16.dat \
42 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF-mtp/Qwen3.6-27B-BF16-00001-of-00002.gguf \
43 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF-mtp/Qwen3.6-27B-MTP-smol-IQ4_KS.gguf \
44 IQ4_KS \
45 128
46# renamed it to remove `-smol` before upload1#!/usr/bin/env bash
2
3custom="
4# 64 Repeating Layers [0-63]
5
6## Gated Attention/Delta Net [Blended 0-63]
7blk\..*\.attn_gate\.weight=iq4_ks
8blk\..*\.attn_qkv\.weight=iq4_ks
9blk\..*\.attn_output\.weight=iq4_ks
10blk\..*\.attn_q\.weight=iq4_ks
11blk\..*\.attn_k\.weight=iq4_ks
12blk\..*\.attn_v\.weight=iq4_ks
13blk\..*\.ssm_alpha\.weight=q6_0
14blk\..*\.ssm_beta\.weight=q6_0
15blk\..*\.ssm_out\.weight=q6_0
16
17# Dense Layers [0-63]
18blk\..*\.ffn_down\.weight=iq4_ks
19blk\..*\.ffn_(gate|up)\.weight=iq4_ks
20
21# Non-Repeating Layers
22token_embd\.weight=q6_0
23output\.weight=q8_0
24"
25
26custom=$(
27 echo "$custom" | grep -v '^#' | \
28 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
29)
30
31 #--dry-run \
32numactl -N ${SOCKET} -m ${SOCKET} \
33./build/bin/llama-quantize \
34 --custom-q "$custom" \
35 --imatrix /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/imatrix-Qwen3.6-27B-BF16.dat \
36 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-BF16-00001-of-00002.gguf \
37 /mnt/data/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-smol-IQ4_KS.gguf \
38 IQ4_KS \
39 128
40# renamed it to remove `-smol` before upload1git clone https://github.com/ikawrakow/ik_llama.cpp.git
2cd ik_llama.cpp
3
4cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON -DGGML_CUDA_F16=ON
5cmake --build build --config Release -j $(nproc)
6
7# wget https://huggingface.co/ubergarm/Qwen3.6-27B-GGUF/resolve/main/Qwen3.6-27B-MTP-IQ4_KS.gguf
8model=/mnt/ai/models/ubergarm/Qwen3.6-27B-GGUF/Qwen3.6-27B-MTP-IQ4_KS.gguf
9# wget https://huggingface.co/ggml-org/Qwen3.6-27B-GGUF/resolve/main/mmproj-Qwen3.6-27B-Q8_0.gguf
10mmproj=/mnt/ai/models/ubergarm/Qwen3.6-27B-GGUF/mmproj-Qwen3.6-27B-Q8_0.gguf
11
12SLOT_SAVE_DIR="/tmp/llama-slot-cache"
13mkdir -p "$SLOT_SAVE_DIR"
14
15CUDA_VISIBLE_DEVICES="0" \
16./build/bin/llama-server \
17 --model "$model" \
18 --alias "Qwen3.6-27B" \
19 -c 131072 \
20 -ctk q8_0 -ctv q8_0 \
21 -ctkd q8_0 -ctvd q8_0 \
22 --merge-qkv \
23 -muge \
24 -ngl 99 \
25 -t 1 \
26 -tb 1 \
27 -tm 16 \
28 --host 127.0.0.1 \
29 --port 8080 \
30 --parallel 1 \
31 --jinja \
32 --ctx-checkpoints 32 \
33 -cram 32768 \
34 --spec-type mtp:n_max=4,p_min=0.0 \
35 -mtprot iq4_ks \
36 --no-mmproj-offload \
37 --mmproj "$mmproj" \
38 --slot-save-path "$SLOT_SAVE_DIR"-sm graph when running. This keeps the mmproj on CPU/RAM and is set to 16 physical cores currently, reduce -tm 8 etc if you have less cores.-mtprot iq4_ks which will slightly slow down generation.