Feature Extraction
LiteRT-LM
multilingual
embedding
multimodal
text-image-retrieval
image-feature-extraction
on-device
android
gemma-gallery
Instructions to use spawnlau/embeddinggemma-2-text-vision-440m-compact with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use spawnlau/embeddinggemma-2-text-vision-440m-compact with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=spawnlau/embeddinggemma-2-text-vision-440m-compact \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
File size: 5,220 Bytes
6013524 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | {
"evaluation_date": "2026-10-20",
"source_model": {
"repository": "litert-community/embeddinggemma-2-text-vision-440m-litert-lm",
"revision": "e301f74d5551b0c2641bd5cb4652a76239d5c5f8",
"filename": "embeddinggemma-2-text-vision-440m.litertlm",
"size": 387710976,
"sha256": "92dcbea108899e5d6e30d919b0744f90d9967e80c67a4ab5503ac16d54f62eb0"
},
"compact_model": {
"filename": "eg2-gallery-compact.litertlm",
"size": 309559296,
"sha256": "a08a6bcbcba893d8e52dcf2ae05ce06847f942e3b0e5ea8b8df93f32aa23b027"
},
"contract": {
"tested_version": "0.18.0",
"max_input_length": 256,
"vision_tokens_per_image": 70,
"output_size": 768,
"normalize": true,
"insert_special_tokens": true,
"text_signatures": [
"encoder_1x128",
"encoder_1x256"
],
"vision_signatures": [
"vision_70",
"vision_adapter_70"
],
"retained_patch_coordinate_range": [
0,
209
]
},
"inputs": {
"text_queries": 73,
"public_photos": 14,
"synthetic_images": 6
},
"windows": {
"runtime": "LiteRT-LM 0.18.0",
"cpu_runs_per_model": 2,
"gpu_runs_per_model": 1,
"comparisons": [
{
"baseline": "baseline-cpu-r1",
"candidate": "compact-final-cpu-r1",
"backend": "cpu",
"vectors": {
"queries": {
"count": 73,
"dimensions": 768,
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0
},
"images": {
"count": 20,
"dimensions": 768,
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0
}
},
"text_image_cosine_max_abs_difference": 0.0,
"image_image_cosine_max_abs_difference": 0.0,
"all_text_image_rankings_equal": true,
"all_image_image_rankings_equal": true,
"threshold_decisions_equal": {
"0.68": true,
"0.7": true,
"0.8": true,
"0.85": true,
"0.9": true
}
},
{
"baseline": "baseline-cpu-r1",
"candidate": "compact-final-cpu-r2",
"backend": "cpu",
"vectors": {
"queries": {
"count": 73,
"dimensions": 768,
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0
},
"images": {
"count": 20,
"dimensions": 768,
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0
}
},
"text_image_cosine_max_abs_difference": 0.0,
"image_image_cosine_max_abs_difference": 0.0,
"all_text_image_rankings_equal": true,
"all_image_image_rankings_equal": true,
"threshold_decisions_equal": {
"0.68": true,
"0.7": true,
"0.8": true,
"0.85": true,
"0.9": true
}
},
{
"baseline": "baseline-gpu-r1",
"candidate": "compact-final-gpu-r1",
"backend": "gpu",
"vectors": {
"queries": {
"count": 73,
"dimensions": 768,
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0
},
"images": {
"count": 20,
"dimensions": 768,
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0
}
},
"text_image_cosine_max_abs_difference": 0.0,
"image_image_cosine_max_abs_difference": 0.0,
"all_text_image_rankings_equal": true,
"all_image_image_rankings_equal": true,
"threshold_decisions_equal": {
"0.68": true,
"0.7": true,
"0.8": true,
"0.85": true,
"0.9": true
}
}
]
},
"samsung": {
"device": {
"ro.product.manufacturer": "samsung",
"ro.product.model": "SM-S931U",
"ro.build.version.release": "16",
"ro.soc.model": "SM8750"
},
"runtime": "litertlm-android:0.18.0",
"runs_per_model_per_backend": 1,
"comparisons": {
"cpu": {
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0,
"all_text_image_rankings_equal": true,
"threshold_068_equal": true
},
"gpu": {
"all_vectors_bitwise_equal": true,
"max_absolute_element_difference": 0.0,
"all_text_image_rankings_equal": true,
"threshold_068_equal": true
}
},
"comparison_scope": "Original vs compact on the same backend; not CPU-vs-GPU bitwise equality."
},
"limitations": [
"Regression cohort, not an independent general accuracy benchmark.",
"Native model loading and embedding only; no full photo-library app-flow validation.",
"No iOS runtime validation for the compact bundle.",
"Only the published 256-input-token/70-vision-token/768-dimension contract is validated."
]
}
|