Skip to main content

News

NVIDIA Cosmos 3 Nano Enables Local Video Generation with 12 GB GPUs

NVIDIA Cosmos 3 Nano uses Hugging Face Diffusers to generate videos on GPUs with 12 GB VRAM by offloading model weights to system RAM.

X LinkedIn
NVIDIA Cosmos 3 Nano Enables Local Video Generation with 12 GB GPUs

NVIDIA Cosmos 3 Nano, a world foundation model for physical AI, enables video generation from text, images, and other inputs on GPUs with as little as 12 GB of VRAM. The model achieves this by offloading most of its weights to system RAM and transferring them to the GPU as needed during inference. This approach, detailed in a tutorial published on November 24, 2026, leverages Hugging Face Diffusers and an FP8 checkpoint to further reduce memory requirements.

Memory Optimization for Local AI Devices

Running large video generation models locally often exceeds the memory capacity of consumer GPUs. NVIDIA Cosmos 3 Nano addresses this limitation through a streaming adapter that builds on Hugging Face's group offloading mechanism. This method stores model weights in system RAM and transfers them to the GPU only when required, enabling generation on smaller GPUs. While this reduces GPU memory usage, it increases system RAM requirements and relies on PCIe transfers for efficient operation.

The tutorial highlights that the tested consumer-GPU hosts had approximately 128 GB of system RAM, though this is not a measured minimum. The adapter supports BF16 and FP8 precision, with BF16 scaled dot-product attention used as the baseline for all tested GPUs, including the GeForce RTX 5070, 5080, 4090, and 5090. For example, the RTX 5070 completed a 720p text-to-video generation task in 2,624.9 seconds with a peak memory usage of 9.94 GiB.

Steps to Generate Videos

To generate videos using Cosmos 3 Nano, users need a Linux environment with Python 3.12 and a CUDA-enabled PyTorch build compatible with their GPU. The process involves cloning the Cosmos-Framework repository, installing the standalone offloading package, and configuring the Hugging Face Diffusers pipeline. The first load downloads the model checkpoint, while subsequent loads reuse cached files.

An example script generates a 720p video with 189 frames at 24 FPS using the following parameters:

{"num_frames": 189, "height": 720, "width": 1280, "fps": 24.0, "num_inference_steps": 35, "guidance_scale": 6.0}

For GPUs with tighter memory constraints, users can adjust the resolution to 480x848 or 240x432 for faster iteration. The generated video frames can be saved as an MP4 file using the export_to_video function from the Diffusers library.

Offloading Weights for Efficient Execution

The core innovation of Cosmos 3 Nano lies in its ability to offload weights storage to system RAM. During generation, checkpoint weights not currently needed remain in system RAM, while the next transformer block is transferred to the GPU for computation. This execution model manages memory and compute across the CPU and GPU, ensuring that every matrix multiplication and attention operation runs on CUDA.

The adapter also coordinates the model's understanding and generation pathways. The understanding pathway interprets the prompt and other conditioning inputs, which remain fixed during generation. The generation pathway processes the evolving video representation at each denoising step, using the understanding context as a reference. This context is prepared once and reused unless precision changes during denoising.

Applications and Future Directions

NVIDIA Cosmos 3 Nano supports seven generation modalities, including text-to-video, image-to-video, sound generation, and control-guided generation. The adapter integrates seamlessly with the official Diffusers modular pipeline, which handles prompt processing, latent preparation, and the denoising loop.

Users can download the Cosmos 3 Nano checkpoint and its FP8 branch from Hugging Face, along with examples and code from the Cosmos-Framework repository. This development opens new possibilities for local AI applications in video generation, particularly for devices with limited GPU memory.

Sign in to save this article Free account: build your research collection and return to read it anytime.