Skip to content

Sharded NeMo Gym spinup timeout is fixed at 1800s and can expire before external_service_readiness #4565

Open

Description

@yfw

Follow-up from #4381.

Problem

Sharded NeMo Gym spinup has a fixed 1800s budget that no caller can change, and on jobs that use external vLLM pools that budget can run out before the pools' own startup deadline.

Result: with sharded Gym and an external pool that takes more than 30 minutes to load, shard spinup fails with ShardSetupError while the readiness gate would still have waited. Unsharded Gym is not affected, because it waits on _spinup with no timeout.

Proposed fix

  • Make env.nemo_gym.spinup_timeout real: read it where the sharded path is built and pass it as spinup_timeout, defaulting to the current 1800s. It should be removed from the Gym config before that config goes to Gym, like the other NeMo RL-only keys.
  • Optionally, when external_service_readiness is set, fail at setup if spinup_timeout is shorter than external_service_readiness.timeout_seconds, rather than timing out 30 minutes into startup.

Activity

  1. added
    bug
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions