LlamaRL: A Distributed Asynchronous Reinforcement Learning Framework for Efficient Large-scale LLM Training

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wu, Bo, Wang, Sid, Tang, Yunhao, Ding, Jia, Helenowski, Eryk, Tan, Liang, Xu, Tengyu, Gowda, Tushar, Chen, Zhengxing, Zhu, Chen, Tang, Xiaocheng, Qian, Yundi, Zhu, Beibei, Hou, Rui
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915317119188992
author Wu, Bo
Wang, Sid
Tang, Yunhao
Ding, Jia
Helenowski, Eryk
Tan, Liang
Xu, Tengyu
Gowda, Tushar
Chen, Zhengxing
Zhu, Chen
Tang, Xiaocheng
Qian, Yundi
Zhu, Beibei
Hou, Rui
author_facet Wu, Bo
Wang, Sid
Tang, Yunhao
Ding, Jia
Helenowski, Eryk
Tan, Liang
Xu, Tengyu
Gowda, Tushar
Chen, Zhengxing
Zhu, Chen
Tang, Xiaocheng
Qian, Yundi
Zhu, Beibei
Hou, Rui
contents Reinforcement Learning (RL) has become the most effective post-training approach for improving the capabilities of Large Language Models (LLMs). In practice, because of the high demands on latency and memory, it is particularly challenging to develop an efficient RL framework that reliably manages policy models with hundreds to thousands of billions of parameters. In this paper, we present LlamaRL, a fully distributed, asynchronous RL framework optimized for efficient training of large-scale LLMs with various model sizes (8B, 70B, and 405B parameters) on GPU clusters ranging from a handful to thousands of devices. LlamaRL introduces a streamlined, single-controller architecture built entirely on native PyTorch, enabling modularity, ease of use, and seamless scalability to thousands of GPUs. We also provide a theoretical analysis of LlamaRL's efficiency, including a formal proof that its asynchronous design leads to strict RL speed-up. Empirically during the Llama 3 post-training, by leveraging best practices such as colocated model offloading, asynchronous off-policy training, and distributed direct memory access for weight synchronization, LlamaRL achieves significant efficiency gains -- up to 10.7x speed-up compared to DeepSpeed-Chat-like systems on a 405B-parameter policy model. Furthermore, the efficiency advantage continues to grow with increasing model scale, demonstrating the framework's suitability for future large-scale RL training.
format Preprint
id arxiv_https___arxiv_org_abs_2505_24034
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LlamaRL: A Distributed Asynchronous Reinforcement Learning Framework for Efficient Large-scale LLM Training
Wu, Bo
Wang, Sid
Tang, Yunhao
Ding, Jia
Helenowski, Eryk
Tan, Liang
Xu, Tengyu
Gowda, Tushar
Chen, Zhengxing
Zhu, Chen
Tang, Xiaocheng
Qian, Yundi
Zhu, Beibei
Hou, Rui
Machine Learning
Artificial Intelligence
Reinforcement Learning (RL) has become the most effective post-training approach for improving the capabilities of Large Language Models (LLMs). In practice, because of the high demands on latency and memory, it is particularly challenging to develop an efficient RL framework that reliably manages policy models with hundreds to thousands of billions of parameters. In this paper, we present LlamaRL, a fully distributed, asynchronous RL framework optimized for efficient training of large-scale LLMs with various model sizes (8B, 70B, and 405B parameters) on GPU clusters ranging from a handful to thousands of devices. LlamaRL introduces a streamlined, single-controller architecture built entirely on native PyTorch, enabling modularity, ease of use, and seamless scalability to thousands of GPUs. We also provide a theoretical analysis of LlamaRL's efficiency, including a formal proof that its asynchronous design leads to strict RL speed-up. Empirically during the Llama 3 post-training, by leveraging best practices such as colocated model offloading, asynchronous off-policy training, and distributed direct memory access for weight synchronization, LlamaRL achieves significant efficiency gains -- up to 10.7x speed-up compared to DeepSpeed-Chat-like systems on a 405B-parameter policy model. Furthermore, the efficiency advantage continues to grow with increasing model scale, demonstrating the framework's suitability for future large-scale RL training.
title LlamaRL: A Distributed Asynchronous Reinforcement Learning Framework for Efficient Large-scale LLM Training
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.24034