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#3004
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1068
Author: @sergqwer
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:pr/reasoning-call-gate📝 Commits (10+)
f4e96d5tests: gdn_rec_head also compares the PP (variant 4) and two-column (variant 5) recurrence kernels, bitwise16bc95aprefill: STRATA_HCD_EXACT=1 - the HC down projection by a WMMA kernel with hipBLASLt solution 1176/1177 k order (StaggerU included), bitwise502fcef#606: the fused SwiGLU q8_1 quantizers keep the block's scale and sum finite too64d0136cache: preserve checkpoints when split allocation failsa0d0056prefill: fused-expert exact wins (table16 via direct selector, float4 moe_combine, LDS alias + occupancy)5f5452bserve: park_current's try covers the checkpoint split too (#752): a host OOM skips parking8b19a38Layer split: --vram-reserve-later-mib, a separate reserve for the later cardsea83d0dResident RAM mode with a layer splitd2d981fsetup: the low-RAM mode's resident variant on several GPUs (#642)cd62e5eserve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage📊 Changes
3 files changed (+136 additions, -30 deletions)
View changed files
📝
serve/frontend.py(+60 -11)📝
serve/server.py(+9 -2)📝
serve/test_reasoning_tools.py(+67 -17)📄 Description
Fixes #1058. On 0.1.40 the #804 rescue delivers any complete call to a declared tool that the model wrote inside its thinking. That includes a call the model only quoted there, such as an example, a fenced block or a turn cut by
max_tokensmid-thought. The issue shows a quotedrm -rf buildreturned as atool_callwith finishlength.What changes
A call inside the reasoning is held until the turn ends. It is delivered only if all three of these hold:
<tool_call>begins a line (the issue's first gate);max_tokens, a cancel or an error (the issue's second gate).Otherwise its text goes back to the reasoning unchanged. A call in the answer is unchanged, and so is everything without declared tools.
</think>and an answer, and this gate catches those. Without it, the fenced examples still fire, because the opener after "```xml\n" begins a line. So domention-trailing-proseand the prose-between-two-blocks entry of #525's corpus.GET /metricstotals getreasoning_calls_deliveredandreasoning_calls_kept_as_text, which counts complete calls to a declared tool that stayed text.Measured
Both corpora from the issue were run offline through
OutputParser. Each was fed whole, one character at a time and in random 1-9 character chunks, and every chunking gave the same result. A natural end isfinish == "stop".live-02(finishlength) andlive-06(an envelope,todo_list) deliver a callThe recall on the recorded live data is unchanged. Every live stranding opens its call on its own line and ends the turn with it.
Tests
serve/test_reasoning_tools.pynow expects these semantics:</think>after it;max_tokenscut;max_tokenscuts the turn right after it. This test fails iffinish()ignores how the turn ended.The serve suite passes (423 tests).
🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.