# How to Run NVIDIA Cosmos Predict 2.5 Locally on a DGX Spark (Honest Test)

> A DGX Spark recipe by Greg Alton: I ran NVIDIA's official Cosmos Predict 2.5 robot-pouring example locally, with guardrails on. It's coherent physical-AI video, not storytelling.

Level: Advanced
Tool: DGX Spark
Category: Building
Time: About 35 minutes
Checked: 2026-11-25
Tools: [cosmos-predict2.5 (official NVIDIA repo)](https://github.com/nvidia-cosmos/cosmos-predict2.5), [Cosmos-Predict2.5-2B on Hugging Face](https://huggingface.co/nvidia/Cosmos-Predict2.5-2B), [Cosmos-Guardrail1 on Hugging Face](https://huggingface.co/nvidia/Cosmos-Guardrail1), [NVIDIA DGX Spark playbooks](https://build.nvidia.com/spark), [uv](https://docs.astral.sh/uv/)
HTML page: https://easyaihowtos.com/guides/how-to-run-nvidia-cosmos-predict-2-5-locally-on-a-dgx-spark

AI engineering is just process engineering. *— [Greg Alton](https://www.linkedin.com/in/greg-alton-ios)*

I wanted a local way to turn a prompt, or a short clip, into a short AI video on my DGX Spark, without sending the work to a cloud generator. I ran NVIDIA's official **Cosmos Predict 2.5** example from the [cosmos-predict2.5](https://github.com/nvidia-cosmos/cosmos-predict2.5) repo: **video-to-world** on the shipped `assets/base/robot_pouring` clip, using the default **2B post-trained** model, with the safety guardrails left on.

The result is a coherent physical-AI scene. Both robot arms hold, the handoff from the official input is clean, and the motion is modest: it keeps pouring. That's much better than my earlier character and dance tests, which were weak on choreographed action. Cosmos is aimed at physical-AI scenes rather than storytelling.

For what that result means for robotics, see [What NVIDIA Cosmos Means for Robotics (Tested on a DGX Spark)](/guides/what-nvidia-cosmos-means-for-robotics-tested-on-a-dgx-spark).

On this run, the clip took **34 min 56 s** wall clock, including **30 min 29 s** of denoising at about **50.82 seconds per step**. Peak process memory was **21.6 GiB**, and system memory peaked at **62 GiB**, so stop other large models first. Here's the setup, the gotchas, and the clip. **Tested on my DGX Spark, November 25, 2026.**

Built on NVIDIA Cosmos.

**Hiccups I actually hit**

- The first attempt failed in 48 seconds: `nvidia/Cosmos-Guardrail1` is a separate gated repo, and accepting the Predict 2.5 license is not enough. You have to accept the Guardrail1 license too.
- A download of `Qwen/Qwen3Guard-Gen-0.6B` hung in the Hugging Face xet client until I set `HF_HUB_DISABLE_XET=1`. That only changes the download backend. It does not turn the guardrails off.
- The prompt JSON asked for 77 output frames; the runner wrote a 93-frame clip, the same length as the input.
- `nvidia-smi` does not report used memory on this GB10. I had to use `/usr/bin/time` and `free`.
- The official DGX Spark ComfyUI playbook is still Cosmos-Predict2 (2.0), not 2.5.

Built on NVIDIA Cosmos.

## What you need

- An NVIDIA DGX Spark (GB10, 128 GB unified memory, aarch64, CUDA 13). I ran this on driver 580.142.
- A Hugging Face account, with the NVIDIA Open Model License accepted for both nvidia/Cosmos-Predict2.5-2B and nvidia/Cosmos-Guardrail1, and an access token
- uv, git, git-lfs, and ffmpeg. On my Spark, those were already present except uv, which I installed once.
- Time and memory: the official robot-pouring example took 34 min 56 s wall clock, including 30 min 29 s of denoising at about 50.82 seconds per step. Peak process memory was 21.6 GiB, and system memory peaked at 62 GiB, so stop other large models first.
- Disk for the 2B checkpoint, the Cosmos-Reason1 text encoder, the Guardrail models, and Qwen3Guard-Gen-0.6B (that last file alone is about 1.5 GB). I did not record an exact total download size.

## Steps

### 1. Use the 2B post-trained model, not 14B, and not the ComfyUI 2.0 path

I wanted a local way to make short AI videos on a DGX Spark, without sending footage to a cloud generator. The model I used is **NVIDIA Cosmos Predict 2.5, 2B post-trained**. That's the default in the official repo, and it's the largest Predict 2.5 variant that fits a 128 GB Spark. The documented robot-pouring command does not need a `--model` override.

A few terms, once:

- **Video-to-world** starts from a short input video (and a prompt) and writes a continuation. The runner conditions on the last frames of the input so the join stays tight.
- **Text-to-world** starts from a text prompt and writes frames.
- **Image-to-world** starts from a still (and a prompt) and writes the following frames.
- **Post-trained** means this 2B checkpoint is the one NVIDIA released after extra training, not a smaller research draft. There is no NVFP4 or FP8 checkpoint for Predict 2.5 2B in the official model family, so this is the BF16/FP32-class checkpoint.

Do not run the **14B** Text2World or Image2World model on a Spark. I did not try 14B in this test. Published tests on the same 128 GB class of machine loaded the 14B weights (about 51 GB) and then hung the whole system when inference activations overflowed the shared CPU and GPU memory pool, including with `--offload-diffusion-model`.

Also, don't expect the official NVIDIA DGX Spark ComfyUI playbook to give you 2.5. That playbook includes Cosmos-Predict2 (2.0) Video2World, and ComfyUI's native Cosmos nodes on this Spark are also the 2.0 path. For Predict 2.5, use NVIDIA's own repo: [github.com/nvidia-cosmos/cosmos-predict2.5](https://github.com/nvidia-cosmos/cosmos-predict2.5).

The repo's 25 November 2025 release added Blackwell and ARM inference support. I did not install or test Wan 2.2 or LTX, so I can't compare them.

### 2. Install the official repo with uv sync --extra=cu130

Work in a new folder in your home directory. The commands below use `~/video_gen_poc`. Adjust the path if you like, and keep it out of anything you would not want published.

```bash
# uv (once)
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

mkdir -p ~/video_gen_poc/{inputs,outputs,logs}
cd ~/video_gen_poc
git clone --depth 1 https://github.com/nvidia-cosmos/cosmos-predict2.5.git
cd cosmos-predict2.5
uv sync --extra=cu130    # required on DGX Spark / CUDA 13
source .venv/bin/activate
```

`uv sync --extra=cu130` installed aarch64 wheels for `transformer-engine`, `flash-attn`, `natten`, and `xformers`. I did not have to build those wheels by hand.

After the sync, on 24 November 2026, the project virtual environment had:

- Python 3.13.18
- `torch==2.9.1+cu130`, with CUDA visible and the device name NVIDIA GB10
- `transformer-engine==2.8+cu130.torch29`, `flash-attn`, `natten`, and `xformers==0.0.33+cu130.torch29`, all of which imported

PyTorch printed a capability warning: GB10 is SM 12.1, and this torch build officially lists 8.0 through 12.0. The install still saw the GPU. I didn't hit a kernel failure on the official example, but that warning is worth watching.

### 3. Accept both Hugging Face licenses, including Cosmos-Guardrail1

`nvidia/Cosmos-Predict2.5-2B` is gated. Sign in to Hugging Face, open [huggingface.co/nvidia/Cosmos-Predict2.5-2B](https://huggingface.co/nvidia/Cosmos-Predict2.5-2B), and accept the NVIDIA Open Model License. Also accept it on any companion repos the runner pulls, including **Cosmos-Reason1** (the text encoder).

You must also accept the license for **nvidia/Cosmos-Guardrail1** separately, at [huggingface.co/nvidia/Cosmos-Guardrail1](https://huggingface.co/nvidia/Cosmos-Guardrail1). My first official-example run failed in 48 seconds (47.62 s) with:

```
Access denied. Model 'nvidia/Cosmos-Guardrail1' requires approval.
```

After I accepted that license in the browser, the Guardrail1 files downloaded. Accepting the Predict 2.5 license alone is not enough.

Set `HF_TOKEN` to a Hugging Face access token that can read gated repos. Do not echo the token, and do not put it in a prompt file you might share.

Leave the safety guardrails on, as required by the NVIDIA Open Model License.

### 4. Run NVIDIA's official robot-pouring example, with guardrails on

This is the lead documented inference command from the official Cosmos Predict 2.5 repo: **video-to-world** on the shipped `assets/base/robot_pouring` example, using the default 2B post-trained model. I left the safety guardrails on.

Stop other large models first so you have enough free memory. After I did that on my Spark, about 117 GiB was available, with about 4.3 GiB already in use.

One download gotcha: on my second attempt, the public `Qwen/Qwen3Guard-Gen-0.6B` weights (`model.safetensors`, about 1.5 GB) hung in the Hugging Face xet client, which left a sparse, corrupt incomplete file and then stalled with no further progress. That was not a license gate. I stopped the hung download, discarded the incomplete file, set `HF_HUB_DISABLE_XET=1`, and the same file re-downloaded in 23 seconds. That environment variable only changes the download backend. It does not turn the guardrails off.

From the repo folder:

```bash
export PATH="$HOME/.local/bin:$PATH"
export PYTHONUNBUFFERED=1
export PYTORCH_ALLOC_CONF=expandable_segments:True
export HF_HUB_DISABLE_XET=1
# export HF_TOKEN from your Hugging Face token; never echo it

cd ~/video_gen_poc/cosmos-predict2.5
source .venv/bin/activate

/usr/bin/time -v python examples/inference.py \
  -i assets/base/robot_pouring.json \
  -o ~/video_gen_poc/outputs \
  --inference-type=video2world
```

I left the runner defaults alone. The run used seed 0, guidance 7, and 35 steps (36 sampler iterations). The prompt JSON asked for 77 output frames; the runner still wrote a 93-frame clip, the same length as the input: 1280×704, 16 fps, 5.8125 s. It conditioned on the last 5 frames of the input and padded to 93.

`nvidia-smi` does not report used memory on this GB10, so I read peak process memory from `/usr/bin/time` and watched overall use with `free`. On this successful run:

| Measure | Result, guardrails on |
|---|---|
| Wall clock | 34 min 56 s (34:55.89) |
| Denoising | 36 of 36 iterations in 30 min 29 s, about 50.82 seconds per step |
| Peak process RSS | 21.6 GiB (22,665,100 kB) |
| System memory | started at 4.3 GiB used / 117 GiB available; peaked at 62 GiB used early in generation; later steps sat around 40 GiB |
| Output | 1280×704, 93 frames, 16 fps, 5.8125 s, 342 KB, H.264 |

The prompt guardrail passed (blocklist, then Qwen3Guard). The video guardrail classified all 93 frames Safe. A face-blur filter also ran for about 20 seconds; this scene has no human faces, no detections were reported, and the frames show no blurred regions. Nothing was blocked or blurred.

There is still comfortable headroom on a 128 GB Spark if other large models are stopped first. Plan on about 35 minutes for this 5.8 second official example.

### 5. Judge the official example honestly

The official input already shows a white-and-black robot arm approaching a glass and starting to pour from a light-green pitcher, with a jar on the left and a second, idle arm on the right. The model used the last 5 input frames as the video-to-world condition. Output frame 0 is nearly identical to the last input frame, so the temporal join is clean.

[Watch the 5.8-second side-by-side: official input on the left, the Cosmos continuation on the right (MP4)](/guide-media/cosmos-robot-pouring/robot-pouring-sxs.mp4)

[Watch the 5.8-second continuation on its own (MP4)](/guide-media/cosmos-robot-pouring/robot-pouring-output.mp4)

![Side by side, last official input frame and first Cosmos frame: the join is nearly identical](/guide-media/cosmos-robot-pouring/sxs-handoff.jpg)

Scene identity holds for the full 5.81 seconds. Both arms, the jar, the spoon, the lamp, the flowers, and the couch stay put and recognizable. There is a visible pour: a stream from the spout, a slightly deeper pitcher tilt, and a modest rise in the fill level. Shadows and table reflections stay plausible.

![Mid clip, side by side: the continuation keeps both arms in place and keeps pouring, with a slightly deeper tilt](/guide-media/cosmos-robot-pouring/sxs-mid.jpg)

The motion in the continuation is modest. The dramatic approach already happened in the official input; this clip is mostly "keep pouring," not a pour from scratch. The pitcher never clearly finishes and rights itself the way the prompt describes. The liquid stream is a bit stringy, and because the glass is already fairly full at the end of the input, the fill-level change is small. The saved output is also much more compressed than the official input (342 KB versus 5.1 MB at the same resolution and length), so it looks a bit softer.

![Last frame of the continuation: the arm is still pouring, with a slightly higher fill in the glass](/guide-media/cosmos-robot-pouring/output-last.jpg)

That's a fair official Spark demo. It shows the documented robot-pouring command, with guardrails on, running end-to-end on the Spark. It is much better than my earlier character and dance tests, which were weak on choreographed action. Cosmos is aimed at physical-AI scenes rather than storytelling.

### 6. What worked, what didn't, and who should use it

**What worked**

- Predict 2.5 2B post-trained installs and runs locally on a DGX Spark with the official repo and `uv sync --extra=cu130`. The aarch64 wheels work. You do not have to build them by hand.
- NVIDIA's official robot-pouring video-to-world example runs with the safety guardrails left on. The prompt and all 93 output frames passed, and nothing was blocked or blurred.
- For this physical-AI scene, the result is coherent: both arms hold, the handoff from the input is clean, and the pour continues for the full 5.81 seconds.
- The timing and memory on this run, with guardrails on, were 34 min 56 s wall clock, 30 min 29 s of denoising at about 50.82 seconds per step, 21.6 GiB peak process RSS, and a 62 GiB system-memory peak. There is still headroom on a 128 GB Spark if other large models are stopped first.

**What didn't**

- The continuation's motion is modest. It keeps pouring; it does not finish the pour or right the pitcher the way the prompt describes.
- The liquid stream is a bit stringy, and the fill-level change is small.
- It is still slow for a content pipeline: about 35 minutes for 5.8 seconds of video.
- The 14B model is not an option on this box, and ComfyUI on the Spark is still the 2.0 path.
- My earlier character and dance tests were weak on choreographed action. Cosmos is aimed at physical-AI scenes rather than storytelling.

**Who should use it**

Use this if you have a DGX Spark, you want video to stay on your own machine, and you're generating physical-AI or robotics-style scenes, especially a short continuation from a real input clip.

Skip it, or treat it only as a first pass, if you need storytelling, choreographed character action, or a fast turnaround. For those jobs, this 2B model on a Spark is the wrong tool.

## Tips

- Accept the NVIDIA Open Model License for both nvidia/Cosmos-Predict2.5-2B and nvidia/Cosmos-Guardrail1 before the first run. My first official-example attempt failed in 48 seconds because I had not accepted the Guardrail1 license yet. The Predict 2.5 license alone is not enough.
- If a Hugging Face download of Qwen/Qwen3Guard-Gen-0.6B hangs or leaves a corrupt incomplete file, set HF_HUB_DISABLE_XET=1 and retry. On my Spark the same 1.5 GB file then downloaded in 23 seconds. That variable only changes the download backend; it does not turn the guardrails off.
- Leave the safety guardrails on, as required by the NVIDIA Open Model License. Plan on about 35 minutes for the official 5.8 second robot-pouring example: 34 min 56 s wall clock, including 30 min 29 s of denoising at about 50.82 seconds per step. Peak process memory was 21.6 GiB, and system memory peaked at 62 GiB, so stop other large models first.
- nvidia-smi does not report used memory on this GB10. Use /usr/bin/time and free. Also check the output length: the prompt JSON asked for 77 frames, and the runner wrote a 93-frame clip, the same length as the input.

## FAQ

### Does NVIDIA Cosmos Predict 2.5 run locally on a DGX Spark?

Yes, the 2B post-trained model does, with the safety guardrails left on. I installed NVIDIA's official cosmos-predict2.5 repo with uv sync --extra=cu130, and the aarch64 wheels for transformer-engine, flash-attn, natten, and xformers installed without a manual build. I then ran NVIDIA's documented robot-pouring video-to-world example. It took 34 min 56 s wall clock, including 30 min 29 s of denoising at about 50.82 seconds per step, with 21.6 GiB peak process memory and a 62 GiB system-memory peak. The 14B model is not a fit: published tests on the same 128 GB class of machine hung the system after loading the weights.

### Is it good enough for storytelling or a finished Short?

For a physical-AI scene, the official robot-pouring example is coherent: both arms hold, the handoff from the input is clean, and the pour continues, though the motion is modest. My earlier character and dance tests were weak on choreographed action. Cosmos is aimed at physical-AI scenes rather than storytelling. I would not pick this model for a character-driven Short.

### Can I do this in ComfyUI on the Spark?

Not for Predict 2.5, at least not on the path I have. The official NVIDIA DGX Spark ComfyUI playbook includes Cosmos-Predict2 (2.0) Video2World, and ComfyUI's native Cosmos nodes on this Spark are also the 2.0 path. I used NVIDIA's cosmos-predict2.5 repo instead.

### How much memory and time should I plan for, with guardrails on?

For the official 5.8 second robot-pouring example, plan on about 35 minutes: 34 min 56 s wall clock, including 30 min 29 s of denoising at about 50.82 seconds per step. Peak process memory was 21.6 GiB (22,665,100 kB). System memory started at 4.3 GiB used with 117 GiB available, peaked at 62 GiB used early in generation, and sat around 40 GiB during later steps. Stop other large models first. nvidia-smi does not report used memory on this GB10.

---

This guide is from Easy AI How-To (https://easyaihowtos.com). It is independent of the tools named above. Screens and free-plan limits change, so check the date before you rely on a button name.
