nemo_gym.config_types
nemo_gym.config_types
Module Contents
Classes
Functions
Data
ServerInstanceConfigTypeAdapter
API
Bases: BaseModel
Bases: BaseModel
Response from /aggregate_metrics.
Flat string keys for direct logging to W&B/MLflow.
Bases: BaseModel
POST body for /aggregate_metrics.
Each item is a stripped verify response dict containing at minimum:
- TASK_INDEX_KEY_NAME: int
- “reward”: float
Bases: ConfigError, ValueError
One or more server blocks are almost-servers (right shape, failed validation) and
error_on_almost_servers is set, so the run is aborted.
Bases: BaseModel
Bases: BaseRunServerConfig
Bases: BaseModel
Bases: BaseModel
Bases: BaseNeMoGymCLIConfig
Upload a JSONL dataset to HuggingFace Hub with automatic naming based on domain and resources server.
Examples:
Bases: BaseModel
Bases: Exception
Base for user-facing configuration errors.
These represent actionable user mistakes (typos, missing files, malformed input) rather than
internal bugs. The CLI catches ConfigError and prints just the message — no traceback —
while still leaving them as ordinary exceptions so callers like validate can catch and
format them.
Bases: ConfigError, ValueError
One or more required config values are still unset (OmegaConf ’???’) after merging.
Bases: ConfigError, FileNotFoundError
A config_paths entry could not be found in the cwd or the Gym install location.
Bases: BaseModel
Reconcile the unified source: with the legacy *_identifier fields.
The unified source: block is mutually exclusive with the legacy identifiers. The two
legacy identifiers may still be set together (a gitlab-primary / huggingface-fallback pair
selected at download time by config.data_source) for backward compatibility. A legacy
identifier emits a deprecation warning and, when a single backend is given, is mirrored into
source; conversely a source: is mirrored back into the matching legacy field so existing
consumers that read gitlab_identifier/huggingface_identifier keep working.
Bases: BaseNeMoGymCLIConfig
Delete a dataset from GitLab Model Registry (prompts for confirmation).
Examples:
Bases: enum.Enum
The capability a resources server primarily evaluates or trains.
Pick the single domain that best fits the task. If several seem to apply, choose the most
specific one (e.g. prefer math or coding over agent); use other only when none
of the specific values fit. The values:
math— mathematical problem solving (e.g. AIME, MATH, GSM8K).coding— code generation, repair, or execution (e.g. SWE-bench, LiveCodeBench).agent— multi-step, tool-using / environment-interacting tasks (e.g. tau2, workplace_assistant). Prefer a more specific value when the task is really math/coding/etc.knowledge— factual or domain-knowledge question answering (e.g. GPQA, MMLU).instruction_following— adherence to explicit formatting/constraints (e.g. IFEval).long_context— reasoning over long inputs (e.g. RULER, long-document QA).safety— refusing harmful content / resisting jailbreaks & prompt injection.games— interactive game environments (e.g. blackjack, tetris).translation— machine translation quality (e.g. WMT).e2e— end-to-end pipelines spanning multiple capabilities at once.rlhf— preference / reward-model / LLM-as-judge evaluations.other— catch-all when no specific domain above applies.
Bases: JsonlDatasetGitlabIdentifer, BaseNeMoGymCLIConfig
Download a JSONL dataset from GitLab Model Registry.
Examples:
Bases: JsonlDatasetHuggingFaceIdentifer, BaseNeMoGymCLIConfig
Download a JSONL dataset from HuggingFace Hub to local filesystem.
Examples:
Bases: BaseModel
Unified source: for a dataset fetched from the GitLab model registry.
Bases: BaseModel
Unified source: for a dataset fetched from the HuggingFace Hub.
Bases: ConfigError, ValueError
An _inherit_from / swap / copy directive references a config path that does not exist.
Bases: BaseModel
Bases: BaseModel
Bases: ConfigError, ValueError
config_paths was not a list of paths (e.g. a scalar string was passed).
Bases: BaseModel
Bases: ConfigError, ValueError
A run was requested but the merged config defines no server instances to start.
Bases: BaseModel
Bases: ConfigError, ValueError
A server cross-reference points to an instance that is not defined in the merged config.
Bases: BaseNeMoGymCLIConfig
Upload a local jsonl dataset artifact to Gitlab.
Examples:
Bases: BaseUploadJsonlDatasetHuggingFaceConfig
Upload a JSONL dataset to HuggingFace Hub and automatically delete from GitLab after successful upload.
This command always deletes the dataset from GitLab after uploading to HuggingFace.
Use gym dataset upload if you want optional deletion control.
Examples:
Bases: BaseUploadJsonlDatasetHuggingFaceConfig
Upload a JSONL dataset to HuggingFace Hub with optional GitLab deletion after successful upload.
Examples:
Bases: BaseModel
Detects if a config looks like a server but might fail validation.
Returns ServerInstanceConfig if a valid server, otherwise None with error details