nemo_gym.orchestration.executors.script_templates
nemo_gym.orchestration.executors.script_templates
Module Contents
Functions
Data
API
Render the srun entrypoint for the driver step.
When either gym_install or prepare is needed, wraps everything in a single bash -c so prepare and run happen in the same srun step and container.
Render a bash array with each argument on its own line.
Render the Ray head/worker bootstrap that wraps a single vLLM instance’s TP/PP command so it spans multiple Slurm nodes.
Uses ray symmetric-run when available (Ray >= 2.50), which starts/joins a Ray cluster across
every task and runs the entrypoint only on the elected head node. Containers with an older Ray
pin fall back to manually starting head/worker Ray processes, keyed on Slurm’s per-node task
rank ($SLURM_NODEID).