mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1015] Reasoning stuck in loop on Coder model #444
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#444
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 @brishisharma on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1015
Coder model stuck on loop while reasoning.
@Niko1221 commented on GitHub (Oct 7, 2026):
Please tell us the version, your sampling settings and the request log. See reasoning_loop_recovery and the sampling advice in #980.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
@KeyanHu-git commented on GitHub (Oct 18, 2026):
Coder IQ1_M: recorded reasoning loop on a 102-token arithmetic prompt
Following up on the request for the version, sampling settings and request log. During GSM8K validation for #2591, I captured a Coder IQ1_M answer that repeatedly recalculates the same salary problem. The upstream build also loops on this question before eventually answering. Both full outputs are included below.
296b59d2f73c8f04a805df29c2fa97655adace78(0.1.44.1)stop#### 9520096c3060d765aacc56b660e5c35d21982703fa7a8lengthThese are two captured runs with the same rendered prompt, per-question seed and sampling settings. The tested PR revision is linked here. They were recorded before the PR's subsequent integration with newer
main.Environment and request
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M, native pack with MTP.STRATA_SPEC_PROB=1,STRATA_SPEC_PROB_GATE=pick,--spec 6 --spec-min-p 0.5 --mtp-max-t 4 --suffix-draft 3 --lookup-chain 0 --adapt-swaps 0 --pcie-frac 0.reasoning_loop_recoveryand thinking-budget handling are outside this execution path.The item is index 119 (zero-based) in the GSM8K test split. It was the eighth question in a sequential engine session covering indices 112–127. Each request carries its own prompt. The traces below establish the observed behavior; an isolated fresh-process reproduction and a same-prefix probability comparison are still needed to locate its cause.
Exact rendered prompt (102 tokens):
What the outputs do
Both begin with
Adrien = 1.3 × Lylah, calculate40000 / 1.3, and then repeatedly revisit the interpretation because the result is not a round number. The later output keeps saying it will use 99,077, then returns to another reread or arithmetic check. For example, near its end:The last recorded text is:
There is also a concrete inconsistency in this dataset item's reference solution. The question says Adrien earns 30% more than Lylah, which gives
Lylah = 40000 / 1.3. The reference instead treats Lylah as earning 30% less than Adrien and uses40000 * 0.7. Assuming both receive a 40% raise, these give 99,076.92 and 95,200 respectively. Both captured outputs explicitly notice the discrepancy. Upstream eventually adopts the reference's interpretation and passes the exact-answer scorer; the patched run reaches its cap. The frozen evaluation retains that truncation.This provides a sampled, short-prompt Coder case for the existing loop report. The open diagnostic question is why the repeated reconsideration persists and why the two runs terminate differently. A matching-quant reference-engine run and a shared-prefix comparison would help distinguish model/quant behavior from an execution or sampling difference.
Engine settings line and completion records
Settings line from the patched session:
Upstream:
Patched:
Executable SHA-256:
Complete upstream output: 6,508 tokens, ends with an answer
Complete patched output: 8,192 tokens, ends at the cap