Repository navigation
Studio: preserve partial state for canceled GGUF companions - #11018
mahiatlinux merged 4 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
pre-commit.ci computed these and could not push them: its autofix step reports `a conflict occurred when applying fixes to the pr`, so the check stayed red with nothing landing. Line wrapping only. comment_tools.py check: 2/2 OK, so the AST is unchanged. studio/backend/hub/tests/test_model_services.py: 293 passed.
|
Confirmed this hits the path in studio/backend/hub/services/models/gguf_variants.py where _with_state_partials only appends state-only quants, so a cached main GGUF with an unfinished companion still reads as ready. Will get this reviewed. |
|
@codex review |
|
Confirmed the companion-state fix and repaired one snapshot-attribution regression. When the cache contains a complete Q4_K_M in an older snapshot, a newer Q8_0, and a cancelled newer Q4_K_M attempt, the original PR changes the reusable Q4_K_M from ready to partial. Verification on Linux x86_64, Python 3.14.4, with pinned dependencies and separate credential-free sandboxes:
Repair landed as Both screenshots show the production Chromium 145.0.7632.6: Firefox 146.0.1: Executed test logs, independent reproducer, pinned dependencies, API responses, and browser facts. |
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.
…i#11018) * Fix cached GGUF companion recovery state * Apply the ruff kwarg-spacing formatter pre-commit.ci computed these and could not push them: its autofix step reports `a conflict occurred when applying fixes to the pr`, so the check stayed red with nothing landing. Line wrapping only. comment_tools.py check: 2/2 OK, so the AST is unchanged. studio/backend/hub/tests/test_model_services.py: 293 passed. * preserve readiness of complete sibling gguf variants --------- Co-authored-by: danielhanchen <[email protected]> Co-authored-by: mahiatlinux <[email protected]>


Summary
Reconcile locally cached GGUF rows with same-quant download manifests and cancel markers. A complete main GGUF now remains partial when a required companion is incomplete, so an interrupted Xet companion returns
Partial/Continueafter reload instead ofOn device/Run.The reconciliation preserves the real cached row, transport and resume semantics, state-only sibling rows, snapshot attribution, and ready-first default selection. Completed main and companion files still return a runnable variant.
Testing
studio/backend/hub/tests/test_model_services.py: 291 passed, 2 skippedstudio/backend/tests/test_mtp_drafter_companion.py: 245 passed, 4 skippedgit diff --check: passedstudio/backend/tests/test_cached_gguf_routes.pycompleted with 223 passed, 1 skipped, and 2 failures. Both failures reproduce unchanged on the exact base because the local Diffusers 0.38.0 environment does not provideKrea2PipelineorModularPipeline.