Skip to content

[epic] orchestration: remote execution and job management for Gym evaluations #1640

Open
12 of 19 issues completed
Open

Description

@ritaneves

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 gym package — 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

Sub-issues

12 of 19 Issues completed
Loading 19 sub-issues

Activity

  1. gchlebus commented on Jun 17, 2026

    @gchlebus
    Contributor

    Requirements to keep in mind:

    1. Orchestration layer should ensure reproducibility. Output artifacts should contain full information required to reproduce a given run including the launch command.
    2. Given output artifacts, it should be easy to tell if a given run used a validated config (e.g., one from EFB repo).
  2. added
    r0.5.0
    on Jul 2, 2026
  3. added
    r0.5.0
    and removed
    r0.5.0
    on Jul 2, 2026
  4. deleted a comment from ritaneves on Jul 2, 2026
  5. removed
    r0.5.0
    on Jul 6, 2026
  6. mohityadav8 commented on Jul 27, 2026

    @mohityadav8

    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!

  7. 50 remaining items

  8. moved this from Done to Dev WIP in NeMo Gym 0.7.0 - Oct 7on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions