Archive of AI

Source Snapshot / 2024-09-28-bytedance-verl-hybridflow-2

HybridFlow: A Flexible and Efficient RLHF Framework

Linked event: 2024-09-28 · HybridFlow and verl Open-Sourced, Evolving into Foundational Post-Training Infrastructure for Open Reasoning Models

Publisher
arXiv
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / bcd3a485bc6eed53
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

Skip to main content

Press Enter to search · Advanced search

Computer Science > Machine Learning

arXiv:2409.19256 (cs)

[Submitted on 28 Sep 2024 (v1), last revised 2 Oct 2024 (this version, v2)]

Title:HybridFlow: A Flexible and Efficient RLHF Framework

Authors:Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, Chuan Wu

View a PDF of the paper titled HybridFlow: A Flexible and Efficient RLHF Framework, by Guangming Sheng and 8 other authors

HTML (experimental)

Abstract:Reinforcement Learning from Human Feedback (RLHF) is widely used in Large Language Model (LLM) alignment. Traditional RL can be modeled as a dataflow, where each node represents computation of a neural network (NN) and each edge denotes data dependencies between the NNs. RLHF complicates the dataflow by expanding each node into a distributed LLM training or generation program, and each edge into a many-to-many multicast. Traditional RL frameworks execute the dataflow using a single controller to instruct both intra-node computation and inter-node communication, which can be inefficient in RLHF due to large control dispatch overhead for distributed intra-node computation. Existing RLHF systems adopt a multi-controller paradigm, which can be inflexible due to nesting distributed computation and data communication. We propose HybridFlow, which combines single-controller and multi-controller paradigms in a hybrid manner to enable flexible representation and efficient execution of the RLHF dataflow. We carefully design a set of hierarchical APIs that decouple and encapsulate computation and data dependencies in the complex RLHF dataflow, allowing efficient operation orchestration to implement RLHF algorithms and flexible mapping of the computation onto various devices. We further design a 3D-HybridEngine for efficient actor model resharding between training and generation phases, with zero memory redundancy and significantly reduced communication overhead. Our experimental results demonstrate 1.53$\times$~20.57$\times$ throughput improvement when running various RLHF algorithms using HybridFlow, as compared with state-of-the-art baselines. HybridFlow source code will be available at this https URL.

Machine Learning (cs.LG); Distributed, Parallel, and Cluster Computing (cs.DC)

ACM classes:

arXiv:2409.19256 [cs.LG]

arXiv:2409.19256v2 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2409.19256

Focus to learn more

arXiv-issued DOI via DataCite

Related DOI:

https://doi.org/10.1145/3689031.3696075

DOI(s) linking to related resources

Submission history

From: Guangming Sheng [view email] [v1]

Sat, 28 Sep 2024 06:20:03 UTC (1,755 KB)

Wed, 2 Oct 2024 04:01:47 UTC (1,775 KB)

Full-text links:

Access Paper:

view license

Current browse context:

Change to browse by:

References & Citations

Google Scholar

Semantic Scholar

export BibTeX citation

BibTeX formatted citation

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

IArxiv recommender toggle

IArxiv Recommender

(What is IArxiv?)

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? |

Disable MathJax (What is MathJax?)