NVIDIAAtharva JoshiTutorial
How to Run NVIDIA Cosmos 3 on Local AI Devices Using Hugging Face Diffusers
Summary
Running NVIDIA Cosmos 3 Nano, a video generation model for physical AI, on local GPUs requires VRAM that consumer cards often lack. This tutorial presents a streaming adapter built on Hugging Face Diffusers that stores model weights in system RAM and transfers transformer blocks to the GPU one block at a time. The adapter reuses the understanding context across all 35 denoising steps and automatically manages memory for VAE decoding and safety checking without user configuration. This enables generation on GPUs with as little as 12 GB VRAM, demonstrated on an RTX 5070 where 720p text-to-video took 43.75 minutes using 9.94 GiB with BF16, or 37.26 minutes with the FP8 checkpoint. The tradeoff is high system RAM usage (128 GB tested), PCIe transfer overhead, and lack of interactive latency or disk-streaming during inference.
Context
NVIDIA Cosmos 3 Nano is an open omnimodal world foundation model for physical AI that generates videos from text, images, and other inputs. Running it locally is challenging due to GPU memory limits.
Approach / What changed
Use a streaming adapter built on Hugging Face Diffusers that stores model weights in system RAM and transfers transformer blocks to the GPU one at a time. The adapter reuses the understanding context across denoising steps, overlaps transfers with computation when possible, and automatically manages memory for VAE decoding and safety checking. It supports both BF16 and native FP8 checkpoint to reduce memory requirements.
Takeaways
The streaming adapter stores most model weights in system RAM and transfers each transformer block to the GPU only when needed, enabling generation on GPUs with as little as 12 GB VRAM.
The adapter reuses the understanding pathway context across all denoising steps, avoiding redundant computation and reducing memory transfers.
Using the native FP8 checkpoint reduces both peak GPU memory usage and generation time compared to BF16, as shown in benchmarks on RTX 5070.
FAQ
What is the minimum GPU VRAM required to run Cosmos 3 Nano?
The adapter enables generation on GPUs with as little as 12 GB VRAM, as demonstrated on an RTX 5070. Lower resolutions like 240p require only about 3.95 GiB, while 720p requires up to 9.94 GiB.
How does the adapter handle memory for different pipeline phases?
The adapter automatically manages memory for denoising, VAE decode, and safety checking. It uses memory-efficient VAE execution on constrained GPUs and applies lower-memory execution mode for larger Transfer requests.
Is this approach suitable for real-time inference?
No. The approach does not provide interactive latency or stream weights directly from disk during inference. Pipeline times range from 2 minutes at 240p to 44 minutes at 720p on an RTX 5070.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.