Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cosmos-predict2

> 编程语言
Open source

Cosmos-Predict2 is a collection of general-purpose world foundation models for Physical AI that can be fine-tuned into customized world models for downstream ap

793 stars0 likes2 views
WebsiteGitHub

About

Cosmos-Predict2 is a collection of general-purpose world foundation models for Physical AI that can be fine-tuned into customized world models for downstream ap

Update Notice

The latest version of our Cosmos-Predict is now live!

Cosmos-Predict2.5

We recommend all users migrate to the new version for improved performance, features, and continued support.

Paper (coming soon!) | Website | Hugging Face | PyPI

Cosmos-Predict2 is a key branch of the Cosmos World Foundation Models (WFMs) ecosystem for Physical AI, specializing in future state prediction through advanced world modeling. It offers two powerful capabilities: text-to-image generation for creating high-quality images from text descriptions, and video-to-world generation for producing visual simulations from video inputs.

We visualize the architecture of Cosmos-Predict2 in the following figure.

News

  • 2025-08-22: Cosmos-Predict2 is now available on PyPI! See Getting Started for usage.
  • 2025-08-21: Cosmos-Predict2 now has pre-built dependencies! See Setup Guide.
  • 2025-08-15: We released the 0.6B Text2Image model with fast tokenizer support!
  • 2025-07-10: We released Predict2 + NATTEN, bringing up to 2.6X end-to-end inference speedup with sparse attention (Video).
  • 2025-06-11: We released post-training and inference code, along with model weights. For a code walkthrough, please see this video.

Models

  • Cosmos-Predict2-0.6B-Text2Image: Text-to-image generation
  • Cosmos-Predict2-2B-Text2Image: Text-to-image generation
  • Cosmos-Predict2-14B-Text2Image: Text-to-image generation
  • Cosmos-Predict2-2B-Video2World: Video + Text based future visual world generation
  • Cosmos-Predict2-14B-Video2World: Video + Text based future visual world generation
  • Cosmos-Predict2-14B-Sample-GR00T-Dreams-GR1: Video + Text based future visual world generation, post-trained on GR00T Dreams GR1 dataset
  • Cosmos-Predict2-14B-Sample-GR00T-Dreams-DROID: Video + Text based future visual world generation, post-trained on GR00T Dreams DROID dataset
  • Cosmos-Predict2-2B-Sample-Action-Conditioned: Video + Action based future visual world generation, post-trained on Bridge dataset

Getting Started

System Requirements:

  • NVIDIA GPUs with Ampere architecture (RTX 30 Series, A100) or newer
  • NVIDIA driver compatible with CUDA 12.6
  • Linux x86-64
  • glibc>=2.31 (e.g Ubuntu >=22.04)
  • Python 3.10

We HIGHLY recommend using uv.

bash
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

Cosmos-Predict2 can be installed with pip (requires python==3.10):

bash
uv venv --python 3.10 --allow-existing
uv pip install -U "cosmos-predict2[cu126]" --extra-index-url https://nvidia-cosmos.github.io/cosmos-dependencies/cu126_torch260/simple

Example Project

To run the repository examples below, please follow the Setup Guide

Diffusers

Cosmos-Predict2 is included in diffusers>=0.34.0.

Run example inference scripts:

  • Text2Image

    bash
    ./scripts/hf_text2image.py output/hf_text2image --prompt "assets/text2image/example_prompt.txt" -v
  • Video2World

    bash
    ./scripts/hf_video2world.py output/hf_video2world --prompt "assets/video2world/example_prompt.txt" --image "assets/video2world/example_input.jpg" -v

Quick Start

Here is a quick example demonstrating how to use Cosmos-Predict2-2B-Video2World for video generation:

…

Input prompt:

A high-definition video captures the precision of robotic welding in an industrial setting. The first frame showcases a robotic arm, equipped with a welding torch, positioned over a large metal structure. The welding process is in full swing, with bright sparks and intense light illuminating the scene, creating a vivid display of blue and white hues. A significant amount of smoke billows around the welding area, partially obscuring the view but emphasizing the heat and activity. The background reveals parts of the workshop environment, including a ventilation system and various pieces of machinery, indicating a busy and functional industrial workspace. As the video progresses, the robotic arm maintains its steady position, continuing the welding process and moving to its left. The welding torch consistently emits sparks and light, and the smoke continues to rise, diffusing slightly as it moves upward. The metal surface beneath the torch shows ongoing signs of heating and melting. The scene retains its industrial ambiance, with the welding sparks and smoke dominating the visual field, underscoring the ongoing nature of the welding operation.

Input image Output video

User Guide

Our setup guide provides complete information on

  • System requirements: Detailed hardware and software prerequisites
  • Installation: Step-by-step setup with both Conda and Docker options
  • Downloading checkpoints: Instructions for obtaining model weights
  • Troubleshooting: Solutions for common installation and CUDA compatibility issues

For inference examples and usage

  • Text2Image Inference: Guide for generating high-quality images from text prompts
  • Video2World Inference: Guide for generating videos from images/videos with text prompts, including:
    • Single and batch processing
    • Multi-frame conditioning
    • Multi-GPU inference for faster generation
    • Using the prompt refiner
    • Rejection sampling for quality improvement
  • Text2World Inference: Guide for generating videos directly from text prompts, including:
    • Single and batch processing
    • Multi-GPU inference for faster generation

For post-training customization

  • Video2World Post-training guide: General guide to the video2world training system in the codebase.
  • Video2World Post-training on Cosmos-NeMo-Assets: Case study for post-training on Cosmos-NeMo-Assets data
  • Video2World Post-training on fisheye-view AgiBotWorld-Alpha dataset: Case study for post-training on fisheye-view robot videos from AgiBotWorld-Alpha dataset.
  • Video2World Post-training on GR00T Dreams GR1 and DROID datasets: Case study for post-training on GR00T Dreams GR1 and DROID datasets.
  • Video2World Action-conditioned Post-training on Bridge dataset: Case study for action-conditioned post-training on Bridge dataset.
  • Text2Image Post-training guide: General guide to the text2image training system in the codebase.
  • Text2Image Post-training on Cosmos-NeMo-Assets: Case study for post-training on Cosmos-NeMo-Assets image data.

Our performance guide includes

  • Hardware requirements: Recommended GPU configurations and memory requirements
  • Performance benchmarks: Detailed speed and quality comparisons across different GPU architectures
  • Model selection guide: Practical advice for choosing between 2B and 14B variants based on your needs

Contributing

We thrive on community collaboration! NVIDIA-Cosmos wouldn't be where it is without contributions from developers like you. Check out our Contributing Guide to get started, and share your feedback through issues.

Big thanks to everyone helping us push the boundaries of open-source physical AI!


License and Contact

This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use.

This model includes safety and content moderation features powered by Llama Guard 3. Llama Guard 3 is used solely as a content input filter and is subject to its own license.

NVIDIA Cosmos source code is released under the Apache 2 License.

NVIDIA Cosmos models are released under the NVIDIA Open Model License. For a custom license, please contact [email protected].

Issues· 20 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言