oxide-lab/LTX-Video-0.9.8-2B-distilled
15867
LTX-Video in Rust (Candle)
This repository provides a high-performance, native Rust implementation of LTX-Video using the Candle ML framework.
Demonstration
Features
- ๐ฆ Native Rust: No Python dependency required for inference.
- ๐ Performance: Optimized for NVIDIA GPUs with Flash Attention v2 and cuDNN.
- ๐พ Memory Efficient: Supports GGUF quantization for T5-XXL text encoder and VAE tiling/slicing for generating 720p+ videos on consumer GPUs.
- ๐ Flexible: Easy to use CLI for video generation and library for custom integration.
Quick Start
Installation
Ensure you have Rust and the CUDA Toolkit installed, then:
git clone https://github.com/FerrisMind/candle-video
cd candle-video
cargo build --release --features flash-attn,cudnnVideo Generation
cargo run --example ltx-video --release --features flash-attn,cudnn -- \
--local-weights "c:\model\models\ltxv-2b-0.9.8-distilled" \
--unified-weights "c:\model\models\ltxv-2b-0.9.8-distilled" \
--ltxv-version 0.9.8-2b-distilled \
--prompt "A woman with blood on her face and a white tank top looks down and to her right, then back up as she speaks."Performance & Memory
Note: Using GGUF T5 encoder saves an additional ~8-12GB of VRAM.
Credits
- Original Model: Lightricks/LTX-Video
- Framework: HuggingFace Candle
- Inspiration: city96/LTX-Video-gguf (for GGUF support patterns)
For more details, visit the main GitHub Repository.




