Skip to navigation

nemo_gym.environment.assets

View as Markdown

Resolve a named asset (a benchmark, environment, resources server, model type or agent type) to its config path.

Module Contents

Functions

NameDescription
asset_config_pathMap a named asset (name or name/flavor) to its config path.

Data

ASSETS

logger

API

nemo_gym.environment.assets.asset_config_path(
flag: str,
value: str
) -> str

Map a named asset (name or name/flavor) to its config path.

Searches the roots from component_search_roots (NEMO_GYM_EXTRA_ROOTS + cwd + install root), the same helper that backs gym list/gym search, so config resolution and discovery agree on where components live. On a name collision across roots the highest-priority root wins (as in gym list), with a warning. --search-dir reaches here via NEMO_GYM_EXTRA_ROOTS (set in main). Searching the install root is what lets built-ins resolve by name from an arbitrary cwd (e.g. a wheel install), not just inside the repo checkout.

nemo_gym.environment.assets.ASSETS = {'benchmark': ('benchmarks', '', 'config'), 'environment': ('environments', '', ...
nemo_gym.environment.assets.logger = logging.getLogger(__name__)