The verl app image = runtime image + a single-step pip install of a wheel built from the verl-FL fork. verl is pure Python, so the wheel is py3-none-any — one wheel for all 17 backends, no per-ABI split. Training rides megatron-core, rollout rides vllm + vllm-plugin-fl; the platform is chosen by VERL_PLATFORM.

One wheel, one matrix

verl is a fork-source package (like megatron, unlike vllm/sglang’s repack). Its numpy<2.0.0 requirement is already satisfied by the runtime’s stack-wide numpy==1.26.4 pin, so the install needs no --no-deps and no dependency surgery. The deps verl needs that the runtime doesn’t carry (ray/datasets/peft/tensordict/ wandb/…) live in deps_app.verl0.7.0.

Two engines already in the stack

  • megatron-core, base — verl imports only megatron.core.*; it never touches megatron.rl. The [rl] extra would downgrade verl’s own locked deps, so it’s left off.
  • rollout vllm, branch route — verl 0.7.0’s own vllm line (0.11/0.12) has an empty intersection with vllm-plugin-FL (≥0.13), so the fork’s version gate is patched to the 0.20.2 line and the rollout reuses vllm==0.20.2+flagos + the existing plugin wheel. Whether that patch reaches verl-FL mainline is the verl-FL team’s call.

Optional layers

  • TE-FL — TE_FL_SKIP_CUDA=1 makes it a py3-none-any wheel; it ships independently and is an optimisation, not a requirement (verl imports it lazily).
  • FlagCX — no hard dependency; the default falls back to vendor-native nccl/hccl/mccl. When enabled, USE_FLAGCX and FLAGCX_PATH must be set together.

Full rationale

The design of record lives beside the code:

Last updated 22 Oct 2026, 17:42 +0800. history