Views
No views yet
| File | Quantization Recipe | Context | Size |
|---|---|---|---|
Qwen3_1.7B.litertlm | dynamic_wi8_afp32 | - | 2.1 GB |
Qwen3-1.7B_dynamic_wi4b32_afp32.litertlm | dynamic_wi4b32_afp32 | 4096 | 932 MB |
Qwen3-1.7B_dynamic_wi4b32_afp32.litertlm is a dynamic INT4 variant (block-32 weights, FP32 activations). It was converted through the LiteRT Torch (litert-torch) path and quantized with AI Edge Quantizer. This artifact incorporates LiteRT-LM GPU graph optimizations, including composite ops for RoPE, fused QKV, and fused Gate/Up projections, and is configured with static prefill memory allocation. 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".litertlm model and click submit. The model will then appear in your list, and you can proceed to download it (a Hugging Face account login is required)..litertlm model directly to your Android device, OR download it to your computer and push it via ADB (e.g., adb push Qwen3-1.7B_dynamic_wi4b32_afp32.litertlm /sdcard/Download/). Then, select this option, choose the downloaded file from your storage, configure your preferred parameters, and tap "Import". pip install litert-lm huggingface_hub1 from huggingface_hub import hf_hub_download
2
3 model_path = hf_hub_download(
4 repo_id="litert-community/Qwen3-1.7B",
5 filename="Qwen3_1.7B.litertlm"
6 )1 import litert_lm
2
3 litert_lm.set_min_log_severity(litert_lm.LogSeverity.ERROR) # Hide log for TUI app
4
5 with litert_lm.Engine(model_path) as engine:
6 with engine.create_conversation() as conversation:
7 while True:
8 user_input = input("\n>>> ")
9 for chunk in conversation.send_message_async(user_input):
10 print(chunk["content"][0]["text"], end="", flush=True)litert_lm_advanced_main from the litert-lm v0.16.0 release, GPU backend OpenCL (LITERT_CL), one fixed 205-token prompt text (202 tokens under this tokenizer), --benchmark. Two runs per backend taken back-to-back — cells show the range (the phone warms across a series; the CPU's first run also pays cold file I/O). Peak RSS is the process VmHWM. Before quoting, every file/backend pair was run with a real prompt and produced a correct text answer; the GPU rows are full delegation (e.g. Qwen3-1.7B_dynamic_wi4b32_afp32: decode 994/994 ops on LITERT_CL, nothing on the CPU fallback).| File | Backend | Prefill (202 tok) | Decode | Time-to-first-token | Peak RSS |
|---|---|---|---|---|---|
Qwen3-1.7B_dynamic_wi4b32_afp32.litertlm | GPU (OpenCL) | 532–568 tok/s | 40.5–40.7 tok/s | 0.38–0.40 s | 1036 MB |
Qwen3-1.7B_dynamic_wi4b32_afp32.litertlm | CPU (XNNPACK) | 48–76 tok/s | 8.0–8.3 tok/s | 2.8–4.3 s | 2523 MB |
Qwen3_1.7B.litertlm | GPU (OpenCL) | 312–504 tok/s | 14.9–18.1 tok/s | 0.46–0.71 s | 854 MB |
Qwen3_1.7B.litertlm | CPU (XNNPACK) | 238–245 tok/s | 7.7–7.8 tok/s | 0.95–0.98 s | 3185 MB |
Qwen3_1.7B.litertlm prefills 3–5× faster than wi4b32 on the same CPU.