mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
ed1802b511
Two bugs that together caused an infinite SKIP loop after LoopResumeError: 1. loop.py _run_step: set step_forward=False in the `else: raise` branch so that when LoopResumeError propagates from _propose (LLMUnavailableError), step_idx stays at 0. Previously it advanced to 1, leaving loops permanently stuck with missing direct_exp_gen result on next resume. 2. base.py _create_chat_completion_auto_continue: when finish_reason=="length" triggers a continuation retry, merge into the previous assistant message instead of appending a second consecutive one. llama-server returns 400 on two consecutive assistant messages, which caused LLMUnavailableError -> LoopResumeError cascade. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>