Repository navigation
Move the Unsloth Studio MLX pins to mlx-vlm 0.7.8 - #13699
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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2577540729
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2577540729
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
mlx-vlm 0.7.8 adds a `datasets>=4.0.0` dependency with no upper bound, which brings datasets and its dependencies (pandas, pyarrow, aiohttp, ...) into the MLX self-heal's install. The self-heal installed with a bare `uv pip install --upgrade`, which re-resolves every transitive dependency to its newest release: on 0.7.8 that moved datasets 4.3.0 to 5.1.0 (past unsloth's `datasets<5.0.0`), pandas 2.3.3 to 3.0.6 and pyarrow 23 to 26, on top of the numpy and huggingface-hub upgrades it already made on 0.7.4. The self-heal now upgrades only the MLX packages by name, as the installer's MLX step does, so other dependencies move only when the MLX packages require it. The constraint file also holds the running datasets version beside transformers, so a resolve that has to move datasets fails instead of picking 5.x.
2577540 to
1d64543
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
|
Codex review and CI
Changes during review:
|
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
Summary
Raises the mlx-vlm range that the Unsloth Studio installer and the MLX self-heal install to
<=0.7.8, matching the ceiling raise in unsloth-zoo (unslothai/unsloth-zoo#1742). It also stops the self-heal from upgrading unrelated dependencies, which 0.7.8's newdatasetsdependency would otherwise take past Unsloth's pins.mlx-vlm>=0.4.4,<=0.7.4>=0.4.4,<=0.7.8mlx/mlx-metal==0.32.3mlx-lm==0.31.3Self-heal upgrades only the MLX packages
mlx-vlm 0.7.8 adds
datasets>=4.0.0with no upper bound. That brings datasets and its dependencies (pandas, pyarrow, aiohttp, ...) into the MLX self-heal's install. The self-heal (attempt_mlx_repair) installed with a bareuv pip install --upgrade, which re-resolves every transitive dependency to its newest release. A dry run of the self-heal command on an environment with the pinned stack (datasets 4.3.0, pandas 2.3.3):datasets 5.x is outside unsloth's
datasets<5.0.0, and pandas 3 is outside Unsloth Studio'spandas==2.3.3. The self-heal now upgrades only the MLX packages by name, as the installer's MLX step does, so other dependencies move only when the MLX packages require it. The constraint file also holds the running datasets version next to transformers, so a resolve that has to move datasets fails, leaving Unsloth chat-only, instead of picking 5.x. The installer's MLX step is unaffected: it already upgrades per name and applies the single-env constraints, which pindatasets==4.3.0.What a real install resolves
With the installer's constraints and macOS arm64 overrides:
The old range resolves to the same set apart from mlx-vlm 0.7.4, and has no datasets or cryptography edge from mlx-vlm.
overrides-darwin-arm64.txtneeds no change: mlx-vlm 0.7.8's transformers requirement is unchanged from 0.7.4.Ordering
As with the previous bump, this should merge after an unsloth-zoo release carries unslothai/unsloth-zoo#1742. On 0.7.8, an older unsloth-zoo cannot build its LoRA layers (they moved to
mlx_vlm.trainer.peft), so training would fail. The installer narrows the mlx-vlm range to the one the installed unsloth-zoo declares, so an older unsloth-zoo keeps getting at most 0.7.4.Compatibility of Unsloth Studio's mlx-vlm usage
generate_step,prepare_inputs,should_add_special_tokens,make_prompt_cache,maybe_quantize_kv_cache,load_videoandupdate_module_configs.detect_mtp_splitterkeeps its contract; the only new MTP family is the aliasinkling.prompt_utilsnow defaults qwen3_omni_moe toenable_thinking=True. The real Qwen3-Omni templates only act on an explicitfalse, so the audio prompt Unsloth Studio renders is unchanged.Validation
The updated self-heal tests fail when datasets is dropped from the held set, or when the bare
--upgradeis restored.