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 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 \ model.litertlm \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
Update README
#2
by hvt4 - opened
README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: SakanaAI/TinySwallow-1.5B-Instruct
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
library_name: litert-lm
|
| 6 |
+
tags:
|
| 7 |
+
- chat
|
| 8 |
+
- litert-lm
|
| 9 |
+
- TinySwallow-1.5B
|
| 10 |
+
- on-device
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# litert-community/TinySwallow-1.5B-Instruct
|
| 14 |
+
|
| 15 |
+
This model provides a variant of
|
| 16 |
+
[SakanaAI/TinySwallow-1.5B-Instruct](https://huggingface.co/SakanaAI/TinySwallow-1.5B-Instruct) that is ready for
|
| 17 |
+
deployment on Android using the
|
| 18 |
+
[LiteRT-LM](https://github.com/google-ai-edge/LiteRT-LM).
|
| 19 |
+
|
| 20 |
+
## Use the model
|
| 21 |
+
|
| 22 |
+
### Android
|
| 23 |
+
|
| 24 |
+
#### Edge Gallery App
|
| 25 |
+
* Download or build the [app](https://github.com/google-ai-edge/gallery?tab=readme-ov-file#-get-started-in-minutes) from GitHub.
|
| 26 |
+
|
| 27 |
+
* Install the [app](https://play.google.com/store/apps/details?id=com.google.ai.edge.gallery&pli=1) from Google Play.
|
| 28 |
+
|
| 29 |
+
* Follow the instructions in the app.
|
| 30 |
+
|
| 31 |
+
To build the demo app from source, please follow the [instructions](https://github.com/google-ai-edge/gallery/blob/main/README.md)
|
| 32 |
+
from the GitHub repository.
|