nemo_gym.benchmarks
nemo_gym.benchmarks
Benchmark discovery and preparation utilities.
Module Contents
Classes
Functions
Data
API
Bases: BaseModel
The name of the benchmark config, given its path relative to benchmarks/, sans .yaml.
This is the identity we key benchmarks by, so a listed benchmark is always a valid --benchmark argument.
Sorted config paths under one dir that declare a benchmark, discovered by content.
A config is a benchmark iff it declares exactly one type: benchmark dataset, regardless of filename, so
we scan every yaml. :func:_is_benchmark_config is a cheap prefilter (pay the resolve cost only on real
candidates) that also catches non-config.yaml names like tau2’s configs/*.yaml. Empty if dir missing.
Map benchmark name -> :class:BenchmarkConfig for every benchmark config under one dir.
True if the config declares exactly one type: benchmark dataset in its own structure.
A raw single-file parse (no config_paths/interpolation resolution), so it’s format-agnostic and can’t
fail on includes. Declaring several makes it an eval suite rather than a benchmark: there is no single
name, agent, or repeat count to catalog it under, so it is not a valid --benchmark argument. An
unparseable file is kept (returns True) so the resolve step surfaces a diagnostic.
Map benchmark name -> :class:BenchmarkConfig for every discoverable benchmark config.
Scans the benchmarks/ subdir of every :func:~nemo_gym.discovery.component_search_roots root
(NEMO_GYM_EXTRA_ROOTS + cwd + built-ins), merged so user benchmarks shadow same-named built-ins.