cosmos README

项目的 README,来自 github.com/NVIDIA/cosmos。合并为一个 markdown 文件:README.md。

NVIDIA Cosmos

NVIDIA Cosmos

World Foundation Models for Physical AI

One model family that sees, reasons, simulates, and acts.

Models Paper Website

Try it in your browser · Quickstart · Find your path · Model Family · Cookbook

Physics-aware generation: Newton's cradle Physics-aware generation
A Newton's cradle in motion: momentum transfer rendered with physical fidelity
World-scenario transfer: control layout to photoreal driving video Transfer
World-scenario control layout → photoreal driving video
Robot policy executing a manipulation task Action policy
Policy run: "put the screwdriver and the glove in the purple container"
Driving simulation for autonomous vehicles Simulation
Generate synthetic data and create simulation for autonomous driving
Forward dynamics egocentric rollout Action-conditioned World Model
Forward dynamics: egocentric rollout from input camera + hand pose
World Reasoner: dashcam hazard anticipation World reasoning
Reason in complex real-world scenarios: a rolling ball means a child or pet may follow

What's new

What is Cosmos?

NVIDIA Cosmos is an open platform for building physical AI applications, supporting industry verticals such as robotics, autonomous vehicles, smart infrastructure, manufacturing, healthcare, agriculture. The mission of Cosmos is to provide better data, better environment, better starting point, and better tooling for physical AI developers.

Cosmos 3, the current model family, is a suite of omnimodal world models built on a unified Mixture-of-Transformers architecture (technical report).

One model, two towers:

Inputs Outputs Use it for
Reasoner text, vision text world understanding, grounding, task planning, embodied reasoning
Generator text, vision, audio, action vision, audio, action world simulation, future prediction, synthetic data, policy learning

This repository is the landing repo to start your physical AI journey with Cosmos. Here you can find detailed information on Cosmos models and explore Cosmos cookbook - a set of agent runnable recipes for various objectives and industries.

The recipes are supported by the Cosmos platform, including Cosmos Framework for training infra (SFT, LoRA, RL, distillation etc.), Cosmos Curator for data curation, and Cosmos Evaluator for model output evaluation.

Find your path

I want to…Go toTime
See it work - zero installVideo generation, visual reasoning1 min
Generate my first videoQuickstart ↓10 min
Run generation/reasoning inferenceInference recipes10 min
Serve an OpenAI-compatible APIServing guide: vLLM, vLLM-Omni, or NIM30 min
Post-train on my own data: SFT, LoRA, distillPost-train and distill recipeshours
Explore agent-runnable notebooksCookbookbrowse
Evaluate a modelEvaluation suites: PAIBench, Physics-IQ, VLMEvalKithours
Check latency & throughputPerformance benchmarksbrowse

Generate your first video

Before running the code, request access to nvidia/Cosmos-1.0-Guardrail and accept its access conditions. Once access is granted, log in below with a Hugging Face read token from the same account. Logging in alone does not grant access.

uv venv --python 3.13 --seed --managed-python && source .venv/bin/activate
uv pip install --torch-backend=auto \
  "diffusers @ git+https://github.com/huggingface/diffusers.git" \
  accelerate av cosmos_guardrail huggingface_hub imageio imageio-ffmpeg \
  torch torchvision transformers
uvx hf@latest auth login   # Authenticate for the gated Guardrail repository
import torch
from diffusers import Cosmos3OmniPipeline
from diffusers.utils import export_to_video

pipe = Cosmos3OmniPipeline.from_pretrained(
    "nvidia/Cosmos3-Nano", torch_dtype=torch.bfloat16, device_map="cuda"
)
video = pipe(prompt="A mobile robot navigates a warehouse aisle and stops at a shelf.").video
export_to_video(video, "first_video.mp4", fps=24)

First run downloads the 16B checkpoint; diffusion steps are compute-heavy, so long step times are normal. Full options, image/sound modes, and every other backend: audiovisual cookbooks · setup issues: environment setup guide.

Models

Cosmos 3 ships as three base models. Every deployment tier, one omnimodal architecture:

Base model Size Runs on Best for
Cosmos3-Super 64B H200 / B200 / GB200 Highest quality; synthetic data generation; teacher for distillation
Cosmos3-Nano 16B RTX Pro 6000 / H100 / B200 Balanced speed and quality; strong base model to post-train
Cosmos3-Edge 4B Jetson AGX Orin / Thor / RTX Pro 6000 Edge deployment; real-time robot policy and visual reasoning

Published static FP8 checkpoints: Cosmos3-Nano-FP8 and Cosmos3-Super-FP8. FP8 reduces weight storage; activation precision depends on the serving backend and exported runtime policy. See the cookbook for local export and serving, including Super base and distilled T2I/I2V.

Example checkpoints in the cosmos3-examples collection are post-trained variants of the base models. They demonstrate what post-training with Cosmos Framework can specialize Cosmos for.

Example checkpoint Base Demonstrates
Cosmos3-Nano-Sim-Auto New Nano Closed-loop driving simulation - multi-view + LiDAR
Cosmos3-Nano-Transfer-Auto New Nano Multi-view driving SDG - up to 11 views + LiDAR
Cosmos3-Nano-Sim-Bimanual New Nano Closed-loop interactive robot policy simulation
Cosmos3-Nano-Sim-Transfer New Nano Auto-regressive transfer - depth, segmentation, edge, blur
Cosmos3-Super-Text2Image Super Elite quality text-to-image
Cosmos3-Super-Text2Image-4Step Super Elite quality text-to-image, 17-25x faster
Cosmos3-Super-Image2Video Super Elite quality image-to-video
Cosmos3-Super-Image2Video-4Step Super Elite quality image-to-video, 17-25x faster
Cosmos3-Nano-Policy-DROID Nano Open SOTA DROID robot policy, runs on RTX Pro 6000
Cosmos3-Edge-Policy-DROID Edge DROID robot policy at edge-deployable scale

Full I/O specs, generation settings, and supported action embodiments: model reference.

Platform

Project Purpose
Cosmos This repo
Cosmos Framework Train, optimize, and deploy physical AI models, SFT · LoRA · distillation · RL post-training, for Cosmos and beyond
Cosmos Curator Distributed data curation: processing, annotation, filtering, dedup
Cosmos Evaluator Automated evaluation system for world generation & reasoning outputs

Cosmos 3 runs on Diffusers, Transformers, vLLM, vLLM-Omni, SGLang, TensorRT-LLM, and NIM. Pick a backend in the environment setup guide.

Community & contributing

Questions and ideas → Discussions. Bugs → Issues. Code and recipes → Cosmos Framework.

Limitations & safety

Cosmos 3 can produce artifacts in long, high-resolution, or physically complex outputs (temporal inconsistency, object morphing, implausible dynamics). Safety-critical applications need additional validation and system-level safety analysis. Generation ships with guardrails on by default.

Citation & license

@techreport{nvidia2026cosmos3,
  title  = {Cosmos 3: Omnimodal World Models for physical AI},
  author = {{NVIDIA Cosmos Team}},
  year   = {2026},
  url    = {https://research.nvidia.com/labs/cosmos-lab/cosmos3/technical-report.pdf}
}

Source code and models are released under OpenMDW-1.1. Custom licensing: [email protected]. This project may download third-party open source software; review those licenses before use.

cosmos (NVIDIA/cosmos)

正在搜索数据库…

12.5K ·GitHub
这是什么?NVIDIA Cosmos 是一个开放平台,包含世界模型、数据集和工具,用于构建 Physical AI(物理 AI),即理解并生成物理世界的系统,应用于机器人、自动驾驶汽车和智能基础设施。
这是一个模型,还是一组角色不同的模型系列?这是一组全模态世界模型(Cosmos 3),共用同一种 Mixture-of-Transformers 架构,提供两个运行时接口:Reasoner 将文本或视觉输入转为文本,Generator 将文本、视觉、声音或动作输入转为视觉、声音和动作。
我该如何运行推理?先创建 Hugging Face 访问令牌并在本地完成认证,然后选择一种集成方式:用于 Python 研究的 Diffusers 或 Transformers,用于兼容 OpenAI 接口服务的 vLLM-Omni、vLLM、TensorRT-LLM 或 SGLang,或用于开箱即用部署的 NIM 容器。
我需要 Hugging Face 账号或 NGC API 密钥吗?大多数方式需要一个 Hugging Face 令牌,并且 Generator 需要获得 nvidia/Cosmos-1.0-Guardrail 仓库的受限访问权限;基于 NIM 的示例则改用 NGC API 密钥。
它能在任何 GPU 上运行,还是需要特定硬件?它仅能在搭载 NVIDIA Ampere、Hopper 或 Blackwell GPU 的 Linux 系统上运行;4B Edge 模型面向 Jetson 类设备,而 64B 模型需要 H200、B200、GB200 等数据中心 GPU。
Guardrail 是什么?能关闭它吗?Guardrail 是 Generator 必需的安全检查器,需要通过 nvidia/Cosmos-1.0-Guardrail Hugging Face 仓库获得访问权限。可以根据所用集成,通过 enable_safety_checker=False、--no-guardrails 或 guardrails: false 等参数关闭。
Generator 能生成哪些分辨率和视频时长?Generator 支持 256p、480p、720p,帧率为 10–30 FPS,帧数为 5 至 300 帧(默认 480p、24 FPS、189 帧,约 7.9 秒);Edge 模型仅限 256p 和 480p,帧数为 50–150 帧。
模型可以基于哪些类型的动作进行条件控制?动作输入包括相机运动和自动驾驶车辆控制(各为 9 维)、第一人称运动(57 维)、单臂机器人(10 维,例如 DROID、UR、Fractal、Bridge、UMI)、双臂机器人(20 维)以及人形机器人(29 维,AgiBot)。
作者
NVIDIA
大小
295.7 MB
星标
12.5K
时长
1年
提交 · 90 天