Q5KM Getting Stuck in Loops — Any Ideas?

#4
by nathaninline - opened

Hi, awesome model, I love it! The only thing that bothers me is the looping. I’m using the Q5KM, and it’s really powerful, but it always ends up getting stuck in loops, even though I’ve set all the parameters exactly as you recommend. Any idea why?

I have seen one instance of this with all the testing I did. You could try setting the temperature a bit lower, but not 0. Also make sure the Jinja isn't changed.

What engine do you use? Would help is you could provide more information so I can try to replicate or resolve it.

llamacpp :

NAME=SIGNAL 3.8 27B

BIN="/etc/ajean/backends/llama.cpp/build/bin/llama-server"
EXTRA_ARGS=-np 1 --spec-type draft-mtp --spec-draft-n-max 3 --flash-attn on --kv-unified --load-mode mlock --split-mode tensor --tensor-split 0.710,0.290 --jinja
HOST=0.0.0.0
KV_TYPE_K=q5_0
KV_TYPE_V=q4_1
MODEL=/etc/ajean/models/Signal-3.8-27B-AP-Q5_K_M.gguf
PORT=8080
REASONING=on
CTX=100000
REASONING_EFFORT=xhigh
TEMP=0.7
TOP_P=0.95
TOP_K=20
MIN_P=0

I'll try to upload a milder mix tomorrow that will behave better. Thanks for letting me know!

For now you could try min_p=0.05, TEMP=0.6. I would try to use better KV cache types if possible.

Thanks for the feedback. I had already tested it with KV cache Q8, and the behavior is the same

I will upload new files later today. Thanks again

agentionai changed discussion status to closed

Sign up or log in to comment