訓練基礎設施
TRL 1.14 Syncs Only LoRA Weights, Removing NCCL Dependency for Cross-Machine Asynchronous GRPO Training
Hugging Face distributes `AsyncGRPOTrainer` training and vLLM rollouts across separate machines, transferring only a few megabytes of LoRA adapters through shared object storage. A published experiment cut a 500-step run from 3 hours 27 minutes to 53 minutes, but the result is still based on a single small-model recipe and does not prove large-scale RL convergence or cost advantages.

Hugging Face has added adapter-only synchronization to the experimental `AsyncGRPOTrainer` in TRL 1.14. The trainer uses FSDP2 to update the LoRA weights, writes a new version to a Storage Bucket every few optimizer steps, and then instructs a separate vLLM worker to load it through `/v1/load_lora_adapter`. With Qwen2.5-Math-1.5B and rank-1 LoRA, for example, each transfer moves an adapter of only a few megabytes instead of the roughly 3 GB full model. As a result, training and generation processes do not need to run on the same node or establish a cross-node NCCL group.
The challenge in this design goes beyond simply sharing files. A front-end proxy adds HF Jobs authorization headers, routes each rollout to the replica most likely to retain its KV prefix, and broadcasts adapter load, pause, and resume commands to every replica. Each update uses a new policy name to prevent KV blocks created with older weights from being incorrectly reused after a hot update. If samples may lag by four policy versions, vLLM must retain the current version, four older versions, and an additional slot for swaps, leading to a `max_loras=6` setting. Insufficient slots could evict an older policy while rollouts using it are still running.
The team progressively tuned token-budget packing, concurrency, gradient checkpointing, and adapter-load retries, reducing the same 500-step recipe from 3 hours 27 minutes to about 53 minutes. It also published the execution scripts and proxy tests. This demonstrates that low-rank updates can turn synchronization into the delivery of versioned artifacts, making the approach suitable for environments without high-speed cluster interconnects. It is not “network-free”; rather, it replaces direct tensor collectives with a FUSE-backed bucket and an HTTPS control flow.
Engineering teams evaluating the approach should examine object-storage visibility latency, atomic adapter publication, policy staleness, and the share of discarded rollouts. They should also measure GPU costs, final reward, and convergence stability separately. The official figures come only from a 1.5B model on a specific H200 configuration and have not yet been compared with mature NCCL/Slurm clusters at equivalent quality and cost. Configurations using DoRA, additional trainable modules, or ranks beyond vLLM’s supported limit also fall back to synchronizing fully merged weights.