Feature Extraction
sentence-transformers
Safetensors
gemma3_text
embeddings
retrieval
knowledge-distillation
matryoshka
text-embeddings-inference
Instructions to use Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download config.json from Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best/resolve/main/config.json
- Command line
-
hf download hf://Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best/config.json
-
curl -L -o config.json https://huggingface.co/Pieces/embeddinggemma-300m-distilled-width10pct-128dim-best/resolve/main/config.json
1.48 kB
| { | |
| "_sliding_window_pattern": 6, | |
| "architectures": [ | |
| "Gemma3TextModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_logit_softcapping": null, | |
| "bos_token_id": 2, | |
| "dtype": "float32", | |
| "eos_token_id": 1, | |
| "final_logit_softcapping": null, | |
| "head_dim": 24, | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "hidden_size": 72, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 104, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 2048, | |
| "model_type": "gemma3_text", | |
| "num_attention_heads": 3, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 1, | |
| "pad_token_id": 0, | |
| "query_pre_attn_scalar": 256, | |
| "rms_norm_eps": 1e-06, | |
| "rope_local_base_freq": 10000.0, | |
| "rope_scaling": null, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": 257, | |
| "transformers_version": "4.57.3", | |
| "use_bidirectional_attention": true, | |
| "use_cache": true, | |
| "vocab_size": 262144 | |
| } | |