Views
No views yet
ik_llama.cpp imatrix Quantizations of deepseek-ai/DeepSeek-V3.1ik_llama.cpp can also run your existing GGUFs from bartowski, unsloth, mradermacher, etc if you want to try it out before downloading my quants.
Q8_0 664.295 GiB (8.504 BPW)
1#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5# attn_kv_b is only used for PP so keep it q8_0 for best speed and accuracy
6blk\..*\.attn_kv_b\.weight=q8_0
7
8# ideally k_b and v_b are smaller than q8_0 as they are is used for TG with -mla 3
9# https://github.com/ikawrakow/ik_llama.cpp/issues/651
10# blk.*.attn_k_b.weight is not divisible by 256 so only supports iq4_nl or legacy qN_0
11blk\..*\.attn_k_b\.weight=q8_0
12blk\..*\.attn_v_b\.weight=q8_0
13
14# Balance of attn tensors
15blk\..*\.attn_kv_a_mqa\.weight=q8_0
16blk\..*\.attn_q_a\.weight=q8_0
17blk\..*\.attn_q_b\.weight=q8_0
18blk\..*\.attn_output\.weight=q8_0
19
20## First Three Dense Layers [0-2] (GPU)
21blk\..*\.ffn_down\.weight=q8_0
22blk\..*\.ffn_(gate|up)\.weight=q8_0
23
24## Shared Expert (1-60) (GPU)
25blk\..*\.ffn_down_shexp\.weight=q8_0
26blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
27
28## Routed Experts (1-60) (CPU)
29blk\..*\.ffn_down_exps\.weight=iq6_k
30blk\..*\.ffn_(gate|up)_exps\.weight=iq5_k
31
32## Token embedding and output tensors (GPU)
33token_embd\.weight=iq6_k
34output\.weight=iq6_k
35"
36
37custom=$(
38 echo "$custom" | grep -v '^#' | \
39 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
40)
41
42numactl -N 1 -m 1 \
43./build/bin/llama-quantize \
44 --custom-q "$custom" \
45 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
46 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x21B-safetensors-BF16-00001-of-00030.gguf \
47 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ5_K.gguf \
48 IQ5_K \
49 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=q8_0
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=q8_0
16blk\..*\.ffn_(gate|up)\.weight=q8_0
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=q8_0
20blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq5_k
24blk\..*\.ffn_(gate|up)_exps\.weight=iq4_k
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq6_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ4_K.gguf \
44 IQ4_K \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=iq6_k
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq5_ks
24blk\..*\.ffn_(gate|up)_exps\.weight=iq4_ks
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ4_KS.gguf \
44 IQ4_KS \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=iq6_k
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq4_ks
24blk\..*\.ffn_(gate|up)_exps\.weight=iq4_kss
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=1
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ4_KSS.gguf \
44 IQ4_KSS \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=iq6_k
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq4_kss
24blk\..*\.ffn_(gate|up)_exps\.weight=iq4_kss
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=1
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-smol-IQ4_KSS.gguf \
44 IQ4_KSS \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=q8_0
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=q8_0
16blk\..*\.ffn_(gate|up)\.weight=q8_0
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=q8_0
20blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq4_kss
24blk\..*\.ffn_(gate|up)_exps\.weight=iq3_k
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq6_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ3_K.gguf \
44 IQ3_K \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=iq6_k
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq4_kss
24blk\..*\.ffn_(gate|up)_exps\.weight=iq3_ks
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ3_KS.gguf \
44 IQ3_KS \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=iq6_k
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq3_ks
24blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kl
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ2_KL-PR624.gguf \
44 IQ2_KL \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=q8_0
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=q8_0
16blk\..*\.ffn_(gate|up)\.weight=q8_0
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=q8_0
20blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq3_kt
24blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kt
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq6_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ2_KT.gguf \
44 IQ2_KT \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=q8_0
12blk\..*\.attn_output\.weight=iq6_k
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq2_kl
24blk\..*\.ffn_(gate|up)_exps\.weight=iq2_ks
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ2_KS.gguf \
44 IQ2_KS \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5blk\..*\.attn_k_b\.weight=q8_0
6blk\..*\.attn_v_b\.weight=q8_0
7
8# Balance of attn tensors
9blk\..*\.attn_kv_a_mqa\.weight=q8_0
10blk\..*\.attn_q_a\.weight=q8_0
11blk\..*\.attn_q_b\.weight=iq5_ks
12blk\..*\.attn_output\.weight=iq5_ks
13
14## First Three Dense Layers [0-2] (GPU)
15blk\..*\.ffn_down\.weight=iq5_ks
16blk\..*\.ffn_(gate|up)\.weight=iq5_ks
17
18## Shared Expert [3-60] (GPU)
19blk\..*\.ffn_down_shexp\.weight=iq5_ks
20blk\..*\.ffn_(gate|up)_shexp\.weight=iq5_ks
21
22## Routed Experts [3-60] (CPU)
23blk\..*\.ffn_down_exps\.weight=iq2_kt
24blk\..*\.ffn_(gate|up)_exps\.weight=iq1_kt
25
26## Token embedding and output tensors (GPU)
27token_embd\.weight=iq4_k
28output\.weight=iq6_k
29"
30
31custom=$(
32 echo "$custom" | grep -v '^#' | \
33 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
34)
35
36SOCKET=0
37
38numactl -N "$SOCKET" -m "$SOCKET" \
39./build/bin/llama-quantize \
40 --custom-q "$custom" \
41 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
43 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ1_KT.gguf \
44 IQ1_KT \
45 1921#!/usr/bin/env bash
2
3custom="
4## Attention [0-60] (GPU)
5# https://github.com/ikawrakow/ik_llama.cpp/issues/651
6blk\..*\.attn_k_b\.weight=q6_0
7blk\..*\.attn_v_b\.weight=iq6_k
8
9# Balance of attn tensors
10blk\..*\.attn_kv_a_mqa\.weight=iq5_ks
11blk\..*\.attn_q_a\.weight=iq5_ks
12blk\..*\.attn_q_b\.weight=iq5_ks
13blk\..*\.attn_output\.weight=iq4_ks
14
15## First Three Dense Layers [0-2] (GPU)
16blk\..*\.ffn_down\.weight=iq5_ks
17blk\..*\.ffn_(gate|up)\.weight=iq4_ks
18
19## Shared Expert (1-60) (GPU)
20blk\..*\.ffn_down_shexp\.weight=iq5_ks
21blk\..*\.ffn_(gate|up)_shexp\.weight=iq4_ks
22
23## Routed Experts (1-60) (CPU)
24blk\..*\.ffn_down_exps\.weight=iq1_m
25blk\..*\.ffn_(gate|up)_exps\.weight=iq1_s
26
27## Token embedding and output tensors (GPU)
28token_embd\.weight=iq4_k
29output\.weight=iq6_k
30"
31
32custom=$(
33 echo "$custom" | grep -v '^#' | \
34 sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
35)
36
37numactl -N 1 -m 1 \
38./build/bin/llama-quantize \
39 --custom-q "$custom" \
40 --imatrix /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/imatrix-DeepSeek-V3.1-Q8_0.dat \
41 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-256x20B-safetensors-BF16-00001-of-00030.gguf \
42 /mnt/raid/models/ubergarm/DeepSeek-V3.1-GGUF/DeepSeek-V3.1-IQ1_S.gguf \
43 IQ1_S \
44 1921# 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 -DGGML_BLAS=OFF -DGGML_SCHED_MAX_COPIES=1
7$ cmake --build build --config Release -j $(nproc)
8
9# Run API server Hybrid CPU+GPU
10# model is the first file of the GGUF splits
11$ ./build/bin/llama-server \
12 --model "$model"\
13 --alias ubergarm/DeepSeek-V3.1-GGUF \
14 --ctx-size 32768 \
15 -ctk q8_0 \
16 -fa -fmoe \
17 -mla 3 -amb 512 \
18 -ngl 99 \
19 -ot exps=CPU \
20 --parallel 1 \
21 --threads 8 \
22 --host 127.0.0.1 \
23 --port 8080 \
24 --no-display-prompt \
25 --chat-template deepseek3
26
27# Run API Server CPU-Only
28$ numactl -N 0 -m 0 \
29./build/bin/llama-server \
30 --model "$model"\
31 --alias ubergarm/DeepSeek-V3.1-GGUF \
32 --ctx-size 131072 \
33 -ub 4096 -b 4096 \
34 -ctk q8_0 \
35 -fa -fmoe \
36 -mla 3 \
37 --parallel 1 \
38 --threads 128 \
39 --threads-batch 192 \
40 --numa numactl \
41 --host 127.0.0.1 \
42 --port 8080 \
43 --no-display-prompt \
44 --chat-template deepseek3 \
45 --no-mmap-ot ...=CUDA1 offload regex arguments etc.