Data catalog / Guides / Fine-tuning Cosmos-Reason

Fine-tuning NVIDIA Cosmos-Reason on real road video

NVIDIA Cosmos-Reason is a video reasoning model: it watches a clip and explains what happens. This guide shows how a real driving event becomes fine-tuning records and reward checks for it, how to build and check them yourself, and exactly how far we have tested each step.

How far we have tested it

StepStatusWhat that means
Build the recordsPassedRan in a clean Python 3.12 container on 2026-11-27, and again for this guide on 2026-11-30, with identical checksums.
Check them the way the training loader reads themPassedSame runs: every check passes, including the answer's impact time against the car's inertial sensor.
Fine-tune Cosmos-Reason2Partly testedThe records pass the loader's checks. We have not yet run a fine-tune from this package; it needs four graphics processing units (GPUs) with 80 GB each.
NVIDIA Cosmos 3NextNVIDIA now points cosmos-reason2 users to Cosmos 3. We have not tested this dataset with it.

What a fine-tuning record holds

Each record is a conversation in the LLaVA (Large Language and Vision Assistant) format that NVIDIA's cosmos-rl supervised fine-tuning example reads: the video, a question, the reasoning and the answer. This is the published record for one real collision:

{
 "id": "newport-collision-0001",
 "video": "clip.mp4",
 "conversations": [
  {
   "from": "human",
   "value": "<video>\nWhat happens in this clip, and when?"
  },
  {
   "from": "gpt",
   "value": "<think>\nThe car is driving at about 43 mph. A white SUV pulls out from the right and turns across the car's lane.\n</think>\n\nA white SUV pulls out from the right across the car's path. The car hits its side about 5.6 s into the clip."
  }
 ]
}
Fact in the answerWhere it comes from
Impact timeMeasured: the peak of the crash pulse from the car's inertial measurement unit (IMU).
SpeedMeasured: the last Global Navigation Satellite System (GNSS) fix at or before the impact.
What happensWritten by a person who reviewed the video.

Build and check the records yourself

Download the Cosmos-Reason package from the Tested with third-party tools page, unzip it, and run its two tested steps:

roaddata-cosmos-reason

Tested 2026-11-30 · Python 3.12.14 · PyAV 19.0.2 · no GPU
pip install -r requirements.txt
python make_dataset.py sample/newport-beach --out dataset
python check_dataset.py dataset
What it printed when we ran it
collision-2026-08-03 | impact 5.6 s | speed 43 mph | A white SUV pulls out from the right across the car's path. The car hits its side about 5.6 s into the clip.
1 sample(s) -> dataset
PASS toml paths exist (fps 2)
PASS annotations.json is a list of 1 sample(s)
PASS collision-2026-08-03: video sample, user prompt has <video>, answer present
PASS collision-2026-08-03: h264 1920x1080 30 fps, 10.0 s -> 20 frames at 2 fps
PASS collision-2026-08-03: answer says impact at 5.6 s; IMU crash-pulse peak 5.6 s (2.61 g)
ALL CHECKS PASS
d3a915df5693e371ff4402091a9cd9bb6bab45ca0c227f541dcc1f43f3940148  dataset/annotations.json
273a36aa8aa3a0be5d5c97f535a3b7cc66ec3def50d69713d44b95d450212c0f  dataset/media/collision-2026-08-03.mp4

The checksums match the ones published in the package README, so you can confirm you built exactly the records we did.

Reward checks: answers the sensors can score

A reward check asks a question whose answer the car's sensors measured, so any model answer can be scored without a person. Here the IMU measured the impact, and a collision time counts as right within half a second:

score_answer.py

Tested 2026-11-30 · Python 3.15.2 · standard library only
# Score free-text answers against a RoadData.AI reward check: the sensors measured the impact, so the answer can be graded.
# usage: python score_answer.py records.json "Yes, it hits an SUV at about 5.5 s."
import json, re, sys
check = json.load(open(sys.argv[1]))["reward_check"]
measured = check["measured"]["impact_s"]                     # crash-pulse peak from the car's IMU
TOLERANCE_S = 0.5                                            # a collision time counts within half a second
for text in sys.argv[2:]:
    said_no = re.search(r"\bno\b", text, re.I) and not re.search(r"\byes\b", text, re.I)
    m = re.search(r"(\d+(?:\.\d+)?)\s*s\b", text)
    score = 0 if said_no or not m else int(abs(float(m.group(1)) - measured) <= TOLERANCE_S)
    print(f"{score}  {text}")
print(f"measured impact {measured} s ({check['measured']['source']}), tolerance {TOLERANCE_S} s")
python score_answer.py records.json "Yes, it hits an SUV at about 5.5 s." "Yes, around 8 s." "No, the car keeps its lane."
What it printed when we ran it
1  Yes, it hits an SUV at about 5.5 s.
0  Yes, around 8 s.
0  No, the car keeps its lane.
measured impact 5.6 s (IMU + GPS), tolerance 0.5 s

The record itself is records.json on the NVIDIA Cosmos and Alpamayo page.

Where Cosmos output appears in our data

  • Weather: light-snow versions of real scenes generated with NVIDIA Cosmos, labelled as generated, in the weather library. Built on NVIDIA Cosmos.
  • Scenario library: Cosmos-Reason records and one Cosmos light-snow excerpt alongside the real clips in the scenario library. Built on NVIDIA Cosmos.
  • UrbanHOI: model-proposed fields in the human-object interaction dataset are marked as such. Built on NVIDIA Cosmos.

Limits to know

  • The package holds one event. It shows the format and the method, not a training set; fine-tuning on one sample proves the pipeline runs, not that the model improves.
  • Satellite speed updates about once a second, so speed at impact can lag a sudden stop by a second or more.
  • The impact time is the peak of the crash pulse: when the car is jolted, not the first visible contact.
  • Only the description is written by a person, with no second reviewer.
  • At the pinned commit, NVIDIA's loader fails on video-only samples; the package's fine-tune script applies a one-line fix.
  • NVIDIA software and models are under NVIDIA's own licences. RoadData.AI is not affiliated with or endorsed by NVIDIA.