Skip to content

server: continue Responses generation after reasoning EOS - #26

Merged
ishikawa merged 1 commit into
my-llamafrom
codex/issue-313-reasoning-eos-continuation
Sep 20, 2026
Merged

ishikawa merged 1 commit into
my-llamafrom
codex/issue-313-reasoning-eos-continuation

Conversation

@ishikawa

Copy link
Copy Markdown
Owner

Summary

  • recover one EOG sampled while the reasoning-budget sampler is counting by discarding it and forcing the reasoning end sequence from the same logits
  • keep generation in the same slot/request/SSE stream and suppress EOG through post-</think> whitespace until the first visible answer/tool token
  • enable recovery by default only for /v1/responses, with a per-request opt-out
  • report real token exhaustion as response.incomplete and unrecoverable reasoning-only termination as response.failed
  • distinguish non-token server stop causes and document the new request/stop fields

Tests

  • test-reasoning-budget
  • test-chat
  • llama-server build (CPU-only and Metal)
  • Qwen3.8-Flash-Next no-MTP, -np 2 real-model checks:
    • non-stream forced reasoning EOS -> final OK, response.completed
    • stream forced reasoning EOS -> one response.created, output_text.delta("OK"), response.completed
    • explicit reasoning_eos_recovery: false leaves recovery disabled
    • real max_output_tokens: 1 -> response.incomplete / max_output_tokens
    • two concurrent forced-EOS requests -> independent A / B completed responses

Closes ggml-org#313

@github-actions github-actions Bot added documentation Improvements or additions to documentation testing server labels Sep 20, 2026
@ishikawa
ishikawa merged commit 790c074 into my-llama Sep 20, 2026
5 of 24 checks passed
@ishikawa
ishikawa deleted the codex/issue-313-reasoning-eos-continuation branch September 20, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation server testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OpenBSD support

1 participant