Downloads · 30 days
1.8K
41% of all-time downloads
litert-community/Qwen2-0.5B-Instruct
Qwen2-0.5B-Instruct is a text generation model from litert-community. Use it when you need the model to write or continue text. It is set up for litert-lm. The card lists the license as apache-2.0.
This repository contains LiteRT-LM variants of Qwen/Qwen2-0.5B-Instruct optimized for on-device text generation.
Downloads · 30 days
1.8K
41% of all-time downloads
All-time downloads
4.3K
Public
Repo size
647 MB
Likes
1
Public
Click a slice to open those files.
.litertlm647 MB · 100%
From the Hugging Face model README
This repository contains LiteRT-LM variants of Qwen/Qwen2-0.5B-Instruct optimized for on-device text generation.
| File | Quantization Recipe | Context | Size |
|---|---|---|---|
Qwen2_0.5B_Instruct.litertlm | dynamic_wi8_afp32 | - | 647.4 MB |
Community measurement on a physical Samsung Galaxy S26 (SM-S942Q, Snapdragon 8 Elite Gen 5 / SM8850, Android 16): litert_lm_advanced_main from the litert-lm v0.16.0 release, GPU backend OpenCL (LITERT_CL) against CPU (XNNPACK), one fixed 205-token prompt text (213 tokens under this tokenizer), --benchmark. Two runs per backend taken back-to-back — cells show the range. Peak RSS is the process VmHWM. Before quoting, the file was run on each backend with a real prompt and both produced a correct text answer; the GPU rows are full delegation of the transformer graphs (decode 1063/1063 and prefill 972/972 ops on LITERT_CL; only the tiny embedding-lookup helper graphs stay on the CPU).
| Backend | Prefill (213 tok) | Decode | Time-to-first-token | Init | Peak RSS |
|---|---|---|---|---|---|
| GPU (OpenCL) | 1259–1452 tok/s | 61.9–62.9 tok/s | 0.16–0.19 s | 0.8 s | 559–561 MB |
| CPU (XNNPACK) | 405–528 tok/s | 49.1–54.5 tok/s | 0.42–0.55 s | 0.7–1.0 s | 1005–1044 MB |
What the table says:
Ready to integrate this into your product? Get started in the LiteRT-LM documentation.