Views
No views yet
Qwen3.6-27B.i1-IQ4_KT-attn_qkv-IQ4_KS.gguf (no MTP, for GPU Only)Qwen3.6-27B.i1-IQ4_KT-attn_qkv-IQ4_KS-i1_MTP.gguf (with MTP, for GPU Only)Qwen3.6-27B.CPU.i1-IQ4_KT-attn_qkv-IQ4_KS-i1_MTP.gguf (with MTP, for GPU+CPU)1./llama-perplexity -m Qwen3.6-27B.i1-IQ4_KS-attn_qkv-IQ4_KS_test36n.gguf -f /mnt/Samsung4TB/models/pg19.txt -c 65536 --chunks 32 -ngl 99 -ctk q4_0 -ctv q4_0 -khad -vhad --no-mmap --merge-qkv -fa 1 -b 512 -ub 512 -t 8
2perplexity: tokenization took 957.272 ms
3perplexity: calculating perplexity over 12 chunks, n_ctx=65536, batch_size=512, n_seq=1
4perplexity: 70.16 seconds per pass - ETA 14.02 minutes
5[1]6.6908,[2]6.9999,[3]7.1898,[4]7.3280,[5]7.4747,[6]7.3713,[7]7.4271,[8]7.4306,[9]7.4697,[10]7.5156,[11]7.5640,[12]7.3997,
6Final estimate: PPL over 12 chunks for n_ctx=65536 = 7.3997 +/- 0.02772Qwen3.6-27B.CPU.i1-IQ4_KT-attn_qkv-IQ4_KS-i1_MTP.gguf, which uses iq4_ks quantization for the first 16 FFN blocks.
This was done to test out the concept discussed in this Reddit thread.1llama-server" \
2 -m "$MODEL_PATH" \
3 -a Qwen3.6-27B \
4 --ctx-size 140000 \
5 --chat-template-file chat_template.jinja \
6 --n-gpu-layers 99 \
7 --cache-type-k q5_0 \
8 --cache-type-v q4_0 \
9 --spec-type ngram-mod:n_max=2 \
10 --spec-type mtp:n_max=3 \
11 --batch-size 512 \
12 --ubatch-size 512 \
13 -ot "blk\.([0-9]|1[0-5])\.ffn_.*=CPU" \
14 --flash-attn on \
15 --host 0.0.0.0 \
16 --port 8081 \
17 --reasoning on \
18 --reasoning-format none \
19 --reasoning-budget 32000 \
20 -t 8 \
21 -tb 8 \
22 --parallel 1 \
23 --metrics \
24 --merge-qkv \
25 -khad \
26 -vhad \
27 --chat-template-kwargs '{"preserve_thinking": true}' \
28 --defrag-thold 0.4 \
29 --jinja \
30 --cont-batching \
31 --temp 0.6 \
32 --top-k 20 \
33 --min-p 0.05 \
34 --top-p 0.95 \
35 --presence-penalty 0.0 \
36 --repeat-last-n 512 \
37 --repeat-penalty 1.05q4_0 KV cache quantization, it allows pushing the context length up to 105k tokens.Note: This model is designed exclusively for nVidia GPUs and is based on the advanced KS and KT quants developed by ikawrakow from the ik_llama.cpp repository.
1# 1. Base Tensors & Embeddings
2^output\.weight$ -> iq5_k
3^output_norm\.weight$ -> f32
4^token_embd\.weight$ -> iq4_ks
5
6# 2. Attention Gate Exceptions (per-block)
7^blk\.0\.attn_gate\.weight$ -> q8_0
8^blk\.([1-2]|60|61)\.attn_gate\.weight$ -> iq6_k
9^blk\.62\.attn_gate\.weight$ -> q8_0
10.*attn_gate\.weight$ -> iq4_ks
11
12# 3. Feed-Forward Networks (FFN) — Sandwich Pattern
13# Outer blocks 0-3 and 60-63: standard iq4_ks
14# Middle blocks 4-59: aggressive iq4_kss for down/gate
15^blk\.([4-9]|[1-5][0-9])\.ffn_(down|gate)\.weight$ -> iq4_kss
16.*ffn_(down|gate)\.weight$ -> iq4_ks
17# All blocks: ffn_up uses iq4_kt
18.*ffn_up\.weight$ -> iq4_kt
19
20# 4. Attention Layers
21.*attn_qkv\.weight$ -> iq4_ks
22.*attn_(q|k)\.weight$ -> iq4_ks
23.*attn_v\.weight$ -> iq5_ks
24.*attn_output\.weight$ -> iq4_kt
25
26# 5. Mamba / SSM Layers
27.*ssm_out\.weight$ -> iq4_kt
28.*ssm_(alpha|beta)\.weight$ -> iq4_ks
29.*ssm_conv1d\.weight$ -> f32
30.*ssm_a$ -> f32
31.*ssm_dt\.bias$ -> f32
32
33# 6. All Normalization Layers (Kept in f32 for stability)
34.*norm\.weight$ -> f32q4_0), as this is the primary target use case:1wget [https://www.gutenberg.org/files/2600/2600-0.txt](https://www.gutenberg.org/files/2600/2600-0.txt) -O pg19.txt \
2
3./llama-perplexity -m Qwen3.6-27B.i1-IQ4_KS_KT-attn_qkv-IQ4_KS.gguf -f /mnt/Samsung4TB/models/pg19.txt -c 65536 --chunks 32 -ngl 99 -khad -vhad -ctk q4_0 -ctv q4_0 -fa 1 -b 512 -ub 2561[1]6.6915,[2]7.0030,[3]7.1945,[4]7.3323,[5]7.4815,[6]7.3783,[7]7.4367,[8]7.4409,[9]7.4804,[10]7.5251,[11]7.5728,[12]7.4091,
2
3Final estimate: PPL over 12 chunks for n_ctx=65536 = 7.4091 +/- 0.02777llama-server. It utilizes the corrected chat template (chat.template) by ex-arman68, sourced from froggeric/Qwen-Fixed-Chat-Templates.1llama-server \
2 -m "$MODEL_PATH" \
3 -a Qwen3.6-27B \
4 --ctx-size 105000 \
5 --chat-template-file chat_template.jinja \
6 --n-gpu-layers 99 \
7 --cache-type-k q4_0 \
8 --cache-type-v q4_0 \
9 --batch-size 512 \
10 --ubatch-size 192 \
11 --flash-attn on \
12 --no-mmap \
13 --host 0.0.0.0 \
14 --port 8081 \
15 --reasoning on \
16 --reasoning-format deepseek \
17 -t 8 \
18 --parallel 1 \
19 -khad \
20 -vhad \
21 --chat-template-kwargs '{"preserve_thinking": true}' \
22 --defrag-thold 0.3 \
23 --jinja \
24 --cont-batching \
25 --temp 0.15 \
26 --top-k 1 \
27 --min-p 0.1 \
28 --keep -1 \
29 --repeat-last-n 512 \
30 --repeat-penalty 1.051llama-server \
2 -m "$MODEL_PATH" \
3 -a Qwen3.6-27B \
4 --ctx-size 60000 \
5 --chat-template-file chat_template.jinja \
6 --n-gpu-layers 99 \
7 -mtp \
8 --spec-type mtp \
9 --draft-n 3 \
10 --cache-type-k q4_0 \
11 --cache-type-v q4_0 \
12 --batch-size 512 \
13 --ubatch-size 192 \
14 --flash-attn on \
15 --no-mmap \
16 --host 0.0.0.0 \
17 --port 8081 \
18 --reasoning on \
19 --reasoning-format deepseek \
20 -t 8 \
21 --parallel 1 \
22 -khad \
23 -vhad \
24 --chat-template-kwargs '{"preserve_thinking": true}' \
25 --defrag-thold 0.3 \
26 --jinja \
27 --cont-batching \
28 --temp 0.15 \
29 --top-k 1 \
30 --min-p 0.1 \
31 --keep -1 \
32 --repeat-last-n 512 \
33 --repeat-penalty 1.05