How to Run NVIDIA Cosmos 3 on Local AI Devices Using Hugging Face Diffusers
Running video generation models locally can be challenging when model weights and intermediate data exceed available GPU memory. NVIDIA Cosmos 3 Nano is a world...
First seen by Oriel on .
AI summary
The tutorial explains how to run NVIDIA Cosmos 3 Nano with Hugging Face Diffusers on GPUs with as little as 12 GB of VRAM by keeping most model weights in system RAM and streaming them to the GPU as needed.
- The Cosmos adapter builds on Diffusers offloading and runs matrix multiplication and attention on CUDA, while transferring transformer blocks from system RAM as generation requires them.
- The approach reduces VRAM requirements at the cost of greater system RAM use and PCIe transfers; it does not provide interactive latency or stream weights directly from disk during inference.
- The pipeline supports text-, image-, video-, sound-, action-, and control-guided generation while retaining the official Diffusers pipeline for conditioning, denoising, decoding, and safety checks.
- An FP8 checkpoint can be selected with revision="fp8"; the tested Nano video checkpoint uses W8A16 for the first and last three denoising steps and W8A8 in between, while attention remains BF16 SDPA.
- Benchmarks cover four GeForce RTX cards for text-to-video and all seven modalities on the GeForce RTX 5070; results are single-run measurements affected by host, software, and safety settings.
#nvidia cosmos #hugging face diffusers #gpu offloading #video generation
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| NVIDIA Developer Blog | https://developer.nvidia.com/blog/?p=125590 | https://developer.nvidia.com/blog/how-to-run-nvidia-cosmos-3-on-local-ai-devices-using-hugging-face-diffusers/ Read discussion |