How NVIDIA Cosmos 3 Nano Fits on a 12 GB GPU: Streaming Weights Block by Block from System RAM
An NVIDIA technical tutorial explains how the Cosmos-Framework offloading package runs Cosmos 3 Nano on GPUs with as little as 12 GB VRAM by keeping model weights in system RAM and transferring one transformer block at a time to the GPU during denoising. Single-run benchmarks on an RTX 5070 show 720p text-to-video completing in 43.75 minutes at 9.94 GiB peak memory using BF16, versus 37.26 minutes at 9.16 GiB with an FP8 checkpoint that still keeps attention in BF16 SDPA.
Video generation models like NVIDIA Cosmos 3 Nano demand more GPU memory than most consumer cards provide. The Cosmos-Framework offloading package, published by NVIDIA engineers Atharva Joshi and Jibin Varghese, addresses this by keeping model weights in system RAM and streaming them to the GPU one transformer block at a time. The tradeoff is explicit: reduced GPU memory requirement in exchange for increased system RAM use and PCIe transfer overhead. The authors note that this approach does not provide interactive latency or stream weights directly from disk during inference.
The mechanism exploits a structural property of Cosmos 3's transformer. The model has two complementary pathways: an understanding pathway that interprets the prompt and conditioning inputs, and a generation pathway that processes the evolving video representation at every denoising step. Because the understanding pathway's inputs remain fixed during generation, the adapter runs it once and reuses its context across all 35 denoising steps. During generation, transformer weights remain in system RAM until their block is needed; the active block moves to the GPU, performs its CUDA computation for the current step, and makes room for the next block. When the GPU has enough headroom, the next block can begin transferring while the current block computes. Classifier-free guidance predictions share the same streamed block rather than triggering separate transfers for each branch.
The FP8 checkpoint further reduces peak memory without abandoning BF16 entirely. The tested Nano video checkpoint uses W8A16 (8-bit weights dequantized to 16-bit activations) for the first three and last three denoising steps, and W8A8 (8-bit weights and activations) for the middle steps. Attention remains BF16 scaled dot-product attention throughout; the entire pipeline does not run in FP8. On an RTX 5070, this mixed-precision schedule cuts 720p text-to-video latency from 43.75 minutes to 37.26 minutes and peak GPU memory from 9.94 GiB to 9.16 GiB.