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.