GenAI
Collection
Generative AI on device: LLMs, VLMs, audio-LMs (speech LMs), embeddings, and text-to-image — LiteRT / LiteRT-LM ready. • 76 items • Updated • 1
How to use litert-community/Qwen2-1.5B-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 litert-lm run \ --from-huggingface-repo=litert-community/Qwen2-1.5B-Instruct \ --prompt="Write me a poem"
This repository contains LiteRT-LM variants of Qwen/Qwen2-1.5B-Instruct optimized for on-device text generation.
| File | Quantization Recipe | Context | Size |
|---|---|---|---|
Qwen2_1.5B_Instruct.litertlm |
dynamic_wi8_afp32 | - | 1.8 GB |
Ready to integrate this into your product? Get started in the LiteRT-LM documentation.
Base model
Qwen/Qwen2-1.5B-Instruct