Image-Text-to-Text
LiteRT-LM
LiteRT
litertlm
on-device
vision-language
object-detection
referring-expression-comprehension
object-counting
point-grounding
ocr
Instructions to use litert-community/WeVisOne-VL-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/WeVisOne-VL-4B 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=litert-community/WeVisOne-VL-4B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/WeVisOne-VL-4B with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
litertlm_manifest.json: both files with external weights (sha256, size, sections), min_runtime_version 0.19.0, the LiteRT-LM#3986 line
Browse files- litertlm_manifest.json +37 -11
litertlm_manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"manifest_schema": "0.1.3",
|
| 3 |
"repo": "litert-community/WeVisOne-VL-4B",
|
| 4 |
-
"generated": "2026-11-
|
| 5 |
"generator": "make_manifest.py",
|
| 6 |
"model": {
|
| 7 |
"display_name": "WeVisOne-VL-4B (LiteRT-LM)",
|
|
@@ -22,8 +22,8 @@
|
|
| 22 |
"variants": [
|
| 23 |
{
|
| 24 |
"file": "WeVisOne-VL-4B_int4.litertlm",
|
| 25 |
-
"sha256": "
|
| 26 |
-
"size_bytes":
|
| 27 |
"sections": [
|
| 28 |
{
|
| 29 |
"type": "LlmMetadataProto",
|
|
@@ -39,12 +39,12 @@
|
|
| 39 |
},
|
| 40 |
{
|
| 41 |
"type": "TFLiteModel",
|
| 42 |
-
"size_bytes":
|
| 43 |
"model_type": "tf_lite_embedder"
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"type": "TFLiteModel",
|
| 47 |
-
"size_bytes":
|
| 48 |
"model_type": "tf_lite_prefill_decode"
|
| 49 |
},
|
| 50 |
{
|
|
@@ -56,6 +56,16 @@
|
|
| 56 |
"type": "TFLiteModel",
|
| 57 |
"size_bytes": 218245632,
|
| 58 |
"model_type": "tf_lite_vision_adapter"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
],
|
| 61 |
"quantization": "int4 weights in blocks of 32 (ai-edge-quantizer 0.10.0 dynamic int4 blockwise-32, every block scale floored at 2^-14) in the decoder (36 layers + untied output head); int8 weights (dynamic_wi8_afp32, one scale per output channel) in the token embedder outside the decoder graph (EMBEDDER section, 10244-wide rows); fp16 vision encoder and adapter. After the export the decoder graph's KV-cache writes and attention products were rewritten into LiteRT-LM's GPU composite ops (odml.cache_update, odml.runtime_bmm), every weight byte unchanged. PREFILL_DECODE declares prefer_activation_type fp32 (GPU: fp32 activations for the decoder; the vision encoder runs at the executor's default fp32)",
|
|
@@ -63,7 +73,7 @@
|
|
| 63 |
"gpu"
|
| 64 |
],
|
| 65 |
"default_backend": "gpu",
|
| 66 |
-
"min_runtime_version": "0.
|
| 67 |
"recommended": [
|
| 68 |
{
|
| 69 |
"platform": "android",
|
|
@@ -180,12 +190,15 @@
|
|
| 180 |
"date": "2026-10-28"
|
| 181 |
}
|
| 182 |
],
|
|
|
|
|
|
|
|
|
|
| 183 |
"context_length": 2048
|
| 184 |
},
|
| 185 |
{
|
| 186 |
"file": "WeVisOne-VL-4B_int8.litertlm",
|
| 187 |
-
"sha256": "
|
| 188 |
-
"size_bytes":
|
| 189 |
"sections": [
|
| 190 |
{
|
| 191 |
"type": "LlmMetadataProto",
|
|
@@ -201,12 +214,12 @@
|
|
| 201 |
},
|
| 202 |
{
|
| 203 |
"type": "TFLiteModel",
|
| 204 |
-
"size_bytes":
|
| 205 |
"model_type": "tf_lite_embedder"
|
| 206 |
},
|
| 207 |
{
|
| 208 |
"type": "TFLiteModel",
|
| 209 |
-
"size_bytes":
|
| 210 |
"model_type": "tf_lite_prefill_decode"
|
| 211 |
},
|
| 212 |
{
|
|
@@ -218,6 +231,16 @@
|
|
| 218 |
"type": "TFLiteModel",
|
| 219 |
"size_bytes": 218245632,
|
| 220 |
"model_type": "tf_lite_vision_adapter"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
}
|
| 222 |
],
|
| 223 |
"quantization": "For a CPU. int8 weights (ai-edge-quantizer 0.10.0 dynamic_wi8_afp32, one scale per output channel) in the decoder (36 layers + untied output head) and in the token embedder outside the decoder graph (EMBEDDER section, 10244-wide rows); fp16 vision encoder and adapter. No activation type declared; the decoder graph has no GPU composite ops (the export as written, not rewritten)",
|
|
@@ -225,7 +248,7 @@
|
|
| 225 |
"cpu"
|
| 226 |
],
|
| 227 |
"default_backend": "cpu",
|
| 228 |
-
"min_runtime_version": "0.
|
| 229 |
"recommended": [
|
| 230 |
{
|
| 231 |
"platform": "android",
|
|
@@ -308,6 +331,9 @@
|
|
| 308 |
"date": "2026-10-27"
|
| 309 |
}
|
| 310 |
],
|
|
|
|
|
|
|
|
|
|
| 311 |
"context_length": 2048
|
| 312 |
}
|
| 313 |
]
|
|
|
|
| 1 |
{
|
| 2 |
"manifest_schema": "0.1.3",
|
| 3 |
"repo": "litert-community/WeVisOne-VL-4B",
|
| 4 |
+
"generated": "2026-11-12",
|
| 5 |
"generator": "make_manifest.py",
|
| 6 |
"model": {
|
| 7 |
"display_name": "WeVisOne-VL-4B (LiteRT-LM)",
|
|
|
|
| 22 |
"variants": [
|
| 23 |
{
|
| 24 |
"file": "WeVisOne-VL-4B_int4.litertlm",
|
| 25 |
+
"sha256": "6ae2e63e83516bf8a8f382c9938c0be8f716cba2a66b8bbcc22991e9123c1e48",
|
| 26 |
+
"size_bytes": 3507963904,
|
| 27 |
"sections": [
|
| 28 |
{
|
| 29 |
"type": "LlmMetadataProto",
|
|
|
|
| 39 |
},
|
| 40 |
{
|
| 41 |
"type": "TFLiteModel",
|
| 42 |
+
"size_bytes": 1834976,
|
| 43 |
"model_type": "tf_lite_embedder"
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"type": "TFLiteModel",
|
| 47 |
+
"size_bytes": 270863832,
|
| 48 |
"model_type": "tf_lite_prefill_decode"
|
| 49 |
},
|
| 50 |
{
|
|
|
|
| 56 |
"type": "TFLiteModel",
|
| 57 |
"size_bytes": 218245632,
|
| 58 |
"model_type": "tf_lite_vision_adapter"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "TFLiteWeights",
|
| 62 |
+
"size_bytes": 390860800,
|
| 63 |
+
"model_type": "tf_lite_embedder"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"type": "TFLiteWeights",
|
| 67 |
+
"size_bytes": 2012088320,
|
| 68 |
+
"model_type": "tf_lite_prefill_decode"
|
| 69 |
}
|
| 70 |
],
|
| 71 |
"quantization": "int4 weights in blocks of 32 (ai-edge-quantizer 0.10.0 dynamic int4 blockwise-32, every block scale floored at 2^-14) in the decoder (36 layers + untied output head); int8 weights (dynamic_wi8_afp32, one scale per output channel) in the token embedder outside the decoder graph (EMBEDDER section, 10244-wide rows); fp16 vision encoder and adapter. After the export the decoder graph's KV-cache writes and attention products were rewritten into LiteRT-LM's GPU composite ops (odml.cache_update, odml.runtime_bmm), every weight byte unchanged. PREFILL_DECODE declares prefer_activation_type fp32 (GPU: fp32 activations for the decoder; the vision encoder runs at the executor's default fp32)",
|
|
|
|
| 73 |
"gpu"
|
| 74 |
],
|
| 75 |
"default_backend": "gpu",
|
| 76 |
+
"min_runtime_version": "0.19.0",
|
| 77 |
"recommended": [
|
| 78 |
{
|
| 79 |
"platform": "android",
|
|
|
|
| 190 |
"date": "2026-10-28"
|
| 191 |
}
|
| 192 |
],
|
| 193 |
+
"known_issues": [
|
| 194 |
+
"Android GPU needs LiteRT-LM 0.19.0 or later: since 2026-11-12 this file's decoder and token-embedder weights sit in TFLiteWeights sections at the end of the file (LiteRT's external weights), and the GPU engine of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on such a file (https://github.com/google-ai-edge/LiteRT-LM/issues/3986); the earlier file with the weights inside the graph stays at revision ee03d010ff8242246d919760f52097e68ac6c1e8 (https://huggingface.co/litert-community/WeVisOne-VL-4B/tree/ee03d010ff8242246d919760f52097e68ac6c1e8)"
|
| 195 |
+
],
|
| 196 |
"context_length": 2048
|
| 197 |
},
|
| 198 |
{
|
| 199 |
"file": "WeVisOne-VL-4B_int8.litertlm",
|
| 200 |
+
"sha256": "c288209eb368095d71bc26e9d75d88b42252000b886c02fc2cd0d773679a9adf",
|
| 201 |
+
"size_bytes": 5359046656,
|
| 202 |
"sections": [
|
| 203 |
{
|
| 204 |
"type": "LlmMetadataProto",
|
|
|
|
| 214 |
},
|
| 215 |
{
|
| 216 |
"type": "TFLiteModel",
|
| 217 |
+
"size_bytes": 1834976,
|
| 218 |
"model_type": "tf_lite_embedder"
|
| 219 |
},
|
| 220 |
{
|
| 221 |
"type": "TFLiteModel",
|
| 222 |
+
"size_bytes": 109858896,
|
| 223 |
"model_type": "tf_lite_prefill_decode"
|
| 224 |
},
|
| 225 |
{
|
|
|
|
| 231 |
"type": "TFLiteModel",
|
| 232 |
"size_bytes": 218245632,
|
| 233 |
"model_type": "tf_lite_vision_adapter"
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "TFLiteWeights",
|
| 237 |
+
"size_bytes": 390860800,
|
| 238 |
+
"model_type": "tf_lite_embedder"
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "TFLiteWeights",
|
| 242 |
+
"size_bytes": 4024176640,
|
| 243 |
+
"model_type": "tf_lite_prefill_decode"
|
| 244 |
}
|
| 245 |
],
|
| 246 |
"quantization": "For a CPU. int8 weights (ai-edge-quantizer 0.10.0 dynamic_wi8_afp32, one scale per output channel) in the decoder (36 layers + untied output head) and in the token embedder outside the decoder graph (EMBEDDER section, 10244-wide rows); fp16 vision encoder and adapter. No activation type declared; the decoder graph has no GPU composite ops (the export as written, not rewritten)",
|
|
|
|
| 248 |
"cpu"
|
| 249 |
],
|
| 250 |
"default_backend": "cpu",
|
| 251 |
+
"min_runtime_version": "0.19.0",
|
| 252 |
"recommended": [
|
| 253 |
{
|
| 254 |
"platform": "android",
|
|
|
|
| 331 |
"date": "2026-10-27"
|
| 332 |
}
|
| 333 |
],
|
| 334 |
+
"known_issues": [
|
| 335 |
+
"Android GPU needs LiteRT-LM 0.19.0 or later: since 2026-11-12 this file's decoder and token-embedder weights sit in TFLiteWeights sections at the end of the file (LiteRT's external weights), and the GPU engine of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on such a file (https://github.com/google-ai-edge/LiteRT-LM/issues/3986); the earlier file with the weights inside the graph stays at revision ee03d010ff8242246d919760f52097e68ac6c1e8 (https://huggingface.co/litert-community/WeVisOne-VL-4B/tree/ee03d010ff8242246d919760f52097e68ac6c1e8)"
|
| 336 |
+
],
|
| 337 |
"context_length": 2048
|
| 338 |
}
|
| 339 |
]
|