Qwen3.6-27B Local Deployment: llama-server Parameter Tuning Consultation

#8
by jason888888 - opened

Running the local model is intended for OpenClaw. Below are my runtime parameters. Could you please check if any settings are unreasonable and offer some suggestions?
@echo off
set CUDA_VISIBLE_DEVICES=0

set MODEL_PATH=H:\llama-b8933\models\Qwen3.6-27B-NEO-CODE-HERE-2T-OT-IQ4_XS.gguf

H:\llama-b8933\llama-server.exe ^
-m "%MODEL_PATH%" ^
--n-gpu-layers 99 ^
--ctx-size 120000 ^
--cache-ram 16384 ^
--batch-size 1024 ^
--ubatch-size 512 ^
--parallel 1 ^
--cache-type-k q4_0 ^
--cache-type-v q4_0 ^
--flash-attn on ^
--threads 12 ^
--prio 3 ^
--jinja ^
--host 0.0.0.0 ^
--port 8080 ^
--samplers min_p;top_p;temp;penalties ^
--temp 0.7 ^
--min-p 0.06 ^
--top_p 0.95 ^
--top_k 20 ^
--repeat-penalty 1.15 ^
--repeat-last-n 512 ^
--presence-penalty 0.15 ^
--frequency-penalty 0.15 ^
--cont-batching

pause

you should get https://github.com/TheTom/llama-cpp-turboquant but other than that I think you just go with similar settings to what the original authors suggest

Owner

Your rep pen is very high ; start with 1 and check results.
Increase SLOWLY : 1.01, 1.02... etc etc.

Rep pen is as powerful as "temp" with newer models.

AS for temp ; lower it to .3 to .5 [in concert with rep pen] ...

As David mentions, rep-pen should be used sparingly for 27B, by 1.3 or 1.4, the model outputs are completely garbage. 1.03 or 1.04 is enough to clearly see a difference in output style.

Have never found a need for minp or freqpen in 27B.

Sign up or log in to comment