Repository navigation
Retire the fork's native EmbeddingGemma 2 encoder - #14
Merged
Satchitananda merged 1 commit intoOct 23, 2026
Merged
Conversation
The catalog kit now runs on upstream's EmbeddingGemma2Embedding, which accepts in-memory images, frames and audio and loads quantized checkpoints. The fork's EmbeddingGemma2Container, its model, processor and configuration, the container test suite, the TF32-pinned fixture and its generator, and the fork runtime benchmark go away. Upstream's embedder, MLXEmbedders registration and tests stay unchanged. Gemma4ClippableLinear stays in MLXVLM for the Gemma 4 audio encoder.
Satchitananda
marked this pull request as ready for review
October 23, 2026 01:15
This was referenced Oct 23, 2026
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.
Proposed changes
Retire the fork's native EmbeddingGemma 2 encoder now that the catalog kit runs on upstream's
EmbeddingGemma2Embedding(kit branchfeat/embeddinggemma2-upstream-api). Stacked on #13.Removed:
Libraries/MLXVLM/Embeddings/*(container, model, processor, text, configuration), the container test suite, the pinned fixture underTests/MLXLMTests/Resources/EmbeddingGemma2and its.copyresource, the fixture generator undertools/EmbeddingGemma2, and the fork runtime benchmark. Upstream's embedder,MLXEmbeddersregistration and tests stay.Gemma4ClippableLinearstays in MLXVLM because the fork's Gemma 4 audio encoder uses it.UPSTREAM_RELEASE_SYNC.mdrecords the disposition. The TF32-pinned fixture that needed a regime-aware tolerance in #13 is gone with the suite.Proof
swift build --build-testsagainst mlx-swift #6EmbeddingGemma2Tests,Gemma4AudioTests,MatmulPrecisionTestsMLX_ENABLE_TF32=0Risk
Low for this package: deletions only, plus one resource entry. The kit is the only consumer of the removed API and no longer references it (kit build and core gate pass against this branch).