LiteRT-LM
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
litert-lm run \
  --from-huggingface-repo=NeuML/granite-4.0-350m-litert-lm \
  --prompt="Write me a poem"

Model Card for Granite-4.0-350M LiteRT-LM

Granite-4.0-350M LiteRT-LM model.

This can be run in txtai using the following code.

from txtai import LLM

llm = LLM("neuml/granite-4.0-350m-litert-lm/granite-4.0-350m.litertlm")
llm("Run a prompt here")

Created using the following code.

# pip install litert-torch

from litert_torch.generative.export_hf.export import export

export(
    model="ibm-granite/granite-4.0-350m",
    output_dir="output",
    externalize_embedder=True,
)
Downloads last month
77
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for NeuML/granite-4.0-350m-litert-lm

Finetuned
(19)
this model

Collection including NeuML/granite-4.0-350m-litert-lm