Instructions to use litert-community/whisper-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/whisper-tiny 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=litert-community/whisper-tiny \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/whisper-tiny 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
Add int4 (wi4b64) quantized variant
This PR adds an int4 quantized variant of the 30 s encode/decode-split Whisper tiny TFLite graph, drop-in compatible with the existing graph interface in this repo.
Toolchain: ai-edge-quantizer 0.8.0, post-training dynamic-range quantization.
Recipe: dynamic_wi4b64_afp32 (int4 weights, blockwise-64, fp16 scales, fp32 activations) with int8 overrides on sensitive scopes: the encoder and the token-embedding/logits table are kept at int8 channelwise. Pure full-scope int4 was tested and rejected (Korean transcription errors); this mixed recipe is the validated configuration.
Source checkpoint: the f32 TFLite export in this repository (litert-community/whisper-tiny, derived from openai/whisper-tiny).
Validation: Korean/English gate clips transcribed exactly — Korean tactical-report sentence ("2025년 3월 5일 전술평가 결과 보고"), its English equivalent, and short Korean voice commands; CER scored against punctuation-normalized references. Size: 35 MB (vs 151 MB f32 / 41 MB i8).
Runtime tested: LiteRT v0.14.0-era runtime (LiteRT-LM v0.14.0 project pipeline) — Windows x86_64 CPU (XNNPACK) and Android arm64 (Snapdragon 865-class device).
Known caveats:
- Like the tiny/base int8 graphs, sub-1.2 s clips showed sensitivity on one Snapdragon 865 device (mel/STFT numerics, ~0.1 % energy delta vs desktop); larger Whisper variants are unaffected.
- tiny remains the weakest tier for short Korean voice commands; prefer base or larger for command-style audio.
Produced by the LiteRT-LM-Unity project (https://github.com/Leuconoe/LiteRT-LM-Unity, release v0.14.0-unity).