NVIDIA released an adapter for Cosmos 3 Nano that enables local video generation even on 12 GB-class graphics cards. Developers can keep model data in system memory and move only required parts to the GPU to reduce its memory load.
1. Move required parts instead of the entire model
The adapter moves transformer blocks, the model's computation units, to the GPU in the order needed. Space is reused for the next block, reducing the need to load the entire model into GPU memory. The GPU performs the computation.
The official Diffusers pipeline handles prompts, video decoding, and safety checks. It supports text-, image-, and video-conditioned generation, sound and action generation, and control-video-based generation. The adapter automatically adjusts transfers and video processing to available memory.
2. Memory savings cost system memory and transfer time
Keeping weights in system memory reduces GPU memory needs but increases system memory use and transfers over PCIe, which connects the CPU and GPU. Generating high-resolution video on smaller cards trades memory limits for waiting. NVIDIA recommends 240p or 480p when starting iterative experiments on 12 GB-class GPUs.
3. Install a standalone package in an existing environment
The package targets Linux and Python 3.12 or later. The company's consumer GPU test hosts had about 128 GB of system memory.
Install it in a PyTorch environment with CUDA support matching the GPU. CUDA is NVIDIA's parallel computing platform for GPUs. Below is the blog's example for cloning the repository and installing the package.
git clone https://github.com/NVIDIA/cosmos-framework.git
cd cosmos-framework/packages/diffusers-cpu-offloading
uv pip install '.[benchmarks]'Before running, accept the access terms for the model and safety models on Hugging Face and authenticate. Pass the model repository ID to the pipeline. The first run downloads checkpoints, bundles of saved model weights; later runs reuse the cache. Safety checks are enabled by default.
4. Generating 720p video took tens of minutes
The company reported that the RTX 5070 took 2,624.9 seconds to generate 720p video from text with 189 frames, 24 frames per second, and 35 steps. It listed this as 43.75 minutes. Below are results for four cards using the same video generation settings.
Tests used the default BF16, a 16-bit floating-point format, and PyTorch's SDPA for memory-efficient attention computation. Times include prompt processing, decoding, and safety checks, but exclude pipeline setup, checkpoint loading, and MP4 encoding.
Table: Per-card results with the same 720p video generation settings
Conditions: About 128 GB system memory per card's host; 1280×720 text-to-video; BF16 SDPA; 189 frames, 24fps, 35 UniPC steps, a method for denoising in few steps. CFG, which controls conditioning influence, 6; seed 123; safety checks on; Linux, Python 3.12, PyTorch 2.13/CUDA 13; single run.
Units: Latency in seconds, peak GPU memory in GiB
| Graphics card | Latency | Peak GPU memory |
|---|---|---|
| GeForce RTX 5070 | 2,624.9 | 9.94 |
| GeForce RTX 5080 | 1,594.4 | 11.92 |
| GeForce RTX 4090 | 1,052.2 | 16.56 |
| GeForce RTX 5090 | 1,016.7 | 18.22 |
Larger cards reduced waiting in this setup, but even the RTX 5090 took 1,016.7 seconds. The company reported 849.5 seconds at 848×480 and 207.6 seconds at 432×240 on the RTX 5070 with the same basic settings. These figures can inform a workflow of iterating at lower resolutions before moving to 720p.
5. FP8 checkpoints are also an option
The adapter also reads FP8 checkpoints, which store weights in an 8-bit floating-point format. The company reported 2,235.7 seconds and 9.16 GiB peak memory for 720p text-to-video on the RTX 5070 with this checkpoint. Attention stays at BF16 SDPA, while other computation uses the checkpoint's mixed precision.
Published figures are single runs with host and software differences. They cannot readily establish controlled GPU rankings or multi-seed precision comparisons. The blog and adapter repository provide FP8 results. However, the model card's software integration notes say only BF16 was tested and other precisions are not officially supported.
This adapter lowers the GPU memory barrier, but practical usability depends on the resolution and whether long generation times are acceptable.
