Instructions to use timmyboy26/SANA-Video-LiteRT-NPU with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use timmyboy26/SANA-Video-LiteRT-NPU with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use timmyboy26/SANA-Video-LiteRT-NPU with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf timmyboy26/SANA-Video-LiteRT-NPU:Q8_0 # Run inference directly in the terminal: llama cli -hf timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf timmyboy26/SANA-Video-LiteRT-NPU:Q8_0 # Run inference directly in the terminal: llama cli -hf timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf timmyboy26/SANA-Video-LiteRT-NPU:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
Use Docker
docker model run hf.co/timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use timmyboy26/SANA-Video-LiteRT-NPU with Ollama:
ollama run hf.co/timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use timmyboy26/SANA-Video-LiteRT-NPU with Docker Model Runner:
docker model run hf.co/timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
- Lemonade
How to use timmyboy26/SANA-Video-LiteRT-NPU with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull timmyboy26/SANA-Video-LiteRT-NPU:Q8_0
Run and chat with the model
lemonade run user.SANA-Video-LiteRT-NPU-Q8_0
List all available models
lemonade list
- Atomic Chat
SANA-Video, LiteRT NPU builds
NVIDIA SANA-Video 2B converted to LiteRT and ahead-of-time compiled for phone NPUs, as used by the Video Generator in LLM Hub (Android).
| Folder | Clip | NPU builds |
|---|---|---|
2b/832x480x17/ |
832x480, 17 frames (about 1 s at 16 fps) | MediaTek MT6989, MT6991, MT6993; Google Tensor G6 |
2b/832x480x81/ |
832x480, 81 frames (about 5 s at 16 fps) | MediaTek MT6989, MT6991, MT6993; Google Tensor G6 |
- The transformer is split into four chunks. The host computes the timestep sinusoid, the RoPE tables and the
caption mask, and runs SANA's Gemma-2 2B text encoder (Q8_0 GGUF in
text_encoder/, through llama.cpp). - Sampling: DPM-Solver++ 2M, flow shift 8, 20 steps, classifier-free guidance 6 (coefficients in
pipeline/pipeline.json). - Decoder (LTX-2 VAE):
<SOC>/vae.tflitedecodes the whole clip on the NPU.MT6989/vae_window.tflite(5 s shape) is the 17-frame decoder, run over overlapping 17-frame windows because the Dimensity 9300 cannot decode 81 frames in one pass. Tensor G6 has no NPU decoder;source/vae_tile.tflitedecodes on the CPU in tiles and, for 5 s clips, in overlapping windows. - fp16 weights. RMSNorm and LayerNorm divide each row by its max before squaring, and the linear attentions divide keys by the token count before summing over tokens, so activations stay within float16 range on the NPU.
- Each shape folder:
source/uncompiled models,<SOC>/AOT-compiled builds,pipeline/andinputs/shared inputs,manifest.jsonwith every file's SHA-256.
Benchmarks (LLM Hub app, on device)
Full generation in the app (prompt encoding, 20 steps, decode, MP4), same prompt and seed 42, measured on Firebase Test Lab and BrowserStack devices on 2026-11-30.
| Chip | Device | 1 s clip (17 frames) | 5 s clip (81 frames) | 5 s decode |
|---|---|---|---|---|
| Dimensity 9500 (MT6993) | Galaxy Tab S12 Plus | 3.6 min | 10-11 min | NPU, 21 s |
| Dimensity 9400 (MT6991) | Galaxy Tab S11 | 7.9 min | 43 min | NPU, 30 s |
| Dimensity 9300 (MT6989) | Galaxy Tab S10 Plus | 8.3 min | 42 min | NPU in 17-frame windows, 57 s |
| Tensor G6 | Pixel 11 | 2.7 min | 14-21 min | CPU tiles, 9-16 min |
Snapdragon is not offered: its NPU runs these graphs with too little precision and the video comes out as noise.
Conversion scripts: android/tools/sana_litert in the LLM Hub repository. SANA-Video is released by NVIDIA under the
Apache License 2.0; the VAE decoders come from Lightricks' LTX-2 and remain subject to Lightricks' license.
- Downloads last month
- 2,060
8-bit
Model tree for timmyboy26/SANA-Video-LiteRT-NPU
Base model
Efficient-Large-Model/SANA-Video_2.0_5B_720p