Best llama.cpp server serve settings

#30
by aspmaker - opened

Hello.
What is the best settings for single nvidia dgx spark?
i am using like this. Thank you.

sudo podman run -d
--name david_coder
--replace
--security-opt=label=disable
--device nvidia.com/gpu=all
--ipc=host
--net=host
--memory=110g
--ulimit memlock=-1
--ulimit stack=67108864
-v /home/ai_llm/DavidAU-Qwen3.6-27B-Fable-Fusion-711-Uncensored-Heretic-NM-DAU-NEO-MAX-MTP-GGUF:/models:Z
ghcr.io/ggml-org/llama.cpp:server-cuda13
-m /models/Qwen3.6-27B-Fable-Fus-711-UnHeretic-NM-DAU-NEO-MAX-NEO-MTP-Q8_0.gguf
--alias david_coder
--host 0.0.0.0
--port 8002
-c 131072
-ngl 999
--flash-attn on
-b 65536
-ub 16384
-t 40
--cache-type-k q4_0
--cache-type-v q4_0
--spec-type draft-mtp
--spec-draft-n-max 6
--parallel 1
--no-context-shift
--n-predict -1
--slots
--metrics
--reasoning-format auto
--reasoning-preserve

Going to chime in here:
--spec-draft-n-max

Suggest starting with 2-3 ; the best setting will depend directly on your use case(s).
You can go higher for coding, lower for general as a limited example.

Creative however often is hamstrung by MTP; and often works better with it off or using non-MTP quant.

Sign up or log in to comment