Skip to content

fix(xla): keep the serve worker alive after recoverable request failures - #3637

Merged
inureyes merged 8 commits into
mainfrom
feat/issue-3395
Dec 1, 2026
Merged

inureyes merged 8 commits into
mainfrom
feat/issue-3395

Conversation

@inureyes

@inureyes inureyes commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Report a recoverable prefill error to its requesting client and retire the affected batch after a recoverable decode error. Other requests can continue using the same worker. Stop on a fatal device error or three consecutive decode failures and deliver a terminal error to queued clients.

Add scripted worker coverage and injected dense and recurrent device tests for terminal responses, slot reuse, and recovery.

Verification

The OpenXLA worker suite passed all 21 tests, including request-local failure recovery and fatal queue draining. The dense suite passed all 8 tests and the recurrent suite passed all 7 tests on each of IREE local-task and HIP (gfx1151), with MLXCEL_REQUIRE_MODELS=1. The real Mamba2-130M checkpoint exercised the injected failure and recovery on both devices. Formatting and the whitespace check passed.

A live OpenXLA server rejected a 50-token prompt exceeding its 32-token context capacity, then returned HTTP 200 and two generated tokens for the next request. The server smoke used a temporary copy of the real Mamba2 config replacing its nonstandard Infinity literal with the largest finite double for strict JSON parsing.

After integrating the sliding-window and diffusion changes on main, forward the full sliding-window flag through the diffusion constructor, initialize the diffusion defaults in the sliding-window test fixture, and remove a redundant borrow in the server CLI parser test. All-target Clippy with xla-iree,test-utils and warnings denied passed.

Closes #3395

Report failed prefills to the affected request and retire all active rows after a failed decode. Preserve completed work from the same step and stop the worker on a fatal device error or three consecutive failed decode steps.

Answer queued requests when the worker stops. Exercise recovery, slot reuse, and terminal responses with scripted worker tests and device fault injection.
@inureyes inureyes added status:review Under review type:bug Bug fixes, error corrections, or issue resolutions priority:medium Medium priority area:inference Generation, sampling, decoding (incl. speculative, DRY) labels Dec 1, 2026
@inureyes inureyes added status:done Completed and removed status:review Under review labels Dec 1, 2026
@inureyes
inureyes marked this pull request as ready for review December 1, 2026 22:45
@inureyes
inureyes merged commit 9bdb1b9 into main Dec 1, 2026
14 of 15 checks passed
@inureyes
inureyes deleted the feat/issue-3395 branch December 1, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:inference Generation, sampling, decoding (incl. speculative, DRY) priority:medium Medium priority status:done Completed type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Keep the OpenXLA serve worker alive when one request fails

1 participant