by brabel · 1y ago · 0 comments
What would be the best way to use llama.cpp and models that use GGUF these days? ramallama is a good alternative (I guess it is, but it's not completely clear from your message)? Or just use llama.cpp directly, in which case how to ensure I don't get rubbish (like the model asking and answering questions by itself without ever stopping)??
"GLM4-Air":
env:
- "CUDA_VISIBLE_DEVICES=1"
proxy: "http://127.0.0.1:9999"
cmd: >
/app/llama-server
--cache-type-k q8_0 --cache-type-v q8_0
--flash-attn
--ctx-size 32684
--jinja
-ngl 20
--model /modelfiles/GLM-4.5-Air-UD-Q4_K_XL-00001-of-00002.gguf
--port 9999
When run via docker this gets you a similar setup to ollama. The yaml file also needs TTL set if you want it to unload models after an idle period.Ollama native models in their marketplace have these params supposedly set correctly to save you having to do this config but in practice this is hit or miss and often these change from day 0 of the release.