Views
No views yet
1./build/bin/llama-server \
2 --alias anikifoss/MiniMax-M2.1-HQ4_K \
3 --model /models/anikifoss/MiniMax-M2.1-HQ4_K-GGUF/MiniMax-M2.1-HQ4_K-00001-of-00004.gguf \
4 --temp 1.0 --top-k 0 --top-p 1.0 --min-p 0.02 \
5 --repeat-penalty 1.04 --repeat-last-n 256 \
6 --ctx-size 84000 \
7 -ctk q8_0 -ctv q8_0 \
8 -fa on \
9 -b 1024 -ub 1024 \
10 -ngl 99 \
11 --device CUDA0 \
12 -ot "blk\.([0-9])\.attn_.*=CUDA0" \
13 -ot "blk\.([1-6][0-9])\.attn_.*=CUDA0" \
14 -ot "blk\.([0-4])\.ffn_.*_exps.*=CUDA0" \
15 -ot "blk\.([5-9])\.ffn_.*_exps.*=CPU" \
16 -ot "blk\.([1-6][0-9])\.ffn_.*_exps.*=CPU" \
17 --jinja \
18 --parallel 1 \
19 --threads 32 \
20 --host 127.0.0.1 \
21 --port 80901./build/bin/llama-server \
2 --alias anikifoss/MiniMax-M2.1-HQ4_K \
3 --model /models/anikifoss/MiniMax-M2.1-HQ4_K-GGUF/MiniMax-M2.1-HQ4_K-00001-of-00004.gguf \
4 --temp 1.0 --top-k 0 --top-p 1.0 --min-p 0.02 \
5 --repeat-penalty 1.04 --repeat-last-n 256 \
6 --ctx-size 84000 \
7 -ctk q8_0 -ctv q8_0 \
8 -fa on \
9 -b 1024 -ub 1024 \
10 -ngl 99 \
11 --device CUDA0,ROCm0,ROCm1,ROCm2,ROCm3 \
12 --tensor-split 1,0,0,0,0 \
13 -ot "blk\.([0-9])\.attn_.*=CUDA0" \
14 -ot "blk\.([1-6][0-9])\.attn_.*=CUDA0" \
15 -ot "blk\.([0-9])\.ffn_.*_exps.*=ROCm0" \
16 -ot "blk\.(1[0-9])\.ffn_.*_exps.*=ROCm1" \
17 -ot "blk\.(2[0-9])\.ffn_.*_exps.*=ROCm2" \
18 -ot "blk\.(3[0-9])\.ffn_.*_exps.*=ROCm3" \
19 -ot "blk\.(4[0-3])\.ffn_.*_exps.*=ROCm0" \
20 -ot "blk\.(4[4-7])\.ffn_.*_exps.*=ROCm1" \
21 -ot "blk\.(4[8-9])\.ffn_.*_exps.*=ROCm2" \
22 -ot "blk\.(5[0-1])\.ffn_.*_exps.*=ROCm2" \
23 -ot "blk\.(5[2-5])\.ffn_.*_exps.*=ROCm3" \
24 -ot "blk\.(5[6-9])\.ffn_.*_exps.*=CUDA0" \
25 -ot "blk\.(6[0-9])\.ffn_.*_exps.*=CUDA0" \
26 --jinja \
27 --parallel 1 \
28 --threads 32 \
29 --host 127.0.0.1 \
30 --port 80901HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
2 cmake -S . -B build -DGGML_HIP=ON \
3 -DGGML_BACKEND_DL=ON -DGGML_CUDA=ON -DGGML_CPU_ALL_VARIANTS=ON \
4 -DAMDGPU_TARGETS="gfx906;gfx1201" \
5 -DGGML_BLAS=OFF -DLLAMA_CURL=OFF -DGGML_RPC=ON -DCMAKE_BUILD_TYPE=Release
6
7HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
8 cmake --build ./build --config Release --clean-first -j $(nproc)DAMDGPU_TARGETS:gfx906 for MI50gfx1201 for R9700Custom Quants section in this detailed guide for all the quantization steps.1TARGET_MODEL="MiniMax-M2.1-HQ4_K"
2mkdir -p /models/anikifoss/$TARGET_MODEL
3./build/bin/llama-quantize \
4 --output-tensor-type Q8_0 \
5 --token-embedding-type Q8_0 \
6 --tensor-type attn_q=Q8_0 \
7 --tensor-type attn_k=Q8_0 \
8 --tensor-type attn_v=Q8_0 \
9 --tensor-type ffn_down_exps=Q6_K \
10 --tensor-type ffn_gate_exps=Q4_K \
11 --tensor-type ffn_up_exps=Q4_K \
12 /models/MiniMaxAI/MiniMax-M2.1-GGUF/MiniMax-M2.1-256x4.9B-BF16-00001-of-00010.gguf \
13 /models/anikifoss/$TARGET_MODEL/$TARGET_MODEL.gguf \
14 Q8_0 \
15 32