Feature Extraction
MLX
Safetensors
multilingual
embedding_gemma2
mlx-vlm
embedding
sentence-similarity
multimodal
image-feature-extraction
audio-feature-extraction
video-feature-extraction
4-bit precision
Instructions to use mlx-community/embeddinggemma-2-mxfp4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/embeddinggemma-2-mxfp4 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/embeddinggemma-2-mxfp4 --local-dir embeddinggemma-2-mxfp4
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download validation.json from mlx-community/embeddinggemma-2-mxfp4: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/mlx-community/embeddinggemma-2-mxfp4/resolve/main/validation.json
- Command line
-
hf download hf://mlx-community/embeddinggemma-2-mxfp4/validation.json
-
curl -L -o validation.json https://huggingface.co/mlx-community/embeddinggemma-2-mxfp4/resolve/main/validation.json
2.42 kB
| { | |
| "source_model": "google/embeddinggemma-2", | |
| "source_revision": "914f7f89142e33e77833254d9c9b90c3cef7303b", | |
| "mlx_vlm_revision": "3d87e88402f307efbf68e568971aa887ee7d9ed0", | |
| "variant": "mxfp4", | |
| "hardware": "Apple M3 Ultra", | |
| "mlx_version": "0.32.3", | |
| "transformers_version": "5.18.0.dev0", | |
| "validation_scope": "Six multilingual text inputs and synthetic image, audio, two-frame video, and text+image; numerical smoke checks, not a retrieval benchmark.", | |
| "tensor_count": 1596, | |
| "tensor_dtypes": [ | |
| "BF16", | |
| "U32", | |
| "U8" | |
| ], | |
| "weight_bytes": 1089863440, | |
| "cases": { | |
| "audio": { | |
| "shape": [ | |
| 1, | |
| 768 | |
| ], | |
| "finite": true, | |
| "minimum_cosine_vs_torch_fp32": 0.9552432040589257, | |
| "maximum_absolute_error_vs_torch_fp32": 0.031122940954493215, | |
| "minimum_cosine_vs_source_bf16": 0.9556258549267537, | |
| "minimum_truncated_cosine_vs_torch_fp32": 0.9562827028494505 | |
| }, | |
| "image": { | |
| "shape": [ | |
| 1, | |
| 768 | |
| ], | |
| "finite": true, | |
| "minimum_cosine_vs_torch_fp32": 0.9844817638519421, | |
| "maximum_absolute_error_vs_torch_fp32": 0.02838172436878078, | |
| "minimum_cosine_vs_source_bf16": 0.984502165860899, | |
| "minimum_truncated_cosine_vs_torch_fp32": 0.9849348532292714 | |
| }, | |
| "text": { | |
| "shape": [ | |
| 6, | |
| 768 | |
| ], | |
| "finite": true, | |
| "minimum_cosine_vs_torch_fp32": 0.9719753793012582, | |
| "maximum_absolute_error_vs_torch_fp32": 0.0300780480374934, | |
| "minimum_cosine_vs_source_bf16": 0.9720917112953233, | |
| "minimum_truncated_cosine_vs_torch_fp32": 0.973351951369464, | |
| "retrieval_scores_venus_mars": [ | |
| 0.6846843957901001, | |
| 0.8442800045013428 | |
| ] | |
| }, | |
| "text_image": { | |
| "shape": [ | |
| 1, | |
| 768 | |
| ], | |
| "finite": true, | |
| "minimum_cosine_vs_torch_fp32": 0.981411289503844, | |
| "maximum_absolute_error_vs_torch_fp32": 0.02245848952444565, | |
| "minimum_cosine_vs_source_bf16": 0.9812524013550258, | |
| "minimum_truncated_cosine_vs_torch_fp32": 0.9821798744942869 | |
| }, | |
| "video": { | |
| "shape": [ | |
| 1, | |
| 768 | |
| ], | |
| "finite": true, | |
| "minimum_cosine_vs_torch_fp32": 0.9794973886672078, | |
| "maximum_absolute_error_vs_torch_fp32": 0.0323537742795762, | |
| "minimum_cosine_vs_source_bf16": 0.9794961545733322, | |
| "minimum_truncated_cosine_vs_torch_fp32": 0.9797304268297787 | |
| } | |
| } | |
| } | |