Repository navigation
embeddinggemma-2: new adapter + catalog entry #874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # google/embeddinggemma-2 — Apache-2.0, ungated, 744,371,512 parameters. | ||
| # Released 2026-09-14. Native transformers class EmbeddingGemma2Model | ||
| # (model_type embedding_gemma2); the repo has no custom modeling code. | ||
| # | ||
| # The class first shipped in transformers 5.19.0 (2026-10-06). 5.18.x does | ||
| # not contain it. This profile is on the transformers5 bundle only, whose | ||
| # floor is >=5.19,<6 and whose saved locks pin 5.19.0. The root pin stays | ||
| # transformers 4.57.6. Do not serve this model from the default bundle. | ||
| # | ||
| # Sentence Transformers >=6.1.0 is the upstream wrapper. The bundle pins | ||
| # sentence-transformers==5.7.0, so the adapter applies the text recipe itself: | ||
| # mean pooling with the prompt included, then L2 normalization in float32. | ||
| # Query prompt: "task: search result | query: " | ||
| # Document prompt: "title: none | text: " | ||
| # Matryoshka prefixes, re-normalized after the slice: 128, 256, 512, and the | ||
| # native 768. Pass options.truncate_dim to request a shorter prefix. The | ||
| # catalog width stays 768. | ||
| # | ||
| # Text only. Image, audio, and video need EmbeddingGemma2Processor's soft | ||
| # tokens, video-token sampling, and Gemma 4 audio features. SIE's image, frame, | ||
| # and speech-PCM plumbing does not produce those inputs, and this profile | ||
| # drops both towers at load (vision_config=None, audio_config=None). | ||
| # | ||
| # Float16 overflows this model (NaN activations). The profile asks for | ||
| # bfloat16; off CUDA the adapter uses float32. | ||
| sie_id: google/embeddinggemma-2 | ||
| hf_id: google/embeddinggemma-2 | ||
| # Pinned to an immutable commit SHA. Resolved 2026-11-01 from the Hub | ||
| # model API (ungated, sha of the default revision). | ||
| hf_revision: f9972ac22e696a105c482202646979e33e4b5a1e | ||
| inputs: | ||
| text: true | ||
| image: false | ||
| audio: false | ||
| video: false | ||
| tasks: | ||
| encode: | ||
| dense: | ||
| dim: 768 | ||
| sparse: null | ||
| multivector: null | ||
| score: null | ||
| extract: null | ||
| # Model card: one shared 8,192-token context. The tokenizer's | ||
| # model_max_length is an unbounded sentinel, so the cap lives here. | ||
| max_sequence_length: 8192 | ||
| profiles: | ||
| default: | ||
| max_batch_tokens: 16384 | ||
| compute_precision: bfloat16 | ||
| adapter_path: sie_server.adapters.embedding_gemma2.adapter:EmbeddingGemma2Adapter | ||
| adapter_options: | ||
| loadtime: {} | ||
| runtime: | ||
| normalize: true | ||
| pooling: mean | ||
| query_template: 'task: search result | query: {text}' | ||
| doc_template: 'title: none | text: {text}' |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.