Repository navigation
Closed
Labels
Description
About
Docs, release notes, feedback, and build info.
Unsloth
Unsloth Version
v0.1.702-beta
Package Version
2026.8.16
llama.cpp Version
b10360-mix-87da1a2
Windows 10
Hardware
GPU 0
AMD Radeon PRO W7900 · 45 GiB
GPU 1
AMD Radeon PRO W7500 · 8 GiB
ROCm
7.13.99004
Just as the Title says; I did my test prompt of "Balls" and Qwen3.8-27B responded and then Unsloth Studio nudged it for a tool call that it didn't ask for.
Here are the logs + screenshot:
{"timestamp": "2026-08-15T04:27:45.910037Z", "level": "info", "event": "request_completed", "method": "PUT", "path": "/api/chat/threads/__LOCALID_ZX1j2we/messages", "status_code": 200, "process_time_ms": 31.58}
{"timestamp": "2026-08-15T04:27:46.260870Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/chat/messages:batch", "status_code": 200, "process_time_ms": 19.48}
{"timestamp": "2026-08-15T04:27:49.233208Z", "level": "info", "event": "engine_stats", "gen_tok_s": 31.3, "prompt_tok_s": 546.0, "running": 1, "waiting": 0}
{"timestamp": "2026-08-15T04:27:50.133001Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 6.76}
{"timestamp": "2026-08-15T04:27:50.609302Z", "level": "info", "event": "Re-prompt 1/3: model responded without calling tools (313 chars)"}
{"timestamp": "2026-08-15T04:27:58.160456Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/v1/chat/completions", "status_code": 200, "process_time_ms": 12288.86}
{"timestamp": "2026-08-15T04:27:58.212210Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_ZX1j2we/messages/x5SBXO1/forks", "status_code": 200, "process_time_ms": 6.52}
{"timestamp": "2026-08-15T04:27:58.223339Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_ZX1j2we/messages/x5SBXO1", "status_code": 200, "process_time_ms": 7.95}
{"timestamp": "2026-08-15T04:27:58.232114Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_ZX1j2we", "status_code": 200, "process_time_ms": 5.74}
{"timestamp": "2026-08-15T04:27:58.246192Z", "level": "info", "event": "request_completed", "method": "PUT", "path": "/api/chat/threads/__LOCALID_ZX1j2we/messages/x5SBXO1", "status_code": 200, "process_time_ms": 11.43}
{"timestamp": "2026-08-15T04:27:58.301750Z", "level": "info", "event": "request_completed", "method": "PUT", "path": "/api/chat/threads/__LOCALID_ZX1j2we/messages", "status_code": 200, "process_time_ms": 22.53}
{"timestamp": "2026-08-15T04:27:58.643072Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/chat/messages:batch", "status_code": 200, "process_time_ms": 17.86}
{"timestamp": "2026-08-15T04:27:59.239242Z", "level": "info", "event": "engine_stats", "gen_tok_s": 30.5, "prompt_tok_s": 628.1, "running": 0, "waiting": 0}
Also the prompt speed was incorrect here as it never hit 843 tok/sec pp as seen by the above log.

Reacted by TheAlex25 and Lucas Soreau
Activity
danielhanchen commentedon Aug 17, 2026
Sometimes this happens hmmm
ekimtan commentedon Aug 17, 2026
I encountered this issue as well and asked claude to debug it. Here are the findings, might be useful
The re-prompt gate has three different defaults for the same feature:
nudge_tool_callspassthrough_healing.py:61nudge_enabled()UNSLOTH_TOOL_CALL_NUDGEsafetensors_agentic.py:1012and nudge_tool_callsllama_cpp.py:20741and (nudge_tool_calls is None or nudge_tool_calls)studio_tool_loop.py(external providers)nudge_enabledYour
Re-prompt 1/3line comes fromllama_cpp.py, the default-on one, so a UI request that never mentionsnudge_tool_callsgets nudged even though the documented default is off. That alone explains the "Balls" case.The external-provider loop is worse. Besides being ungated, it never adds the streamed answer to
conversation—append_assistant_turnruns only inside theif stalled_hosted:branch (comparesafetensors_agentic.py:1031, which appends unconditionally). So the re-prompted model sees only the original question plus the nudge and re-answers from scratch; round 1 has already reached the client, so the UI concatenates up to 4 complete answers into one assistant message — and resends all of them on every later turn.From my logs (llama.cpp as an external provider): one inbound
POST /v1/chat/completionsat 35738 ms containing fourProxying chat completioncalls, delta counts 899 + 844 + 956 + 1049 = 3748, exactly the message'stotalChunks, with 0.001 s between rounds. Note that path logs nothing when it nudges, so there is noRe-prompt n/3line to spot it by.The trigger is
is_short_intent_without_action(): under 2000 chars and matchingINTENT_SIGNAL. An ordinary conversational "Let me take them in order" is enough, which is why it looks random.This looks like a regression of #7122 — #7134 fixed the safetensors path but didn't touch
studio_tool_loop.py.Repro below drives the real loop with a stub transport — no GPU, model, server or credentials. Run it with the Python that has unsloth installed (for Desktop, the bundled interpreter). On an unpatched install it prints:
Note every call gets a 1-message conversation — the assistant turn is never added, which is why each round re-answers from scratch.
--answer "Done. The file has 12 lines."(no intent phrase) and--no-toolsboth give 1 call / 1 answer.repro_loop.pychore: inspect unslothai#8907 call paths online
chore: inspect unslothai#8907 frontend nudge wiring online
chore: inspect unslothai#8907 nudge tests online
chore: apply and validate unslothai#8907 online
chore: stage unslothai#8907 online patch helper
chore: replace unslothai#8907 online runner
chore: run unslothai#8907 patch and tests online
chore: fix unslothai#8907 online patch matcher
chore: isolate unslothai#8907 helper repair
chore: simplify unslothai#8907 online validation
chore: anchor unslothai#8907 route wiring safely