---
title: "Async GRPO with LoRA across HF Jobs: a bucket, a proxy, and no NCCL"
description: "TRL v1.14's AsyncGRPOTrainer can train a LoRA adapter and sync only that adapter to vLLM, which lets the trainer and inference replicas run as separate Hugging Face Jobs on separate machines without NCCL."
url: "https://swe.quest/articles/async-grpo-with-lora-across-hf-jobs-a-bucket-a-proxy-and-no-nccl-a625fff69adbae9a"
canonical: "https://huggingface.co/blog/asyncgrpo-lora-hfjobs"
source: "Hugging Face"
published: "2026-09-10"
difficulty: "hard"
kind: "Case study"
reading_minutes: 29
tags: ["model-training","inference","caching","load-balancing","llms"]
---

# Async GRPO with LoRA across HF Jobs: a bucket, a proxy, and no NCCL

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-09-10, 29 min read, Case study. Original: [https://huggingface.co/blog/asyncgrpo-lora-hfjobs](https://huggingface.co/blog/asyncgrpo-lora-hfjobs)

## Summary

TRL v1.14's AsyncGRPOTrainer can train a LoRA adapter and sync only that adapter to vLLM, which lets the trainer and inference replicas run as separate Hugging Face Jobs on separate machines without NCCL. A rank-1 adapter for a 1.5B model is a few megabytes, so it travels through a Storage Bucket mounted at the same path in every Job, and vLLM loads it via /v1/load\_lora\_adapter. Versioned adapter names and max\_staleness+2 adapter slots keep in-flight rollouts on their original policy and stop prefix-cache reuse across weight versions. A small proxy adds the auth header, broadcasts adapter loads, pause and resume to every replica, and routes the G=8 rollouts of each prompt to the replica holding their KV prefix using adapter-seeded chained block hashes. Using the AsyncGRPO metrics to find bottlenecks, five runs cut the same 500-step recipe from 3 h 27 min to 53 min.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- GRPO / policy-gradient RL
- LoRA fine-tuning ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- vLLM serving and KV cache ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- prefix caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

TRL, AsyncGRPOTrainer, vLLM, LoRA, Hugging Face Jobs, Storage Buckets, Qwen2.5-Math-1.5B, hf-mount

## Related posts

- [No GPU left behind: Unlocking Efficiency with Co-located vLLM in TRL](https://swe.quest/articles/no-gpu-left-behind-unlocking-efficiency-with-co-located-vllm-in-trl-6f9360880cc9b7e0.md): Hugging Face · 2025-06-03 · Hard · 22 min read · Model training, Inference & serving, Performance engineering, LLMs
  TRL v0.18.0 can run vLLM co-located with the training job on the same GPUs. vLLM's external\_launcher executor puts it inside the torch.distributed process group, replacing the separate HTTP server that left training and inference GPUs idle in turn during GRPO's frequent generation steps.
- [Shipping a Trillion Parameters With a Hub Bucket: Delta Weight Sync in TRL](https://swe.quest/articles/shipping-a-trillion-parameters-with-a-hub-bucket-delta-weight-sync-in-trl-5d3970ad53bc1dc5.md): Hugging Face · 2026-05-27 · Hard · 17 min read · Model training, Inference & serving, Distributed systems, Storage systems
  Between consecutive RL optimizer steps, about 99% of bf16 weights stay bit-identical because Adam updates at RL learning rates fall below bf16's rounding threshold (|Δw| \< |w|/256).
- [Keep the Tokens Flowing: Lessons from 16 Open-Source RL Libraries](https://swe.quest/articles/keep-the-tokens-flowing-lessons-from-16-open-source-rl-libraries-14bbb97951dedd55.md): Hugging Face · 2026-03-10 · Hard · 45 min read · Model training, Distributed systems, Inference & serving, LLMs
  Async RL post-training libraries have converged on one architecture: disaggregate inference and training onto separate GPU pools, connect them with a rollout buffer, and push weights asynchronously so generation never stops and training never waits.
- [PipelineRL](https://swe.quest/articles/pipelinerl-a0c5543b6f9a965f.md): Hugging Face · 2025-04-25 · Hard · 7 min read · Model training, Inference & serving, LLMs, Open source
  PipelineRL resolves the tradeoff between inference throughput and on-policy data in LLM reinforcement learning by doing inflight weight updates: after each optimizer step, trainers broadcast new weights via NCCL to inference servers, which pause only long enough to receive them and then keep generating with existing KV caches.
- [Reinforcement learning is an infrastructure problem](https://swe.quest/articles/reinforcement-learning-is-an-infrastructure-problem-5f300edd7294912f.md): Modal · 2026-06-01 · Medium · 10 min read · Model training, LLMs, Hardware, Open source
  RL post-training of LLMs is bottlenecked by infrastructure rather than algorithms: training engines, rollout inference and isolated environments must all scale together, and once training goes multi-node, trainer-to-rollout weight sync dominates.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
