nemo_gym.comparison.runner

View as Markdown

End-to-end execution of gym eval compare.

Module Contents

Functions

NameDescription
build_comparison_resultLoad both sides, pick the agent(s), and assemble the full comparison.
invoked_commandThe gym eval compare invocation, for provenance in the report.
resolve_output_dir--output-dir, defaulting to the candidate run’s own directory.
run_comparisonBuild the comparison and write its report artifacts.

API

nemo_gym.comparison.runner.build_comparison_result(
command: str

Load both sides, pick the agent(s), and assemble the full comparison.

nemo_gym.comparison.runner.invoked_command() -> str

The gym eval compare invocation, for provenance in the report.

nemo_gym.comparison.runner.resolve_output_dir(
) -> pathlib.Path

--output-dir, defaulting to the candidate run’s own directory.

The default resolves the candidate path the same way loading does, so the report lands next to the metrics file that was actually read rather than at a same-named path under the cwd.

nemo_gym.comparison.runner.run_comparison(
command: str
) -> typing.Tuple[nemo_gym.comparison.schema.ComparisonResult, typing.List[pathlib.Path]]

Build the comparison and write its report artifacts.