nemo_gym.orchestration.ray_serve_gateway
nemo_gym.orchestration.ray_serve_gateway
Ray Serve gateway that launches multiple vLLM instances and routes requests across them.
Selected automatically (see api.effective_ray_serve) whenever an instance’s TP/PP footprint
would need to span multiple Slurm nodes, or via use_ray_serve: true. Joins the Ray cluster
already bootstrapped by the sbatch script and defines one Ray Serve deployment with
number_of_instances replicas; each replica launches its own vllm serve --distributed-executor-backend ray subprocess and proxies requests to it. Ray Serve’s own
max_replicas_per_node and HTTP proxy handle node placement and routing, replacing what used to
be hand-rolled here. Deliberately not using ray.serve.llm: it conflicts with vLLM’s own
RayDistributedExecutor over nested placement groups (ray-project/ray#59064).
Module Contents
Classes
Functions
Data
API
One Ray Serve replica = one vLLM instance, proxying every request to its own subprocess.
The vllm serve command each replica runs for its own instance.
An OS-assigned free TCP port on this node, since colocated replicas can’t share a fixed one.
How many instance drivers may share one physical node’s GPU capacity; None if unknown.