Skip to content

fix(serve): restore n-gram loop-guard DEFAULT OFF (master regressed to 8 → lobotomizes reasoning)#523

Merged
Kaden-Schutt merged 1 commit into
masterfrom
fix/restore-ngram-loop-guard-off
Jul 11, 2026
Merged

fix(serve): restore n-gram loop-guard DEFAULT OFF (master regressed to 8 → lobotomizes reasoning)#523
Kaden-Schutt merged 1 commit into
masterfrom
fix/restore-ngram-loop-guard-off

Conversation

@Kaden-Schutt

Copy link
Copy Markdown
Owner

Coherence regression restore. Master's HIPFIRE_NGRAM_LOOP_THRESHOLD is back at default 8 — the content-blind 4-gram×8 loop guard false-positives on legitimate enumeration-heavy reasoning at temp>0: a repeating \n - ** markdown-bullet scaffold trips it inside <think>, force-EOSes mid-think, and empties the answer channel (the qwen3.6 temp=1.0 registry default hits this). Restores the validated 7eac3c8 behavior: default 8 → 0 (OFF); runaway thinking is handled by the think-budget force-close instead. Opt back in with HIPFIRE_NGRAM_LOOP_THRESHOLD=N. Exactly the n-gram hunk (config.rs default+comment + loop_guard.rs doc), 3-way-merged onto current master — no other 7eac3c8 changes. Compiles (cargo check -p hipfire-runtime).

…ster regressed to 8

Master regressed HIPFIRE_NGRAM_LOOP_THRESHOLD back to default 8 — the content-blind 4-gram×8
counter false-positives on legitimate enumeration-heavy reasoning at temp>0 (a repeating markdown
bullet scaffold `\n - **` trips it INSIDE <think>, force-EOSes mid-think, and EMPTIES the answer
channel — the qwen3.6 temp=1.0 registry default hits this). Restores the validated 7eac3c8
behavior: ngram_loop_threshold default 8→0 (OFF); runaway thinking is handled by the think-budget
force-close instead. Opt back in with HIPFIRE_NGRAM_LOOP_THRESHOLD=N. Exactly the n-gram hunk
(config.rs default+comment, loop_guard.rs doc) 3-way-merged onto current master, nothing else.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Kaden-Schutt
Kaden-Schutt merged commit 589d758 into master Jul 11, 2026
3 of 4 checks passed
Kaden-Schutt added a commit that referenced this pull request Jul 11, 2026
fix(serve): restore sampled think-cap continuation (cherry-pick f03b494 — completes #523)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant