Instructions to use 4ntoine/LocoOperator-4B-LiteRTLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use 4ntoine/LocoOperator-4B-LiteRTLM 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=4ntoine/LocoOperator-4B-LiteRTLM \ model.litertlm \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
Update README
Browse files
README.md
CHANGED
|
@@ -4,4 +4,12 @@ base_model:
|
|
| 4 |
tags:
|
| 5 |
- litert-lm
|
| 6 |
- litertlm
|
| 7 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- litert-lm
|
| 6 |
- litertlm
|
| 7 |
+
---
|
| 8 |
+
The model is converted from the original LocoreMind/LocoOperator-4B using:
|
| 9 |
+
```
|
| 10 |
+
litert-torch export_hf \
|
| 11 |
+
--model=LocoreMind/LocoOperator-4B \
|
| 12 |
+
--output_dir="./dynamic_wi8_afp32" \
|
| 13 |
+
--quantization_recipe="dynamic_wi8_afp32" \
|
| 14 |
+
--bundle_litert_lm=true
|
| 15 |
+
```
|