nemo_gym.benchmarks#
Benchmark discovery and preparation utilities.
Module Contents#
Classes#
Represents a discovered benchmark’s configuration. |
|
Prepare benchmark data by running the benchmark’s prepare.py script. |
Functions#
Scan the benchmarks/ directory for subdirectories containing config.yaml. |
|
Get a specific benchmark by name. Raises ValueError if not found. |
|
CLI command: list available benchmarks. |
|
CLI command: prepare benchmark data. |
Data#
API#
- nemo_gym.benchmarks.BENCHMARKS_DIR#
None
- class nemo_gym.benchmarks.BenchmarkConfig(name: str, path: pathlib.Path, config_dict: dict)[source]#
Represents a discovered benchmark’s configuration.
Initialization
- property agent_name: Optional[str]#
- property num_repeats: Optional[int]#
- nemo_gym.benchmarks.discover_benchmarks() Dict[str, nemo_gym.benchmarks.BenchmarkConfig][source]#
Scan the benchmarks/ directory for subdirectories containing config.yaml.
- nemo_gym.benchmarks.get_benchmark(name: str) nemo_gym.benchmarks.BenchmarkConfig[source]#
Get a specific benchmark by name. Raises ValueError if not found.
- class nemo_gym.benchmarks.PrepareBenchmarkConfig(/, **data: typing.Any)[source]#
Bases:
nemo_gym.config_types.BaseNeMoGymCLIConfigPrepare benchmark data by running the benchmark’s prepare.py script.
Examples:
ng_prepare_benchmark +benchmark=aime24
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- benchmark: str#
‘Field(…)’