Instructions to use litert-community/OLMo-2-1B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/OLMo-2-1B-Instruct 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/OLMo-2-1B-Instruct \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/OLMo-2-1B-Instruct 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
Plain wording in the litertlm_manifest.json notes
Browse files- litertlm_manifest.json +6 -5
litertlm_manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"manifest_schema": "0.1.3",
|
| 3 |
"repo": "litert-community/OLMo-2-1B-Instruct",
|
| 4 |
-
"generated": "2026-
|
| 5 |
"generator": "make_manifest.py",
|
| 6 |
"model": {
|
| 7 |
"display_name": "OLMo-2-1B-Instruct",
|
|
@@ -55,7 +55,7 @@
|
|
| 55 |
"platform": "android",
|
| 56 |
"device_class": "flagship",
|
| 57 |
"backend": "gpu",
|
| 58 |
-
"reason": "measured on one Galaxy S26 with one binary: GPU 23.08 tok/s decode / 548.2 prefill, peak 931 MB, init 5.0 s (
|
| 59 |
}
|
| 60 |
],
|
| 61 |
"requirements": {
|
|
@@ -125,7 +125,7 @@
|
|
| 125 |
"peak_memory_mb": 931,
|
| 126 |
"runs": 1,
|
| 127 |
"date": "2026-08-24",
|
| 128 |
-
"source": "
|
| 129 |
},
|
| 130 |
{
|
| 131 |
"device": "Galaxy S26 (SM-S942Q, Qualcomm SM8850, Adreno)",
|
|
@@ -141,7 +141,7 @@
|
|
| 141 |
"cache": "no",
|
| 142 |
"runs": 2,
|
| 143 |
"date": "2026-09-05",
|
| 144 |
-
"source": "
|
| 145 |
}
|
| 146 |
],
|
| 147 |
"known_issues": [
|
|
@@ -151,7 +151,8 @@
|
|
| 151 |
"Prompts containing accented letters, symbols or emoji now tokenize differently from the previous file, so individual answers to such prompts can change.",
|
| 152 |
"int4 costs about 9 GSM8K points against bf16 at this size (63.0% vs 72.0%, n=100)."
|
| 153 |
],
|
| 154 |
-
"min_runtime_version": "0.19.0"
|
|
|
|
| 155 |
}
|
| 156 |
]
|
| 157 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"manifest_schema": "0.1.3",
|
| 3 |
"repo": "litert-community/OLMo-2-1B-Instruct",
|
| 4 |
+
"generated": "2026-11-14",
|
| 5 |
"generator": "make_manifest.py",
|
| 6 |
"model": {
|
| 7 |
"display_name": "OLMo-2-1B-Instruct",
|
|
|
|
| 55 |
"platform": "android",
|
| 56 |
"device_class": "flagship",
|
| 57 |
"backend": "gpu",
|
| 58 |
+
"reason": "measured on one Galaxy S26 with one binary: GPU 23.08 tok/s decode / 548.2 prefill, peak 931 MB, init 5.0 s (2026-08-24, 1 run) against CPU 11.52-12.1 decode / 96.0-168.7 prefill, peak 2147 MB, init 1.4 s (2026-09-05, 2 cold runs). Same-device CPU control taken - a measured win for gpu on decode (2.0x) and prefill"
|
| 59 |
}
|
| 60 |
],
|
| 61 |
"requirements": {
|
|
|
|
| 125 |
"peak_memory_mb": 931,
|
| 126 |
"runs": 1,
|
| 127 |
"date": "2026-08-24",
|
| 128 |
+
"source": "205-token benchmark, single run; full delegation (1375 ops across 2 subgraphs); generation gate answered the probe correctly. The Galaxy S26 cpu row of 2026-09-05 is its same-device control."
|
| 129 |
},
|
| 130 |
{
|
| 131 |
"device": "Galaxy S26 (SM-S942Q, Qualcomm SM8850, Adreno)",
|
|
|
|
| 141 |
"cache": "no",
|
| 142 |
"runs": 2,
|
| 143 |
"date": "2026-09-05",
|
| 144 |
+
"source": "same-device CPU control - identical binary, prompt file and flags, only --backend differs; 205-token prompt with --benchmark, 2 cold runs (compile/weight caches deleted between runs, device cooled below 42 C before each run)"
|
| 145 |
}
|
| 146 |
],
|
| 147 |
"known_issues": [
|
|
|
|
| 151 |
"Prompts containing accented letters, symbols or emoji now tokenize differently from the previous file, so individual answers to such prompts can change.",
|
| 152 |
"int4 costs about 9 GSM8K points against bf16 at this size (63.0% vs 72.0%, n=100)."
|
| 153 |
],
|
| 154 |
+
"min_runtime_version": "0.19.0",
|
| 155 |
+
"context_length": 4096
|
| 156 |
}
|
| 157 |
]
|
| 158 |
}
|