TL;DR

ShardFly combines reusable shard-transfer plans with a persistent GPU kernel that converts, forwards and writes weights in flight. On 32 H20 GPUs, its Qwen3-30B-A3B GRPO runs improve response-token throughput by 5.49–6.71% over veRL NCCL. Larger standalone weight-update speedups describe only one part of the training loop.

Why it matters

Disaggregated RL repeatedly pauses rollout workers to refresh their policy weights. ShardFly targets both the communication delay and the temporary memory needed to reshape and stage those weights, with measurements that distinguish faster synchronization from faster overall training.

Key findings

  1. 01

    The planner maps overlaps between trainer and rollout shards directly to native tensor storage, then batches descriptors across tensor boundaries. Replica relay chains forward transformed bytes rather than repeatedly sending them from trainers. Plans and communication state are reused while addresses, layouts and rollout membership remain stable.

  2. 02

    A persistent transfer kernel per rank streams through bounded FIFO buffers, combining layout conversion, optional block quantization, GPU-initiated communication and destination writes. Integration uses Megatron, vLLM and veRL, with NCCL Device API access for NVLink and GPU-initiated networking for inter-host RDMA.

  3. 03

    The testbed has four eight-GPU H20-3e hosts, each with four 400 Gb/s RoCE links. Standalone tests cover Qwen3-8B, Qwen3-30B-A3B, GPT-OSS-20B, Moonlight-16B-A3B and GLM-4.7-Flash against veRL NCCL, Awex, veRL NIXL and WeightBridge. Updates are measured after five warmups, with 30 updates per launch.

  4. 04

    Across three Qwen3-30B-A3B trainer layouts with fixed rollout demand, ShardFly takes 0.371–0.392 seconds per complete BF16 update, versus 0.488–0.503 seconds for WeightBridge, a 1.26–1.36-times speedup. Larger gains against gather-based paths depend on their export and pipeline-stage reconstruction costs.

  5. 05

    In a separate two-host communication-memory experiment, ShardFly uses 0.91 GiB of additional resident memory per rollout GPU for a 335 ms update; WeightBridge’s fastest measured setting uses 4.54 GiB for 473 ms. The metric subtracts loaded-model memory and validation copies, and includes allocator cache and library-managed allocations.

  6. 06

    End-to-end experiments train Qwen3-30B-A3B with asynchronous GRPO on GSM8K using 16 trainer and 16 rollout GPUs, publishing BF16 weights after each optimizer update. Across four rollout layouts, complete synchronization falls from 6.89–7.20 seconds with veRL NCCL to 1.03–1.26 seconds, while response-token throughput improves by 5.49–6.71% relative.

  7. 07

    For layout R1, consumed response-token throughput rises from 15,871 to 16,936 tokens per second. Runs contain 16 optimizer updates, each consuming 64 prompt groups with 16 completions per group. Throughput includes generation waits and final drain but excludes initialization; paired response-token counts differ by less than 0.5%.

  8. 08

    An FP8 experiment compares fused streaming with a staged ShardFly control that keeps the quantizer, routing and transport fixed. Fusion is 1.085 times faster and reduces tracked extra source allocations from 2.30 to 0.52 GiB per GPU. This controlled fusion gain is distinct from the much larger comparison against the authors’ quantized WeightBridge extension.

  • The end-to-end evidence covers one model, GSM8K and 16 optimizer updates per run. It establishes throughput in these configurations, not improved final reasoning accuracy, convergence, or time to a target reward.

  • Weight updates are synchronous and in place even though the surrounding GRPO loop is asynchronous: rollout generation pauses until transfer completes. The design does not establish the same gains for updates overlapped with ongoing generation.

  • The standalone benchmark excludes process/model startup and post-update correctness checks. Cached planning and communication state are reused; changes in addresses, layouts or membership require preparation, and new rollout instances still incur loading cost.

  • The tested hardware and software include H20 GPUs, high-bandwidth RoCE, GPU-initiated RDMA, Megatron and vLLM. Portability and performance on different networking stacks, GPU generations and model integrations remain unestablished.

  • Resident rollout communication memory and tracked FP8 source buffers use different accounting rules. The latter excludes cache and untracked runtime state, so these figures cannot be combined as a total training-memory saving.

  • The FP8 path is validated against reference scales and quantized bytes in a standalone harness. The reported end-to-end GRPO experiment uses BF16 updates and does not demonstrate FP8 training-quality equivalence.

  • The paper reports exact BF16 parameter checks and deterministic-generation checks outside timed intervals; these are author-reported validation results. No ShardFly release link is supplied in the reviewed HTML, and the experiments have not been independently reproduced here.

Scaling dimensions

Models, methods & benchmarks

Models
Qwen3-8B, Qwen3-30B-A3B, GPT-OSS-20B, Moonlight-16B-A3B, GLM-4.7-Flash
Algorithms
ShardFly, GRPO
Benchmarks
GSM8K, Weight-update latency, Communication memory

Topics

Read the original sourcearXiv ↗