Views
No views yet
llama.cpp does not return <think> token for this model. If you know how to fix that, please share in the "Community" section!Admin Panel -> Functions -> Filter -> + button on the right./build/bin/llama-server \
--alias anikifoss/MiniMax-M2-HQ4_K \
--model ~/Env/models/anikifoss/MiniMax-M2-HQ4_K/MiniMax-M2-HQ4_K-00001-of-00004.gguf \
--temp 1.0 --top-k 0 --top-p 1.0 --min-p 0.02 \
--repeat-penalty 1.04 --repeat-last-n 256 \
--ctx-size 95000 \
-ctk q8_0 -ctv q8_0 \
-fa on \
-b 1024 -ub 1024 \
-ngl 99 \
--device CUDA0 \
-ot "blk\.([0-9])\.attn_.*=CUDA0" \
-ot "blk\.([1-6][0-9])\.attn_.*=CUDA0" \
-ot "blk\.([0-4])\.ffn_.*_exps.*=CUDA0" \
-ot "blk\.([5-9])\.ffn_.*_exps.*=CPU" \
-ot "blk\.([1-6][0-9])\.ffn_.*_exps.*=CPU" \
--jinja \
--parallel 1 \
--threads 32 \
--host 127.0.0.1 \
--port 8090./build/bin/llama-server \
--alias anikifoss/MiniMax-M2-HQ4_K \
--model ~/Env/models/anikifoss/MiniMax-M2-HQ4_K/MiniMax-M2-HQ4_K-00001-of-00004.gguf \
--temp 1.0 --top-k 0 --top-p 1.0 --min-p 0.02 \
--repeat-penalty 1.04 --repeat-last-n 256 \
--ctx-size 95000 \
-ctk q8_0 -ctv q8_0 \
-fa on \
-b 1024 -ub 1024 \
-ngl 99 \
--device CUDA0,ROCm0,ROCm1,ROCm2,ROCm3 \
--tensor-split 1,0,0,0,0 \
-ot "blk\.([0-9])\.attn_.*=CUDA0" \
-ot "blk\.([1-6][0-9])\.attn_.*=CUDA0" \
-ot "blk\.([0-9])\.ffn_.*_exps.*=ROCm0" \
-ot "blk\.(1[0-9])\.ffn_.*_exps.*=ROCm1" \
-ot "blk\.(2[0-9])\.ffn_.*_exps.*=ROCm2" \
-ot "blk\.(3[0-9])\.ffn_.*_exps.*=ROCm3" \
-ot "blk\.(4[0-3])\.ffn_.*_exps.*=ROCm0" \
-ot "blk\.(4[4-7])\.ffn_.*_exps.*=ROCm1" \
-ot "blk\.(4[8-9])\.ffn_.*_exps.*=ROCm2" \
-ot "blk\.(5[0-1])\.ffn_.*_exps.*=ROCm2" \
-ot "blk\.(5[2-5])\.ffn_.*_exps.*=ROCm3" \
-ot "blk\.(5[6-9])\.ffn_.*_exps.*=CUDA0" \
-ot "blk\.(6[0-9])\.ffn_.*_exps.*=CUDA0" \
--jinja \
--parallel 1 \
--threads 32 \
--host 127.0.0.1 \
--port 8090Custom Quants section in this detailed guide for all the quantization steps.1TARGET_MODEL="MiniMax-M2-HQ4_K"
2mkdir -p ~/Env/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 /mnt/data/Models/MiniMaxAI/MiniMax-M2-GGUF/MiniMax-M2-256x4.9B-BF16-00001-of-00010.gguf \
13 ~/Env/models/anikifoss/$TARGET_MODEL/$TARGET_MODEL.gguf \
14 Q8_0 \
15 32