18.6 GB
21 files
Updated about 2 months ago
Name
Size
scheduler
text_encoder
tokenizer
transformer
vae
.gitattributes1.52 kB
xet
README.md26.6 kB
xet
config.json70 Bytes
xet
model.pt3.91 GB
xet
model_index.json470 Bytes
xet
README.md

Cosmos-Predict2: A Suite of Diffusion-based World Foundation Models Available in 2B, and 14B

Cosmos | Code | Website

Model Overview

Description

Cosmos-Predict2: A family of highly performant pre-trained world foundation models purpose-built for generating physics-aware images, videos and world states for physical AI development.

Cosmos-Predict2 diffusion models are a collection of diffusion based world foundation models that generate dynamic, high quality images and videos from text, image, or video inputs. It can serve as the building block for various applications or research that are related to world generation. The models are ready for commercial use under NVIDIA Open Model license agreement.

Model Developer: NVIDIA

Model Versions

The Cosmos-Predict2 diffusion-based model family includes the following models:

License

This model is released under the NVIDIA Open Model License. For a custom license, please contact cosmos-license@nvidia.com.

Under the NVIDIA Open Model License, NVIDIA confirms:

  • Models are commercially usable.
  • You are free to create and distribute Derivative Models.
  • NVIDIA does not claim ownership to any outputs generated using the Models or Derivative Models.

Important Note: If you bypass, disable, reduce the efficacy of, or circumvent any technical limitation, safety guardrail or associated safety guardrail hyperparameter, encryption, security, digital rights management, or authentication mechanism contained in the Model, your rights under NVIDIA Open Model License Agreement will automatically terminate.

Deployment Geography

Global

Model Architecture

Cosmos-Predict2-2B-Text2Image is a diffusion transformer model designed for image denoising in the latent space. The network is composed of interleaved self-attention, cross-attention and feedforward layers as its building blocks. The cross-attention layers allow the model to condition on input text throughout the denoising process. Before each layer, adaptive layer normalization is applied to embed the time information for denoising.

Input/Output Specifications

  • Input

    • Input Type(s): Text
    • Input Format(s): String
    • Input Parameters: One-dimensional (1D)
    • Other Properties Related to Input:
      • The input string should contain fewer than 300 words and should provide descriptive content for world generation, such as a scene description, key objects or characters, background, and any specific actions or motions to be depicted within the 5-second duration.
  • Output

    • Output Type(s): Image
    • Output Format(s): jpg
    • Output Parameters: Two-dimensional (2D)
    • Other Properties Related to Output: By default, the generated image is with a resolution of 1280x704 pixels and RGB color. The image content visualizes the input text description, capturing key elements within the specified time constraints.

Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA's hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.

Software Integration

Runtime Engine(s):

import torch
from diffusers import Cosmos2TextToImagePipeline

# Available checkpoints: nvidia/Cosmos-Predict2-2B-Text2Image, nvidia/Cosmos-Predict2-14B-Text2Image
model_id = "nvidia/Cosmos-Predict2-2B-Text2Image"
pipe = Cosmos2TextToImagePipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
pipe.to("cuda")

prompt = "A close-up shot captures a vibrant yellow scrubber vigorously working on a grimy plate, its bristles moving in circular motions to lift stubborn grease and food residue. The dish, once covered in remnants of a hearty meal, gradually reveals its original glossy surface. Suds form and bubble around the scrubber, creating a satisfying visual of cleanliness in progress. The sound of scrubbing fills the air, accompanied by the gentle clinking of the dish against the sink. As the scrubber continues its task, the dish transforms, gleaming under the bright kitchen lights, symbolizing the triumph of cleanliness over mess."
negative_prompt = "The video captures a series of frames showing ugly scenes, static with no motion, motion blur, over-saturation, shaky footage, low resolution, grainy texture, pixelated images, poorly lit areas, underexposed and overexposed scenes, poor color balance, washed out colors, choppy sequences, jerky movements, low frame rate, artifacting, color banding, unnatural transitions, outdated special effects, fake elements, unconvincing visuals, poorly edited content, jump cuts, visual noise, and flickering. Overall, the video is of poor quality."

output = pipe(
    prompt=prompt, negative_prompt=negative_prompt, generator=torch.Generator().manual_seed(1)
).images[0]
output.save("output.png")

Supported Hardware Microarchitecture Compatibility:

  • NVIDIA Ampere
  • NVIDIA Blackwell
  • NVIDIA Hopper

Note: Only BF16 precision is tested. Other precisions like FP16 or FP32 are not officially supported.

Inference

