Instructions to use timmyboy26/aion-1.0-instruct-2.3b-litert-lm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use timmyboy26/aion-1.0-instruct-2.3b-litert-lm 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=timmyboy26/aion-1.0-instruct-2.3b-litert-lm \ --prompt="Write me a poem"
- LiteRT
How to use timmyboy26/aion-1.0-instruct-2.3b-litert-lm 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
Aion 1.0 Instruct 2.3B, LiteRT-LM (int8)
A LiteRT-LM (.litertlm) build of microsoft/Aion-1.0-Instruct-2.3B,
made for the on-device LiteRT-LM runtime of LLM Hub. It runs on stock LiteRT-LM 0.19.1 (Android and iOS) with no runtime patch.
Aion-1.0-Instruct-2.3B_q8_ekv4096.litertlm: 2,333,097,680 bytes, SHA-256ac4a1d75a948123c7365a50cb75fb27d28da5aad670d22e8ff3f91714749bc1f.- int8 dynamic-range weights (
dynamic_wi8_afp32), float activations, 4,096-token KV cache, prefill signatures of 128 and 1,024 tokens. - Converted with litert-torch 0.10.0 (
litert_torch.generative.export_hf,--trust_remote_code) and packed with litert-lm-builder 0.19.1. Aion's hybrid attention (21 sliding-window layers, 7 full-attention layers) and its per-layer RoPE carry over from the model's own code. - Model type
generic_model, Hugging Face tokenizer, Aion's chat template embedded; stops on<|end|>(200020).
Changes from the source model
- Weights quantized to int8 and converted to LiteRT-LM.
- The embedded chat template joins text parts when a message's
contentis a list. LiteRT-LM passes message content as a list of parts, and the original template treats any non-string content as empty, so every prompt would reach the model as an empty user turn. Rendered output for plain text messages is unchanged.
Nothing else was changed.
Tested devices
Measured with LiteRT-LM 0.19.1 in LLM Hub, loading this exact file. Every device answered the same test prompts correctly, including recalling a code stated before 3,272 tokens of prompt (past the 2,048-token sliding window). Prefill on that 3,272-token prompt, decode on a reply of about 75 tokens:
| Device | SoC | CPU prefill / decode (tok/s) | GPU prefill / decode (tok/s) |
|---|---|---|---|
| Galaxy S25 | Snapdragon 8 Elite | ~79 / ~8.8 | ~532 / ~15 |
| Galaxy Tab S9+ | Snapdragon 8 Gen 2 | 56 / 7.2 | 391 / 10.6 |
| Pixel 9 | Tensor G4 | 42 / ~4 | 167 / 7.6 |
| Pixel 10 | Tensor G5 | 65 / 5.0 | 179 / 2.8 |
| Galaxy A56 | Exynos 1580 | ~35 / ~3.1 | ~97 / ~4.1 |
| Redmi Note 13+ | Dimensity 7200-Ultra | ~31 / ~2.4 | ~80 / ~4.3 |
| Galaxy A35 | Exynos 1380 | ~27 / ~0.5 to 0.8 | killed for memory |
| Galaxy A36 | Snapdragon 6 Gen 3 | ~24 / ~0.2 to 0.3 | killed for memory |
| Galaxy A15 | Dimensity 6100+ | ~1.4 to 2.2 (short prompts) / ~0.1 | killed for memory |
| iPhone 15 Pro Max | A17 Pro | not run | passes; 37 to 139 / 6.2 to 9.0 (short replies, see note) |
- Values with
~are estimated from wall-clock times and exact token counts; the others are LiteRT-LM's own benchmark numbers. The A15 did not run the 3,272-token prompt; its prefill is from prompts of about 50 tokens. - The GPU path needs about 8 GB of RAM: on the 4 to 6 GB phones (Galaxy A35, A36, A15) it was killed for memory, and CPU decode there was below 1 tok/s.
- iPhone: checked through the app's own download and chat path (catalog entry, GPU). Its replies were 2 to 3 tokens ("Paris", "Seine") on prompts of 55 and 73 tokens, so these speeds are rough, not a long-reply benchmark.
A GGUF (Q4_0) of the same model for llama.cpp is at timmyboy26/aion-1.0-instruct-2.3b-q4_0-gguf.
License and notices
The model is under the MIT license, copied in LICENSE (Microsoft's text, "Copyright (c) Microsoft Corporation").
Not affiliated with or endorsed by Microsoft.
- Downloads last month
- 70
Model tree for timmyboy26/aion-1.0-instruct-2.3b-litert-lm
Base model
microsoft/Aion-1.0-Instruct-2.3B