nemo_gym.exporters.base
nemo_gym.exporters.base
Module Contents
Classes
Data
API
Sink for the run metadata a NeMo Gym eval produces: config, metrics, rollouts.
A backend (W&B, MLflow, …) subclasses this and wraps its own run handle. Lifecycle is
setup -> any number of log_* calls -> teardown. Whether a backend runs at all is decided
by its ExporterConfig in the registry, not here.
Exporters are best-effort telemetry: a failing tracking server must not fail the eval. Call
sites go through the export_* wrappers, which swallow and log backend exceptions. Subclasses
implement the unwrapped _* hooks and may raise freely.
Record the resolved run config. Secrets are already masked by export_config.
Record scalar metrics. step is the training step, or None for a one-shot eval.
Record rollout results as a table. Rollouts are sanitized dicts, one per rollout.
Open the backing run. Called once, after config resolution.
Close the backing run. Must be safe to call when setup failed or never ran.