Skip to content

ci: attach the GPU job container to an ipvlan network on the node's RoCE bond, so Mooncake's rdma transport can connect - #384

Merged
Rockdu merged 2 commits into
mainfrom
rockdu/ci-rdma-network
Nov 18, 2026
Merged

Rockdu merged 2 commits into
mainfrom
rockdu/ci-rdma-network

Conversation

@Rockdu

@Rockdu Rockdu commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What

The GPU CI job's container gets a second Docker network, ci-roce, and Mooncake is limited to the one RDMA device that network reaches. With that, Mooncake's rdma transport works inside the CI containers.

  • --network ci-roce in the container options. The runner's own bridge network stays, so every container keeps its own ports and its internet access.
  • MC_MS_FILTERS: mlx5_bond_0 in the job env. This is Mooncake's device whitelist.
  • The two unlabelled store-on e2e tests (test_sd3_nft_pickscore_3xGPU.py, test_ltx23_pickscore_grpo_4xGPU.py) pass --output-store-protocol rdma, so run-ci-basic on this PR exercises the RoCE network on both runner classes without waiting for feat(rollout): let reward actors read the generated output from the output store #382's default change.

Why

The CI node has no InfiniBand. Its eight RDMA devices (mlx5_bond_0..7) are RoCE on bonded Ethernet ports, and a RoCE connection needs the device's network interface. The runner puts the job container on a bridge network, where those interfaces are not visible: every Mooncake rdma put fails with Failed to modify QP to RTR.

--network host is not an option for a job container. The runner always passes its own --network github_network_<id>, and Docker refuses the combination (conflicting options: cannot attach both user-defined and non-user-defined network-modes).

The node-side network

ci-roce is an ipvlan network on bond0, created once on the node:

docker network create -d ipvlan --internal --subnet 192.168.250.0/24 -o parent=bond0 ci-roce

It exists on the CI node now. --internal keeps the default route on the runner's bridge. If the network is missing, the container is not created and the job fails at once.

Only bond0 is attached, so Mooncake must not use the other seven devices: a transfer that tries one of them fails. With eight networks, one per bond, the defaults work but the first put takes 7 to 15 s, because transfers between different bonds fail and are retried.

Validation

Measured on the CI node, in the CI image, a 256 MB put and get over rdma between two processes:

container networks devices Mooncake uses put get
bridge only (today) all 8 fails -
bridge + ci-roce all 8 fails -
bridge + ci-roce, MC_MS_FILTERS=mlx5_bond_0 1 0.04 s 0.08 s, bytes equal

Two such containers at once both pass, and https://github.com answers from inside them.

Before the last commit this PR alone did not exercise rdma in CI, because the output store's default transport on main is tcp; now its own run-ci-basic run does, through the two tests above. #377 carries this commit on top of #382, which makes rdma the default, and its run-ci-e2e run is the end-to-end check:

  • The runner created both job containers with --network github_network_<id> --network ci-roce; stage-a and stage-b pass.
  • All nine e2e tests pass against their standards. In the eight RL tests every Mooncake client reports the rdma transport and finds one device; no handshake failed, no put failed, no lease expired.
  • The same eight tests without this change, on the commit before it: every put fails and the first test ends after 474 s.
  • Rollout wait per test, summed over its rollouts, stays inside the spread of the earlier CI runs on this node, none of which used rdma (25 to 34 runs per test): SD3.5 NFT 63 s (earlier runs 56 to 78 s, median 68 s); SD3.5 OCR 59 s (58 to 108 s, median 82 s); H3 532 s (486 to 577 s, median 506 s). One H3 request denoised for 68 s instead of 24 s; 12 of the 25 earlier runs have one such request, so it is not from this change. Wan2.2, Cosmos3, LTX-2.3 and Qwen-Image are within 2% of the last full run on main, and train times within 3%.

Checklist

…oCE bond, so Mooncake's rdma transport can connect
@Rockdu
Rockdu marked this pull request as ready for review November 12, 2026 09:06
@Rockdu Rockdu added the run-ci-basic Authorize and run only basic unlabeled CI tests label Nov 18, 2026
@Rockdu
Rockdu merged commit b96bfd6 into main Nov 18, 2026
24 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci-basic Authorize and run only basic unlabeled CI tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant