Longer agentic work

#5
by Throghar - opened

Today i tested it against harder coding problem, it was longer context agentic work and to my surprise model halucinated several times about doing work which he didnt. One time model confidently just stated the work is done but it was only in reasoning part, nothing was written. I am using largest Q6K quant from https://huggingface.co/NikiKrutan/Kiwen1.1-27B-MTP-GGUF

Thanks for testing. Kiwen1.1 wasn't trained on long-horizon agentic trajectories (poor GPU cluster XD ), so extended tool loops are out of distribution losing track of what it executed is expected there.

But "claims done, nothing written" can also be the template emitting the tool call inside the reasoning block, so the parser never fires it. Could you share the raw stream around the "done" claim plus your llama-server flags? Q6_K isn't the issue.

llama-server.exe --port 1234 --threads 12 --n-gpu-layers 999 --model "Kiwen1.1-27B-23000-NIKI-Q6_K.gguf" --ctx-size 140000 --parallel 1 --temp 1 --min-p 0.0 --top-k 20 --top-p 0.95 --batch-size 8192 --flash-attn on --split-mode layer --offline --main-gpu 0 -ts 0.5,0.5 -ctk q8_0 -ctv q8_0 -ub 256 --jinja --ctx-checkpoints 10 --cache-ram 8192 --chat-template-kwargs "{"preserve_thinking":true,"reasoning_effort":"xhigh"}" --spec-type draft-mtp --spec-draft-n-max 2 -lv 4 -ot "nomatch=CPU" -lm none --spec-draft-device vulkan1 -ctkd q8_0 -ctvd q8_0 --spec-draft-p-min 0.3

Harness: Ante terminal cli

Been testing same prompt with other models, so far no hallucination like with kiwen1.1

I dont think i saw tool call inside reasoning block there, cant rule it out though, whole session was about 100k context tried it several times and everytime problem with hallucination occured in some form.

From my experience after ~80% of full 262K context there may be some noticeable degradation including looping. I sometimes switch to Qwen if I can't compact before 80% and task is really hard (but Qwen wastes all the precious 20% very fast though so better compact early).
Also template sometimes is the issue (in my quants I used v20 of this template ). It is better for my workflow than froggeric's but it is not always so. Most templates give too many additional instructions and logic (including Moore's one). Try different templates.

I also experienced several occasions of looping

Tested, experiencing looping, didnt get to halucination because of that

Owner

Before chasing this further both templates are community-patched. Could you run the original one ?

Well currently with https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates i got one loop, second run is fine for now, im gonna use it more before considering whether hallucination is or is not related to template.

I'd love to see more poeple test it in some harder agentic work with longer context so it can show whether this is related to any specifics in my environment.

I've tried original beyoru's template and looping went away. I haven't seen any other artifacts so far. But I haven't tested much. So I suspect that froggeric's and moore's chat templates do not work well with this model.
Same thing with Kiwen1.2. It awfully loops with froggeric's but ok with original template.

Sign up or log in to comment