Skip to content

Retire the fork's native EmbeddingGemma 2 encoder - #14

Merged
Satchitananda merged 1 commit into
sync/upstream-main-20261023from
chore/retire-fork-embeddinggemma2
Oct 23, 2026
Merged

Satchitananda merged 1 commit into
sync/upstream-main-20261023from
chore/retire-fork-embeddinggemma2

Conversation

@Satchitananda

Copy link
Copy Markdown
Owner

Proposed changes

Retire the fork's native EmbeddingGemma 2 encoder now that the catalog kit runs on upstream's EmbeddingGemma2Embedding (kit branch feat/embeddinggemma2-upstream-api). Stacked on #13.

Removed: Libraries/MLXVLM/Embeddings/* (container, model, processor, text, configuration), the container test suite, the pinned fixture under Tests/MLXLMTests/Resources/EmbeddingGemma2 and its .copy resource, the fixture generator under tools/EmbeddingGemma2, and the fork runtime benchmark. Upstream's embedder, MLXEmbedders registration and tests stay. Gemma4ClippableLinear stays in MLXVLM because the fork's Gemma 4 audio encoder uses it.

UPSTREAM_RELEASE_SYNC.md records the disposition. The TF32-pinned fixture that needed a regime-aware tolerance in #13 is gone with the suite.

Proof

Gate Result
swift build --build-tests against mlx-swift #6 passes
EmbeddingGemma2Tests, Gemma4AudioTests, MatmulPrecisionTests 44 tests pass under default TF32 and under MLX_ENABLE_TF32=0
Full suite, default TF32 829 XCTest executions; 1199 + 70 + 179 + 7 Swift Testing tests, all pass (20 fork tests removed)
Catalog kit core gate against this branch (kit ml-explore#235) 1158 XCTest, 731 Swift Testing tests pass

Risk

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).

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
Satchitananda marked this pull request as ready for review October 23, 2026 01:15
@Satchitananda
Satchitananda added this pull request to stack #15 October 23, 2026 01:15
@Satchitananda
Satchitananda merged commit 7d8a026 into main Oct 23, 2026
2 checks passed
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.

1 participant