nemo_gym.rollout_compare.command
nemo_gym.rollout_compare.command
The gym dev compare command surface.
RolloutCompareConfig is the pydantic config whose fields and docstring are the command’s options, and run_compare loads both sides, compares them, resolves the per-side log roots, writes the JSON summary first and then the report or the JSON to stdout, returning the exit code.
Module Contents
Classes
Functions
API
Bases: BaseNeMoGymCLIConfig
Compare two rollout JSONL files task by task: count identical, flipped, masked and missing tasks and print the
losing side’s verifier output for every flip. A report, not a gate: the exit code is 0 for a report and 1 when
an input cannot be read or the --json summary cannot be written.
Examples:
Load both sides, print the report (or the JSON summary with json_stdout) and write the JSON file when
asked. Exit code: 0 for a report, 1 for unreadable input or unwritable output.