Instructions to use litert-community/Phi-4-mini-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/Phi-4-mini-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 # 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/Phi-4-mini-instruct \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
Commit History
11 days ago
-
Point Android readers to LiteRT-LM and mark the MediaPipe LLM Inference API maintenance-only; the demo app's source link was dead
Verified signatureThe MediaPipe LLM Inference API is in maintenance-only mode, and Google recommends LiteRT-LM for Android projects (https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference/android). The "LLM Inference API" subsection pointed to that API's demo app, whose source mediapipe-samples removed on 2026-08-05 (commit 7e4b4a91; the link returned 404). It now names the LiteRT-LM Android library and this repository's `.litertlm` file.edafb14
-
Add "library_name: litert-lm" tag to the README.md
Verified signatureAdd "library_name: litert-lm" tag to the model card so the .litertlm files are correctly tracked.8cd368b
-
Update README.md
Verified signaturef2f4ce0 -
Add files using upload-large-folder tool
Verified signature054f4e2
-
Add files using upload-large-folder tool
Verified signaturece1731b
-
Add files using upload-large-folder tool
Verified signature6c54036 -
Delete commit_hash
Verified signature9322d0c -
Add files using upload-large-folder tool
Verified signaturefe093b8
-
Update APK link
Verified signaturea8d9ef2 -
Upload phi4_q8_ekv1280.task
Verified signature0cbbbcb -
Upload phi4_litert.ipynb
Verified signature9e7f97d -
Update README.md
Verified signaturec98361c -
Add Model Card
Verified signature6f5a812 -
Update Colab notebook
Verified signature4faefdc -
Add Phi4 Colab
Verified signature1bee609 -
Adding Phi4 model files
Verified signature90424cc -
initial commit
Verified signature5a392a1