mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#996
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mbaaku on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2451
Hardware note: this is an Intel Arc Pro B60 (
bmg-g21, SYCL backend, built withAOT=bmg-g21). The startup banner says the SYCL backend was tested on an Arc Pro B70 and an Arc A750, so the B60 counts as untested. I have no B70 or CUDA card to check whether the rate is backend-specific, so treat that as an open question.Setup
296b59d), SYCL backend, 1× Intel Arc Pro B60 (24 GB), Debian Linux 13 , Docker 29.8.1 (ONEAPI_DEVICE_SELECTOR=level_zero:0,STRATA_EXPERT_SPLIT=1)--kv int8,--max-context 131072, 1 slot)"tool_call_recovery": true,"fit_max_tokens": true; reasoning effort left at the model defaultcn) through LiteLLM, OpenAI chat completions, streaming, 21 tools (built-inBash,Read,List, … plus MCP tools)STRATA_DEBUG=1Full configuration (compose environment, .env, setup command, engine arguments, run config)
compose.yaml, servicestrata(image built from the repo'sDockerfile.b60), environment:.envnext tocompose.yaml(STRATA_ROOTandSTRATA_API_KEYomitted; the commented lines are the other quants used on the same setup):Container command (after an incremental SYCL build when the checked-out commit changed):
Engine arguments from
strata-coder-iq1_m.json(paths omitted):Other run-config keys:
"backend": "sycl","tool_call_recovery": true,"reasoning_close_retry": true,"fit_max_tokens": true.What happens
The model opens the call correctly (
<tool_call>+<function=NAME>), but writes the parameter tag in a different syntax.parse_tool_callonly reads<parameter=NAME>, so the call reaches the client with empty arguments ({}), even though the full value is in the output.tool_call_recoverydoes not cover these forms.It starts after roughly 15–25k prompt tokens and comes in streaks (2–3 broken calls in a row). It hits the
Bashtool far more often than MCP tools with longer argument lists. Sampling made no difference: greedy and temperature 0.7 / top_p 0.8 / top_k 20 gave the same rate. No VRAM warnings in the log;reasoning_close_retrynever fired.Measured:
Bashcalls broken in one 64-turn sessionBashcalls broken in the first 30 min after a restartTool schemas
Bash(Continue built-in): required stringcommand, optionaltimeoutretry_code(MCP): required stringsattempt_idandfeedbackRaw outputs (exact, from the server log)
<parameter>(feedback shortened here):<function=Bash>):<arg_value>{"command": "grep -rn …"}inside<function=Bash><function=Bash>with<parameter=dirpath>(a parameter of theListtool)<parameter=previous_thinking>,<parameter=parameter>Breakdown: on 13.10, 6 of the 17 broken calls carried the full value in a wrong syntax (forms 1–3) and 11 had none (form 4). On 14.10, 19 of 35 were forms 1–2, 3 were the
<arg_value>JSON form and 13 had no value.Local workaround for forms 1–3 (patch below)
A small patch on v0.1.44.1 (
serve/frontend.py), active only with"tool_call_recovery": trueand declared tools:<function=…>…</function>it rewrites<parameter name="X">,<parameter name='X'>and<parameter name=X>to<parameter=X>;<parameter>{json}</parameter>into one<parameter=key>per key (non-string values as JSON);ParamFormsclass does this beforeOutputParsersees the text, holding a tag split across stream deltas until it is complete;It adds
serve/test_param_forms.py: 9 tests built from the samples above, streamed in 1/3/7-character pieces and whole, inside and after the thinking, plus checks that the template form is unchanged, that the patch is off withouttool_call_recovery, and that text outside a call is untouched. The existing parser tests (test_tool_name_space,test_parser_track,test_reasoning_rescue,test_reasoning_tools,test_responses) give the same results with and without it.It does nothing for form 4, where the value is never generated; that probably needs the grammar-constrained emission proposed earlier in this issue. Happy to open a PR if this approach fits.
Patch against v0.1.44.1 (
git apply)@mbaaku commented on GitHub (Oct 17, 2026):
Another recoverable form: all arguments as JSON under a parameter named
argumentsSame setup (Qwen3.8-Flash-Next Coder IQ1_M, SYCL, Arc Pro B60,
"tool_call_recovery": true), now on v0.1.44.1 and seen again after a checkout of 0.1.45. The model wrapped the whole argument object in one parameter calledarguments:Bashdeclares noargumentsparameter, so the call reached the client as{"arguments": {...}}with the requiredcommandmissing. Once it started, the model repeated this form 108 times in a row within a few minutes, at only ~31–33k prompt tokens (each failed call stays in the history and gets imitated).Suggested handling under
tool_call_recovery, next to the nameless<parameter>{json}</parameter>case from #2572: when a<parameter=X>value parses as a JSON object, X is one ofarguments,args,parameters,params,input,kwargs, and the tool does not declare a parameter named X, read the object's keys as the parameters. A tool that really has anargumentsparameter keeps it unchanged.We run this locally on top of the forms from #2572; two tests cover it: the wrapped form streamed in 1/3/7-character pieces and whole gives
Bash {"command": ...}, and a tool declaring its own stringargumentsgets the text untouched.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.