Big Tech FOSS

NVIDIA releases Cosmos-Framework to run Cosmos 3 Nano on consumer GPUs via CPU offloading

Key Takeaway

A new streaming adapter allows NVIDIA's Cosmos 3 Nano video generation model to run on GPUs with as little as 12 GB of VRAM by offloading weights to system RAM.

Summary

NVIDIA has introduced a specialized offloading package within the Cosmos-Framework to enable local execution of its Cosmos 3 Nano world foundation model on consumer-grade hardware. The model, designed for physical AI development, typically requires significant VRAM for video generation, but this new implementation utilizes system RAM as a backing store for model weights.

By leveraging the Hugging Face Diffusers library, the Cosmos-Framework streaming adapter manages the transfer of transformer blocks to the GPU only when needed for computation. This approach allows users with mid-range hardware, such as an RTX 5070 or 4090, to perform complex text-to-video and image-to-video tasks that would otherwise exceed their available video memory.

Technical implementation of Cosmos-Framework offloading

  • Memory Management: The adapter implements a group offloading approach where non-active transformer blocks are stored in system RAM and transferred to the GPU via PCIe during the generation process.
  • Precision Support: The framework supports an FP8 checkpoint with native mixed precision to reduce peak VRAM usage while maintaining BF16 scaled dot-product attention (SDPA) for attention layers.
  • Multimodal Capabilities: The pipeline supports seven distinct generation modalities, including text-to-video, image-to-video, video-to-video, sound generation, action generation, and control-guided generation.
  • Hardware Requirements: While the system can run on 12 GB of VRAM, the implementation relies heavily on high-speed PCIe bandwidth and sufficient system RAM to mitigate the latency of weight transfers.

Why it matters

This development lowers the barrier to entry for developers working on physical AI and video generation by enabling high-quality model inference on standard consumer workstations. By integrating with the Hugging Face Diffusers ecosystem, NVIDIA ensures that the Cosmos 3 Nano model is accessible to the broader open-source AI community without requiring enterprise-grade H100/A100 clusters.

What to do

  • Clone the Cosmos-Framework repository and install the standalone offloading package using 'uv pip install ".[benchmarks]"' within the 'cosmos-framework/packages/diffusers-cpu-offloading' directory.
  • Download the Cosmos 3 Nano checkpoint and its FP8 branch from Hugging Face.
  • Use the 'build_pipeline' function with the 'nvidia/Cosmos3-Nano' repository ID to initialize the model for local execution.

Original reference: developer.nvidia.com →