RL icon indicating copy to clipboard operation
RL copied to clipboard

SGLang non-colocated with tp_size > 1 on a single node: check GPU placement next to the trainer

Open shikicloud opened this issue 1 week ago • 0 comments

Context. Raised in the review of #5282 (comment). With non-colocated SGLang on one node, the trainer and the engines split that node's GPUs (policy.generation.colocated.resources.gpus_per_node). This path exists on main for both the legacy entrypoints and the SingleController, and no nightly or functional test runs it with tp_size above 1.

What to check. Each engine is given a base_gpu_id and, with gpu_id_step: 1, also takes the next tp_size - 1 GPU ids (sglang_generation.py, sglang_worker.py). On a node shared with the trainer, does any GPU end up used by both an SGLang engine and a trainer worker?

Tested so far. tp_size: 2 engines on a node of their own (the 2n4g SC nightly from #5282), and tp_size: 1 next to the trainer (the 2-GPU SC smoke).

Done when a one-node run with tp_size: 2 engines next to the trainer shows which GPUs each process uses: fixed if one is shared, closed if none is.

shikicloud avatar Nov 24 '26 18:11 shikicloud