Repository navigation
MLX backend tests: answer zoo _first_resolved in the inference stub - #18361
Merged
Merged
Conversation
unsloth-zoo #2586 has speculative.py import _first_resolved from mlx.inference for the Qwen4 head replay. The stub in test_mlx_inference_backend.py could not answer it, so its two coverage tests fail on the macOS MLX job against current zoo main. Map it to _no_replay next to its sibling _resolved_bindings.
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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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
Two coverage tests in
studio/backend/tests/test_mlx_inference_backend.pyfail against current unsloth-zoo main:This shows up on the macOS MLX job for every PR (for example the staging run for #18332).
Cause
unslothai/unsloth-zoo#2586 (mlx-vlm 0.8.0 support) has
unsloth_zoo/mlx/speculative.pyimport_first_resolvedfrommlx.inferencefor the Qwen4 head replay._first_resolvedtries several binding contracts through_resolved_bindingsand returns the first that resolves.The zoo change is correct. These two tests exist to flag a new helper that the stub of
unsloth_zoo.mlx.inferencecannot answer, and they did.Fix
Map
_first_resolvedto_no_replay, next to its sibling_resolved_bindings. The stub has no Metal or QSA cache, so "no replay can be bound" is the right answer, the same one the other head-replay helpers give.Verification
Run on this Linux host. It has no
mlx_lm/mlx_vlm, so 8 tests that need them fail on both sides, unchanged:e9728df56)The branch also passes the two tests against zoo from before #2586. ruff is clean.