How to use from the
Use from the
LiteRT-LM library
# 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/SmolLM2-135M-Instruct \
  --prompt="Write me a poem"

litert-community/SmolLM2-135M-Instruct

This model provides a variant of HuggingFaceTB/SmolLM2-135M-Instruct that is ready for deployment on Android using the LiteRT-LM.

Use the model

Android

Edge Gallery App

  • Download or build the app from GitHub.

  • Install the app from Google Play.

  • Follow the instructions in the app.

To build the demo app from source, please follow the instructions from the GitHub repository.

Downloads last month
2,235
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for litert-community/SmolLM2-135M-Instruct

Finetuned
(389)
this model

Space using litert-community/SmolLM2-135M-Instruct 1

Collection including litert-community/SmolLM2-135M-Instruct