Repository navigation
fix(server): handle PromptCacheWarmup in the OpenXLA worker - #1273
Merged
Merged
Conversation
CI builds only the default feature set, so breakage behind `xla-backend` and `xla-iree` lands on `main` unnoticed. #1154 added the `ModelRequest::PromptCacheWarmup` variant and updated the batch scheduler, the diffusion worker, and the Florence-2 worker, but not the OpenXLA worker, so its `match` is non-exhaustive and every `--features xla-iree` build fails: error[E0004]: non-exhaustive patterns: `model_provider::ModelRequest::PromptCacheWarmup { .. }` not covered --> src/server/batch/xla_worker_admission.rs:482:15 Only the BatchScheduler owns a prompt cache, so the OpenXLA worker has no snapshot state to warm and drops the job without touching admission state, the same way `diffusion_worker.rs` and `florence2_worker.rs` do. Reproduce with `cargo check --features cuda,xla-iree --lib` after pointing the build at an IREE distribution.
4 tasks
inureyes
added a commit
that referenced
this pull request
Aug 21, 2026
`TECHNICAL_REPORTS/.keep-reports` opts this repository into tracking reports, and the report is meant to land inside the squash merge rather than trail it. These three merged without one, so they are added here after the fact. The reports carry the parts that do not survive in a diff. #916's recorded blocker was a TF32 artifact in the MLX oracle rather than an emitter defect, and its gate had only ever run on a single-crop solid-color image. #1275's first fix attempt shipped a redundant global linker flag until each half was ablated separately. #1273 is trivial as a change and only interesting because a compile error sat in `main` unseen, which is what #1270 tracks. Both language versions are included, matching the existing convention.
be-free-snowboy
pushed a commit
to freestylejs/snowbrain-mlxcel
that referenced
this pull request
Oct 27, 2026
) CI builds only the default feature set, so breakage behind `xla-backend` and `xla-iree` lands on `main` unnoticed. lablup#1154 added the `ModelRequest::PromptCacheWarmup` variant and updated the batch scheduler, the diffusion worker, and the Florence-2 worker, but not the OpenXLA worker, so its `match` is non-exhaustive and every `--features xla-iree` build fails: error[E0004]: non-exhaustive patterns: `model_provider::ModelRequest::PromptCacheWarmup { .. }` not covered --> src/server/batch/xla_worker_admission.rs:482:15 Only the BatchScheduler owns a prompt cache, so the OpenXLA worker has no snapshot state to warm and drops the job without touching admission state, the same way `diffusion_worker.rs` and `florence2_worker.rs` do. Reproduce with `cargo check --features cuda,xla-iree --lib` after pointing the build at an IREE distribution.
be-free-snowboy
pushed a commit
to freestylejs/snowbrain-mlxcel
that referenced
this pull request
Oct 27, 2026
…and lablup#1275 `TECHNICAL_REPORTS/.keep-reports` opts this repository into tracking reports, and the report is meant to land inside the squash merge rather than trail it. These three merged without one, so they are added here after the fact. The reports carry the parts that do not survive in a diff. lablup#916's recorded blocker was a TF32 artifact in the MLX oracle rather than an emitter defect, and its gate had only ever run on a single-crop solid-color image. lablup#1275's first fix attempt shipped a redundant global linker flag until each half was ablated separately. lablup#1273 is trivial as a change and only interesting because a compile error sat in `main` unseen, which is what lablup#1270 tracks. Both language versions are included, matching the existing convention.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the missing
ModelRequest::PromptCacheWarmuparm to the OpenXLA serve worker, which currently makes every--features xla-ireebuild fail to compile.#1154 introduced the variant and updated the three workers that match on
ModelRequest, but notsrc/server/batch/xla_worker_admission.rs:Only
BatchSchedulerowns a prompt cache, so the OpenXLA worker has no snapshot state to warm. It drops the job without touching admission state, the same waydiffusion_worker.rsandflorence2_worker.rsalready do.Why this was not caught
CI compiles only the default feature set. The whole module is behind
#[cfg(feature = "xla-iree")](src/server/batch/mod.rs), so no check run ever built it. #1270 tracks closing that coverage gap, which is the durable half of the problem; this PR is only the unblock.Validation
On GB10 with
eval "$(bash scripts/iree/setup-cuda.sh --env)":cargo check --features cuda,xla-iree --libcargo check --features cuda --all-targetsThe two checks were run on this branch alone, with no other build sharing the working tree.
Closes #1270