Skip to content

Resolve latest mlx-vlm and route its new processors - #8251

Merged
Etherll merged 2 commits into
unslothai:mainfrom
Lyxot:fix/mlx-vlm-latest-sidecars
Aug 9, 2026
Merged

Etherll merged 2 commits into
unslothai:mainfrom
Lyxot:fix/mlx-vlm-latest-sidecars

Conversation

@Lyxot

@Lyxot Lyxot commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • activate the packaged Darwin arm64 dependency override before release dependency resolution, so both fresh and upgraded curl -fsSL https://unsloth.ai/install.sh | sh installs resolve the latest compatible mlx-vlm release (currently 0.6.10 instead of 0.6.4)
  • route Kimi-K3, LocateAnything, and DiffusionGemma through the existing Transformers 5.5 sidecar using Hub-name, architecture, and model_type signals
  • preserve the existing dependency and routing behavior for other platforms, no-torch installs, repository installs, and unrelated model families

This does not pin mlx-vlm to 0.6.10. It makes the packaged Apple Silicon override available during the resolver phase where it was previously inaccessible to a piped standalone installer.

Root cause

A piped install.sh has no repository sibling requirements tree, so its early Darwin override lookup could not find overrides-darwin-arm64.txt. On upgrades, later phases could still appear to honor some existing constraints, but the release dependency solve had already happened without the packaged override and retained mlx-vlm 0.6.4.

mlx-vlm 0.6.10 also adds processors that cannot run in Studio's base Transformers 4.57.6 environment. Kimi-K3 and LocateAnything fail the older concrete-class validation, and a real DiffusionGemma processor also fails to load. All three work with the existing Transformers 5.5 sidecar.

Resolution evidence

A full release-style uv pip compile and an actual uv pip install --dry-run were run in a disposable empty Python 3.13 environment:

  • baseline and branch each resolved 241 packages
  • the only package-plan difference was mlx-vlm 0.6.4 -> 0.6.10
  • the dry-run environment still contained zero installed distributions afterward

Installer regression coverage after rebasing onto current main:

  • 25 Apple Silicon bootstrap/whitespace tests passed
  • 14 torch-override tests passed
  • 36 macOS/Python installer compatibility tests passed
  • bash -n install.sh and git diff --check passed

mlx-vlm 0.6.10 with Transformers 5.5 evidence

Validation used exact mlx-vlm v0.6.10 on macOS arm64 with Python 3.13.13 and transformers==5.5.0.

Check Result
Full upstream mlx-vlm suite 1,914 passed, 3 skipped, 60 subtests, 1 known unrelated failure
Recursive imports of non-test modules 1,050 imported, 0 failed
Real SmolVLM-256M-Instruct-4bit image generation loaded and generated Red.<end_of_utterance>
Focused processor + DiffusionGemma checks 188 passed, 3 skipped, 7 subtests
Studio Transformers routing module 294 passed

The lone upstream-suite failure is an MLX bfloat16 exact-equality mismatch in the quantized speculative test. It reproduced with byte-for-byte identical values under the base Transformers 4.57.6 environment, so it is not caused by the 5.5 sidecar.

Additional real processor checks:

  • Kimi-K3: constructor fails under Transformers 4.57.6; passes under 5.5.0
  • LocateAnything: constructor fails under Transformers 4.57.6; passes under 5.5.0
  • cached mlx-community/diffusiongemma-26B-A4B-it-4bit: production load_processor fails under 4.57.6 and loads under 5.5.0 as DiffusionGemma4Processor with Gemma 4 image/video processors
  • per-family routing mutations made exactly that family's architecture, model-type, and name cases fail

Transformers 5.5 is intentionally the lowest validated common sidecar for these processors; this PR does not broaden them to 5.10 or change any sidecar package version.

@Lyxot
Lyxot marked this pull request as ready for review August 9, 2026 11:03
@Lyxot
Lyxot requested a review from danielhanchen as a code owner August 9, 2026 11:03
@Lyxot

Lyxot commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: ce259858f0

ℹ️ 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".

@Etherll
Etherll merged commit c7ffee7 into unslothai:main Aug 9, 2026
78 of 86 checks passed
danielhanchen pushed a commit that referenced this pull request Aug 9, 2026
* fix(installer): prepare Apple Silicon dependencies

* fix(studio): route mlx-vlm processors to transformers 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants