cosmos3-setup
bởi nvidia
Hướng dẫn người dùng qua quá trình cài đặt Cosmos3, thiết lập môi trường, tải xuống checkpoint và xác minh. Sử dụng khi người dùng hỏi "cách cài đặt cosmos3", "cách…
npx skills add https://github.com/nvidia/cosmos-framework --skill cosmos3-setupCosmos3 Setup
When to use this skill
- Use when a user wants to install Cosmos3 or set up a development environment
- Use when a user asks about system requirements, CUDA versions, or GPU compatibility
- Use when a user needs to download model checkpoints or configure HuggingFace auth
- Use when a user wants to run Cosmos3 inside a Docker container or NGC container
- For errors during setup, hand off to the cosmos3-env-troubleshoot skill
Path convention
All paths below are relative to the cosmos3 package root (../../../ from this skill file). All uv run / python commands should also be run from there.
Where to find answers
The canonical setup reference is docs/setup.md. The README (README.md § Setup) has the shortest quickstart.
| User question | Go to |
|---|---|
| What are the system requirements? | docs/setup.md § System Requirements |
| How do I install with uv? (sync, pip venv, pip system) | docs/setup.md § Virtual Environment |
| How do I install with Docker? | docs/setup.md § Docker Container |
| Custom torch/CUDA versions or attention backends? | docs/setup.md § Advanced |
| Which CUDA version? (cu130 vs cu128) | docs/setup.md § CUDA Variants, docs/faq.md § Which CUDA version? |
| How do I download checkpoints? | docs/setup.md § Downloading Base Checkpoints |
| NGC container issues? | docs/setup.md § PyTorch Import Issue |
| Any installation error | ../cosmos3-env-troubleshoot/SKILL.md |
Setup steps at a glance
- Clone the repository and
cdinto the project root (the directory containingpyproject.toml) - System deps:
sudo apt-get install -y --no-install-recommends curl ffmpeg git-lfs libgl1 libglib2.0-0 libx11-dev tree wget - Install uv:
curl -LsSf https://astral.sh/uv/0.11.29/install.sh | env UV_INSTALL_DIR="$HOME/.local/bin" sh; export PATH="$HOME/.local/bin:$PATH". Verifyuv --versionmatchestool.uv.required-version; update an existing installation withuv self update 0.11.29. - Install package:
uv sync --locked --all-extras --group=cu130-train && source .venv/bin/activate(usecu128-trainon older drivers without a supported CUDA 13 compatibility setup; the inference-onlycu130/cu128groups omit the training extras) - Checkpoints: auto-downloaded during inference; requires HuggingFace auth (see docs)
- Verify: follow
docs/setup.md§ Verify the GPU and media runtime. Check CUDA initialization and actual video decoding, not just package imports.
Things not obvious from the docs
- NGC container caveat: inherited libraries can conflict with PyTorch, but clearing
LD_LIBRARY_PATHcan also remove required CUDA compatibility libraries. Follow the setup guide's conditional troubleshooting instead of clearing it automatically. - CUDA compatibility: compare the host driver with the selected CUDA build's requirements.
nvidia-smireports driver capability, not the installed toolkit; its CUDA version need not equaltorch.version.cuda. HF_HOME: controls where checkpoints are cached (default:~/.cache/huggingface). Set this if disk space is tight or you want a shared cache.- Conflicting env vars: stale
HF_TOKENorHUGGING_FACE_HUB_TOKENenv vars can silently override CLI auth. Check withprintenv | grep HF_. - AutoML is a separate source install:
uv sync --all-extrasdoes not install the core engine. For AutoML setup, followdocs/automl.md#installation-from-sourceand thecosmos-automlskill: ask whether to useNVIDIA-TAO/tao-automl'smainbranch or a user-selected development branch before a new installation. Keep the recorded source revision for existing experiments; do not upgrade on resume.
Related skills
| Skill | When to use |
|---|---|
../cosmos3-inference/SKILL.md | Running inference after setup is complete |
../cosmos3-codebase-nav/SKILL.md | Finding files, parameters, and configs in code |
../cosmos3-env-troubleshoot/SKILL.md | Debugging environment and runtime errors |