Repository navigation
Description
Background
Gym assumes local execution. Teams running evaluations at scale — on SLURM clusters, Kubernetes, or across heterogeneous node pools — currently maintain custom, cluster-specific sbatch scripts that are not shareable, not tracked, and not reproducible. The absence of an orchestration layer creates compounding friction: no job status, no result persistence, no reproducibility guarantee, and no path to run the same eval on a different cluster without rewriting infrastructure.
The orchestration layer should provide a clear, shared path without wrapping SLURM or Kubernetes in Gym. The goal is not to reinvent cluster management — it is to give users a thin entry point that fits their existing cluster workflows while adding what scripts alone cannot provide: job tracking, artifact persistence, and reproducibility.
Two distinct problems, two distinct designs
1. Launch mechanism — how a user submits a Gym job to their execution environment (SLURM, Kubernetes, local). The design principle: Gym should not wrap the cluster. Users retain their existing sbatch/kubectl knowledge. Gym provides a thin bootstrap (gym orchestrator start) that provisions the Ray cluster and hands off to a standard gym eval run.
2. Job management — tracking what was launched, its status, and where its artifacts went. This is a separate design from the launch mechanism and is tracked separately.
Approach
Progressive, not upfront. Start with a minimal gym orchestrator start that bootstraps Ray for the user's environment, then observe what sbatch scripts cannot easily do before committing to a full executor abstraction.
# Inside the user's sbatch script:
gym orchestrator start --slurm # provisions Ray cluster, returns RAY_ADDRESS
# Standard gym eval run — unchanged
gym eval run --benchmark swerl --model gpt4o
# Outside the script — job management
gym eval status --time 1d
gym eval download-results <job-id>Gym does not generate sbatch scripts. Gym does not wrap scancel. The user's existing cluster workflow stays intact; gym orchestrator start is the only new surface.
Requirements
- R1 (P0) — Submit a Gym job to SLURM or Kubernetes without modifying Gym configs or source code
- R2 (P0) — Gym must remain independently executable locally without any orchestration involvement
- R3 (P0) — Track job status (pending / running / complete / failed) from a single interface
- R4 (P0) — MLFlow integration for result tracking and artifact logging
- R5 (P0) — Reproduce a prior run exactly from a persisted job spec
- R6 (P0) — Standardized artifact format consumable by downstream tools without per-benchmark glue
- R7 (P1) — Export results to a configurable artifact store (local, S3, GCS)
- R8 (P1) — Add a custom executor without modifying orchestration core
- R9 (P2) — Heterogeneous Ray clusters (GPU on SLURM, CPU sandboxes on Kubernetes)
Constraints
- Orchestration ships inside the
gympackage — no separate installable. Versioning and reproducibility require a single artifact. - Existing direct integrations (NeMo RL, VeRL) must continue working without any orchestration involvement.
- Designed for external distribution — no NVIDIA-internal assumptions, no hardcoded cluster names.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDev WIP
Activity
gchlebus commentedon Jun 17, 2026
Requirements to keep in mind:
mohityadav8 commentedon Jul 27, 2026
Hi @prokotg and @marta-sd! I saw you're working on this feature. If you're open to collaborating, I'd love to help with the implementation. I'm particularly interested in contributing to the code (rather than documentation). If there are any components or subtasks I can take ownership of, I'd be happy to work on them. Let me know—I'd love to contribute!
50 remaining items
feat(orchestration): add --resolve-only to gym eval submit (NVIDIA-Ne…
gym eval resubmit/gym job resubmitcleanup #6554SlurmExecutorMRO #6556