Instructions to use litert-community/TinySwallow-1.5B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/TinySwallow-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/TinySwallow-1.5B-Instruct \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| base_model: SakanaAI/TinySwallow-1.5B-Instruct | |
| pipeline_tag: text-generation | |
| library_name: litert-lm | |
| tags: | |
| - chat | |
| - litert-lm | |
| - TinySwallow-1.5B | |
| - on-device | |
| # litert-community/TinySwallow-1.5B-Instruct | |
| This model provides a variant of | |
| [SakanaAI/TinySwallow-1.5B-Instruct](https://huggingface.co/SakanaAI/TinySwallow-1.5B-Instruct) that is ready for | |
| deployment on Android using the | |
| [LiteRT-LM](https://github.com/google-ai-edge/LiteRT-LM). | |
| ## Use the model | |
| ### Android | |
| #### Edge Gallery App | |
| * Download or build the [app](https://github.com/google-ai-edge/gallery?tab=readme-ov-file#-get-started-in-minutes) from GitHub. | |
| * Install the [app](https://play.google.com/store/apps/details?id=com.google.ai.edge.gallery&pli=1) from Google Play. | |
| * Follow the instructions in the app. | |
| To build the demo app from source, please follow the [instructions](https://github.com/google-ai-edge/gallery/blob/main/README.md) | |
| from the GitHub repository. | |