Cosmos
nvidia
Gated model

You have been granted access to this model

Configuration Parsing Warning:Invalid JSON for config file config.json

Cosmos-Tokenize1: A suite of image and video tokenizers

Cosmos | Code | Paper | Paper Website

Model Overview

Description:

Cosmos-Tokenize1 is a suite of visual tokenizers for images and videos that delivers various compression rates while maintaining high reconstruction quality. Cosmos Tokenizer can serve as an effective and efficient building block in both diffusion-based and autoregressive models for image and video generation. The models are ready for commercial use.

Our tokenizers come in two types: Continuous (C) and Discrete (D), each with Image (I) and Video (V) variants:

  • Continuous tokenizers encode visual data into continuous latent embeddings, as shown in latent diffusion models like Stable Diffusion. These embeddings are suitable for models that generate data by sampling from continuous distributions.
  • Discrete tokenizers encode visual data into discrete latent codes, mapping them into quantized indices, as seen in autoregressive transformers such as VideoPoet. This discretization is required for models that generate data by optimizing the cross-entropy loss, such as the GPT models.
Continuous ( C ) Discrete ( D )
Images ( I ) Cosmos-Tokenize1-CI Cosmos-Tokenize1-DI
Videos ( V ) Cosmos-Tokenize1-CV Cosmos-Tokenize1-DV

Model: Cosmos-Tokenize1-CI16x16-360p, a continuous image tokenizer with 16x16 spatial compression rate.

Model Developer: NVIDIA

Model Versions

The Cosmos-Tokenize1 includes the following tokenizers:

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.

Model Architecture:

Cosmos-Tokenize1-CI16x16-360p is a lightweight and computationally efficient architecture. The encoder starts with a 1-level Haar wavelet transform layer, which down-samples inputs by a factor of 2 in both spatial dimension. Likewise, the decoder ends with an inverse wavelet transform. We employ the vanilla autoencoder (AE) formulation to model the latent space for continuous tokenizers.

image/jpeg

Input/Output Specifications

Encoder

  • Input

    • Type: Images
    • Format: RGB (Red, Green, Blue)
    • Parameters: Two-dimensional (2D)
    • Properties:
      • Resolution: Minimum: 256px (shorter side). Maximum: Up to 4K
  • Output

    • Type: Tokens
    • Format: 16-Channel Vector
    • Parameters: Two-dimensional (2D)
    • Properties:
      • Continuous-valued feature vectors with a dimensionality of 16

Decoder

  • Input

    • Type: Tokens
    • Format: 16-Channel Vector
    • Parameters: Two-dimensional (2D)
    • Properties:
      • Continuous-valued feature vectors with a dimensionality of 16
  • Output

    • Type Images (matching input type)
    • Format: RGB (Red, Green, Blue)
    • Parameters: Two-dimensional (2D)
    • Properties:
      • Resolution: Same as input resolution. The output image is a reconstruction of the input image.

Software Integration:

Runtime Engine(s):

Supported Hardware Microarchitecture Compatibility:

  • NVIDIA Ampere (e.g., A100)
  • NVIDIA Hopper (e.g., H100)

Note: We have only tested Cosmos Tokenizer with BF16 precision on Ampere and Hopper GPUs. If you are using older versions of NVIDIA GPUs (e.g., NVIDIA Volta GPUs), you may need to switch to FP32 precision.

Operating System(s):

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

Usage

Inference Engines:

Evaluation

Tokenization Comparison

We have extensively evaluated the Cosmos Tokenizer suite on various image and video benchmark datasets. For the evaluation of image tokenizers, we follow prior art to evaluate on MS-COCO 2017, ImageNet-1K, FFHQ, and CelebA-HQ. We use the MS-COCO 2017 validation subset of 5,000 images, ImageNet-1K validation subset of 50,000 images, FFHQ subset of 10,000 images, and CelebA-HQ subset of 14,645 images as image evaluation benchmark.

Tokenizer Compression Ratio Formulation PSNR (MS-COCO) SSIM (MS-COCO) rFID (MS-COCO) PSNR (ImageNet-1K) SSIM (ImageNet-1K) rFID (ImageNet-1K) PSNR (FFHQ) SSIM (FFHQ) rFID (FFHQ) PSNR (CelebA-HQ) SSIM (CelebA-HQ) rFID (CelebA-HQ)
FLUX 8×8 VAE 31.87 0.692 2.501 30.92 0.518 1.229 38.51 0.960 0.043 41.11 0.987 0.040
Cosmos-Tokenizer-CI 8×8 AE 32.98 0.836 1.760 33.12 0.837 0.689 39.67 0.957 0.042 46.47 0.988 0.016
Cosmos-Tokenizer-CI 16×16 AE 31.74 0.703 5.600 31.74 0.700 2.017 32.39 0.833 1.833 32.48 0.879 1.114
  • We compare with the state-of-the-art continuous image tokenizer, FLUX.
  • Evaluation metrics:
    • Peak Signal-to-Noise Ratio (PSNR)
    • Structural Similarity (SSIM)
    • Reconstruction Fréchet Inception Distance (rFID)

Runtime Comparison

The following table shows the number of parameters and the averaged encoding and decoding times per image or video frame, measured on a single A100 80GB GPU. For comparison, we also list the parameters and average speeds of prior state-of-the-art tokenizer(s) with the same compression ratio.

Tokenizer Resolution Compression Ratio Parameters Time (ms)
FLUX 1024x1024 8×8 84M 242
Cosmos-Tokenizer-CI 1024x1024 8×8 77M 62.7

Note: We benchmarked the runtime for images under the 8x8 compression and videos under the 4×8×8 compression. Tokenizers with different compression ratios are not included in this comparison.

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.

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: Tokenization of images and videos
Model Type: Auto-Encoder
Intended Users: Generative AI developers for image and video generation models
Output: Images/Videos and Latent Tokens
Describe how the model works: Compresses and decompresses visual input (image/video).
Technical Limitations: Due to tokenizer compression limitations, some visual information (such as small text and other structured fine details) may not be reconstructed accurately.
Verified to have met prescribed NVIDIA quality standards: Yes
Performance Metrics: Peak Signal-to-Noise Ratio (PSNR), Structural Similarity (SSIM), Reconstruction Fréchet Video Distance (rFVD), Reconstruction Fréchet Inception Distance (rFID), Latency
Potential Known Risks: Tokenizer's output can parse all forms of input, including what may be considered toxic, offensive, or indecent.
Licensing: NVIDIA Open Model License

Privacy

Field Response
Generatable or reverse engineerable personal information? No
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

Safety

Field Response
Model Application(s): Tokenization of images and videos
Describe the life critical impact (if present). None Known
Use Case Restrictions: See 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.
Downloads last month
28
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including nvidia/Cosmos-Tokenize1-CI16x16-360p

Paper for nvidia/Cosmos-Tokenize1-CI16x16-360p