Acceleration Engine: PyTorch, Transformer Engine

Operating System(s):

  • Linux (We have not tested on other operating systems.)

System Requirements and Performance: This model requires 26.02 GB of GPU VRAM. The following table shows inference time for a single generation across different NVIDIA GPU hardware:

GPU Hardware Inference Runtime
NVIDIA GB200 3.39 sec
NVIDIA B200 3.24 sec
NVIDIA RTX PRO 6000 Workstation Edition 5.59 sec
NVIDIA H200 SXM 9.02 sec
NVIDIA H200 NVL 6.34 sec
NVIDIA H100 PCIe 11.12 sec
NVIDIA H100 NVL 5.05 sec
NVIDIA H20 11.47 sec
NVIDIA L40S 8.9 sec
NVIDIA RTX 6000 Ada Generation 11.94 sec

Quality Benchmarks: For comparative evaluation, we present benchmark scores from the GenEval evaluation framework.

Method Overall Single Object Two Objects Counting Colors Position Color Attribution
Stable Diffusion XL 0.55 0.98 0.74 0.39 0.85 0.15 0.23
DALL-E 3 0.67 0.96 0.87 0.47 0.83 0.43 0.45
Flux 1-Dev 0.66 0.98 0.79 0.73 0.77 0.22 0.45
Cosmos-Predict2-2B-Text2Image 0.83 1.00 0.99 0.73 0.89 0.65 0.73
Cosmos-Predict2-14B-Text2Image 0.84 1.00 0.98 0.79 0.90 0.64 0.72

Usage

Limitations

Despite various improvements in world generation for Physical AI, Cosmos-Predict2 text2image models still face technical and application limitations for world prediction. In particular, they struggle to generate high-resolution images without artifacts. Common issues include camera and object motion instability, and imprecise interactions. The models may inaccurately represent 3D space, or physical laws in the generated images, leading to artifacts such as unrealistic interactions and implausible motions. As a result, applying these models for applications that require simulating physical law-grounded environments or complex multi-agent dynamics remains challenging.

Ethical Considerations

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.

Users are responsible for model inputs and outputs. Users are responsible for ensuring safe integration of this model, including implementing guardrails as well as other safety mechanisms, prior to deployment.

For more detailed information on ethical considerations for this model, please see the subcards of Explainability, Bias, Safety & Security, and Privacy below. Please report security vulnerabilities or NVIDIA AI Concerns here.

Plus Plus (++) Promise

We value you, the datasets, the diversity they represent, and what we have been entrusted with. This model and its associated data have been:

  • Verified to comply with current applicable disclosure laws, regulations, and industry standards.
  • Verified to comply with applicable privacy labeling requirements.
  • Annotated to describe the collector/source (NVIDIA or a third-party).
  • Characterized for technical limitations.
  • Reviewed to ensure proper disclosure is accessible to, maintained for, and in compliance with NVIDIA data subjects and their requests.
  • Reviewed before release.
  • Tagged for known restrictions and potential safety implications.

Bias

Field Response
Participation considerations from adversely impacted groups protected classes in model design and testing: None
Measures taken to mitigate against unwanted bias: None

Explainability

Field Response
Intended Application & Domain: World Generation
Model Type: Transformer
Intended Users: Physical AI developers
Output: Images
Describe how the model works: Generates images based on text inputs
Technical Limitations: The model may not follow the text input accurately.
Verified to have met prescribed NVIDIA quality standards: Yes
Performance Metrics: Quantitative and Qualitative Evaluation
Potential Known Risks: The model's output can generate all forms of images, including what may be considered toxic, offensive, or indecent.
Licensing: NVIDIA Open Model License

Privacy

Field Response
Generatable or reverse engineerable personal information? None Known
Protected class data used to create this model? None Known
Was consent obtained for any personal data used? None Known
How often is dataset reviewed? Before Release
Is there provenance for all datasets used in training? Yes
Does data labeling (annotation, metadata) comply with privacy laws? Yes
Is data compliant with data subject requests for data correction or removal, if such a request was made? Not Applicable
Applicable Privacy Poicy https://www.nvidia.com/en-us/about-nvidia/privacy-policy/

Safety

Field Response
Model Application(s): World Generation
Describe the life critical impact (if present). None Known
Use Case Restrictions: NVIDIA Open Model License
Model and dataset restrictions: The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to. Model checkpoints are made available on Hugging Face, and may become available on cloud providers' model catalog.
Total size
18.6 GB
Files
21
Last updated
Jul 9
Pre-warmed CDN
US EU US EU

Contributors