Since you already have to manage a module preset file to specify per-model settings without manually editing the llama.cpp args and restarting the service each time, and all args can be set in that file, I just replaced the EnvironmentFile with the model-preset file.
ExecStart=/usr/bin/llama-server --models-preset /etc/conf.d/llama.cpp
$ systemctl edit llama.cpp.service
[Service]
EnvironmentFile=
ExecStart=
ExecStart=/usr/bin/llama-server --models-preset /etc/conf.d/llama.cpp
version = 1
[*]
cache-type-k = q8_0
cache-type-v = q8_0
[unsloth/Qwen3.6-27B-MTP-GGUF:IQ4_XS]
model = /home/shaybox/.lmstudio/models/unsloth/Qwen3.6-27B-MTP-GGUF/Qwen3.6-27B-IQ4_XS.gguf
[unsloth/Qwen3.6-35B-A3B-MTP-GGUF:IQ4_XS]
model = /home/shaybox/.lmstudio/models/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/Qwen3.6-35B-A3B-UD-IQ4_XS.gguf
Pinned Comments
txtsd commented on 2024-10-26 20:17 (UTC) (edited on 2024-12-06 14:15 (UTC) by txtsd)
Alternate versions
llama.cpp
llama.cpp-vulkan
llama.cpp-sycl-fp16
llama.cpp-sycl-fp32
llama.cpp-cuda
llama.cpp-cuda-f16
llama.cpp-hip