Reasoner prompt guide
Add reasoner prompt guide.
Looks good to me, aligned with what was discussed in the call 6/4 with Yue.
LGTM!
Asked PM/Marketing to review in the Slack thread: https://nvidia.slack.com/archives/C07SC7AFW7Q/p1780680867522339?thread_ts=1780169407.465479&cid=C07SC7AFW7Q
@alex Sotelo said will review the PR today.
Codex found a few errors, summarizing here:
-
line 491 and line 539 ask for trajectory coordinates in “pixel space,” but the guide earlier says points use normalized 0-1000 coordinates. The examples also look normalized. This will make users draw/convert trajectories incorrectly. Change “pixel space” to “normalized 0-1000 coordinate space.”
-
Line 158 (line 158) says “For each detected event, you must determine:” and then never lists what to determine. Also, this example has no model answer.
-
Line 271 (line 271) only has the prompt example, but no model answer.
-
nvidia/cosmos3-nano-reasoner was not listed in the NGC catalog. There is nvidia/cosmos-reason2-8b though.
I had Claude run through the entire guide. Everything works as expected! The only minor thing it flagged is that in the robot_planning example, it may be better if the prompt had specified the answer format, because it received json output rather than a plain text list.
Addressing @yaoxu-crypto's comments:
I had Claude run through the entire guide. Everything works as expected! The only minor thing it flagged is that in the robot_planning example, it may be better if the prompt had specified the answer format, because it received json output rather than a plain text list.
The current format should be good? Two tasks refer to robot_planning.png in the prompt guide.
Robot Planning expected a list of subtask in plain text.
Trajectory Coordinates expected a json output and the requirement is in the user prompt.
- line 491 and line 539 ask for trajectory coordinates in “pixel space,” but the guide earlier says points use normalized 0-1000 coordinates. The examples also look normalized. This will make users draw/convert trajectories incorrectly. Change “pixel space” to “normalized 0-1000 coordinate space.”
pixel space always refers to a normalized space in training data. The prompt aligns with training data format.
- Line 158 (line 158) says “For each detected event, you must determine:” and then never lists what to determine. Also, this example has no model answer.
Fixed the prompt and added model answer.
- Line 271 (line 271) only has the prompt example, but no model answer.
Added model answer.
- nvidia/cosmos3-nano-reasoner was not listed in the NGC catalog. There is nvidia/cosmos-reason2-8b though.
This is outside of my changes. We probably need another MR to address this confusion.
Checked the latest commit. LGTM!
Found an inconsistency: The "Inference Setup → Without reasoning" block lists temperature=0.7, top_p=0.8, presence_penalty=1.5, but the notebook that produced the printed answers doesn't apply those to the non-reasoning examples — it uses server defaults.
@yaoxu-crypto vllm will use generation_config.json as default, which mostly aligns with recommended parameters except that presence_penalty is not set. This should not make much difference.
We may need another PR to address sampling parameters inconsistency in all notebooks (vllm/nim/cosmos_framework). There are also reasoning examples using default parameters.