Instructions to use litert-community/SmolVLM2-2.2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/SmolVLM2-2.2B 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/SmolVLM2-2.2B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/SmolVLM2-2.2B 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
Commit History
6 days ago
-
Plainer wording in the card and manifest
Verified signature0b7c01d
7 days ago
-
Android GPU note: the measured crash instead of a version floor
Verified signatureREADME.md and litertlm_manifest.json: the note on Android GPU builds now says what was measured (on a Pixel 8a, the GPU engine of the v0.18.0 and v0.18.1 Android builds crashes on a Qwen3-0.6B file with external weights) instead of a LiteRT-LM version floor.8041a76
9 days ago
-
Point the REPRODUCE.md link at its entry under the entry's current heading
Verified signature2c60869 -
Update the model card and manifest notes: sentences corrected to the measurement records, Swift sample link
Verified signaturedc82ab6
11 days ago
-
Card: what to do when a --from-huggingface-repo download predates the replacement of the file
Verified signature28d09c6 -
Prefill/decode graph in the GPU composite form (weights unchanged); card, MEASUREMENTS.md and manifest updated
Verified signature9a382dd
13 days ago
-
Plain wording in the litertlm_manifest.json notes
Verified signaturec77d412 -
Card: what to do when a --from-huggingface-repo download is cut short
Verified signaturea9df804
18 days ago
-
litertlm_manifest.json: SmolVLM2-2.2B.litertlm's sha256, size and sections after the move to external weights; min runtime 0.19.0 and the Android GPU known issue (LiteRT-LM#3986)
Verified signature34c0ad9 -
SmolVLM2-2.2B.litertlm: weights moved to TFLiteWeights sections at the end of the file (LiteRT external weights); Android GPU needs LiteRT-LM 0.19.0 or later
Verified signatureab19a55
-
Add a known runtime issue: the stop token with a zero embedding from the second turn
Verified signatureAdds the lines under Known runtime issues; nothing else in the card changes.4c87fe0
-
manifest 0.1.3: capabilities.thinking.control = never (what the bundle's template does about thinking, derived from the template inside the bundle)
Verified signaturef09abef
-
Add litertlm_manifest.json (deployment manifest 0.1.2: variant selection, verified backends, Android/Apple recommendations, measured rows with conditions)
Verified signature4a18e38 -
Card: base_model_relation: quantized (list under the base model's Quantizations)
Verified signaturef8e96bf
-
Card: note the tokenizer-section fix (weights unchanged)
Verified signature0d0926c -
Replace the tokenizer section with the upstream tokenizer.json (weights, graph and metadata unchanged). The previous SentencePiece conversion of the BPE tokenizer encoded standalone accented/special characters to the wrong ids, turned characters without a vocabulary entry (emoji, some accented capitals) into the end-of-text/end-of-turn token, and could not match the token it had reused as UNK; prompts now tokenize identically to the upstream tokenizer (verified on the LiteRT-LM runtime, see the card note).
Verified signature29065c4
-
Card: correct the start_token note — measured numbers do not carry over
Verified signaturec25cacb -
Card: note the start_token fix (weights unchanged)
Verified signaturee93d39c -
Drop the metadata start_token (weights unchanged)
Verified signatureThe engine prepends the metadata start_token to every prompt, and this template already renders the BOS itself, so the model was reading it twice. Metadata-only change: every tokenizer and TFLite section is byte-identical to the previous file (verified by sha256 per section), so quality and speed are unchanged and the card's measured numbers still stand.af67a84
-
Add measured Galaxy S26 GPU backend section
Verified signatureFunctional verdict from the S26 GPU gate. Primary log: litertlm-convert/community_accel_work/s4_gpu_gate/results.jsonl. Delegation counts and peak RSS are read from that run's own log; throughput is deliberately absent, because an Android GPU speed is not quotable without a CPU row from the same phone and that control has not been run.73be407
-
Card: verified one-command usage, measured Performance table (backends gated on real generation), accuracy note
Verified signature86f1fbc
-
Document Gallery 1.0.16 direct Hugging Face import + desktop LiteRT-LM CLI (serve/run)
Verified signatureb831229
-
Upload SmolVLM2-2.2B.litertlm with huggingface_hub
Verified signature1884be9 -
Upload README.md with huggingface_hub
Verified signatureaedbb76 -
initial commit
Verified signature63e7b2b