GenAI
Collection
Generative AI on device: LLMs, VLMs, audio-LMs (speech LMs), embeddings, and text-to-image — LiteRT / LiteRT-LM ready. • 76 items • Updated • 2
How to use litert-community/Qwen3-1.7B 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/Qwen3-1.7B \ --prompt="Write me a poem"
This repository contains LiteRT-LM variants of Qwen/Qwen3-1.7B optimized for on-device text generation.
| File | Quantization Recipe | Context | Size |
|---|---|---|---|
Qwen3_1.7B.litertlm |
dynamic_wi8_afp32 | - | 2.1 GB |
pip install litert-lm
litert-lm run --from-huggingface-repo=litert-community/Qwen3-1.7B Qwen3_1.7B.litertlm --prompt="Write me a poem on nature"
pip install litert-lm huggingface_hub
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="litert-community/Qwen3-1.7B",
filename="Qwen3_1.7B.litertlm"
)
import litert_lm
litert_lm.set_min_log_severity(litert_lm.LogSeverity.ERROR) # Hide log for TUI app
with litert_lm.Engine(model_path) as engine:
with engine.create_conversation() as conversation:
while True:
user_input = input("\n>>> ")
for chunk in conversation.send_message_async(user_input):
print(chunk["content"][0]["text"], end="", flush=True)
Ready to integrate this into your product? Get started in the LiteRT-LM documentation.