MLXChatExample: register Gemma 4 (E2B / E4B) VLMs#473
Open
john-rocky wants to merge 1 commit into
Open
Conversation
Adds the two smaller `gemma4` checkpoints already published in `VLMRegistry` (`gemma4_E2B_it_4bit`, `gemma4_E4B_it_4bit`) to the chat app's `availableModels`, so they appear alongside the existing qwen / smol VLMs in the model picker on macOS and iOS. The 31B and 26BA4B variants are intentionally left out — they are too large to be practical on the supported iOS devices.
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
Registers the two smaller Gemma 4 VLM checkpoints already published in `VLMRegistry` (`gemma4_E2B_it_4bit`, `gemma4_E4B_it_4bit`) in MLXChatExample's `availableModels`, so they appear alongside the existing qwen / smol VLMs in the model picker on macOS and iOS. The 31B and 26BA4B variants are intentionally left out — too large to be practical on supported iOS devices.
Depends on (or coexists with) ml-explore/mlx-swift-lm#256 for video support; image and text input work today against any Gemma 4 mlx-swift-lm release that ships the model registration (already merged via #180 / #185).
Verification
Test plan