Repository navigation
Tests: answer the mlx.inference helpers zoo speculative decode imports since unsloth_zoo #2474 - #17686
Merged
Conversation
…rts since unsloth_zoo #2474
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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
The Studio MLX
dispatchjob fails on every PR it runs for (seen on the staging run for #17520 and on #17666), because it installs the current unsloth_zoo:unslothai/unsloth-zoo#2474 (faster Qwen3.8 Flash Next decode) added a head replay and a lazy verify to
unsloth_zoo/mlx/speculative.py, which import five private names frommlx.inference. The zoo change is correct. This test file stands in forunsloth_zoo.mlx.inferencewith a stub module, and these two tests exist to fail when zoo starts importing something the stub cannot answer. That is what happened, so the stub needs the new names.Reproduced with zoo main on
PYTHONPATH: both tests fail on main.Change
studio/backend/tests/test_mlx_inference_backend.py:_QSA_TRIM_HELDjoinsPLAIN_HELPERSas an empty list (no QSA cache trims are held), next to_FIRST_USE_WORKand the other private names zoo's speculative.py reads._ast_fingerprint,_bindings_intact,_resolved_bindingsand_verify_with_lazy_replayjoinNEUTRAL_PLAIN_HELPERSas one_no_replaystub that accepts any call and returnsNone. Their zoo bodies need Metal and a QSA cache, so, like_unless_failed_buffer, they get a do-nothing answer. Putting them inPLAIN_HELPERSwould not work, because that table's entries must copy zoo's bodies exactly (test_each_plain_helper_stub_matches_zoos_body).Test-only change. Extra names in the stub do not affect an older unsloth_zoo.
Testing
Linux, zoo main on
PYTHONPATH, the stub and helper tests (-k "stub or plain_helper or unknown_zoo_helper"):mlx_lm)