Instructions to use Lightricks/LTX-Video with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lightricks/LTX-Video with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lightricks/LTX-Video", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
Does it work on macbook pro m3/m4?
I tried to run it on my M4 (48 GB RAM) but couldn't get the output.
I also tried with comfyUI , it worked but the generated video is just noise and lines.
What are you rendering on?
@monk05 Someone on Discord mentioned that they work on an MBP M3, and it takes about 5 minutes per video. Additionally, some users have reported managing to run it with under 6GB of VRAM—I believe I saw this mentioned on Reddit, though I don’t have the exact link.
For questions like this, you may find helpful answers on platforms like Discord and Reddit, as many users share their experiences there.
@monk05 how did you get it to work in the end? Care to share a guide somewhere? I know I'd massively appreciate it! :D
For me this works on a 2021 Macbook Pro M1 16GB. It takes approx 15 min per video.
