[Bug Fix] XCCL weight synchronization fix for the single controller lora#796
Conversation
Summary of ChangesHello @gursimar, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical regression that prevented distributed LoRA weight synchronization using XCCL, a problem stemming from a previous single-controller refactor. The changes ensure that LoRA-specific metadata is correctly generated and propagated during distributed training, thereby unblocking and restoring functionality for distributed LoRA training workflows within the vLLM backend. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively addresses a regression in XCCL-based LoRA weight synchronization by ensuring that LoRA-specific parameters are correctly passed when creating the WeightUpdateMeta. The logic added in areal/experimental/trainer/rl.py is sound and mirrors the existing implementation for disk-based updates. The accompanying changes in areal/api/io_struct.py for the default lora_int_id and the example YAML file are appropriate and support the main fix. I have one suggestion to refactor the new logic for improved code clarity and maintainability.
2c3db02 to
dfd61b7
Compare
…ora (inclusionAI#796) * fixed the weight meta creation logic that was missing * Refactored code as per gemini's recommendations * adjusted config after testing
Description
This PR fixes a regression in XCCL-based LoRA weight synchronization introduced by the single-controller refactor.
After the refactor, distributed LoRA weight updates in the vLLM backend fail during XCCL synchronization, causing workers to return
400 Bad Requesterrors from the/areal_update_weights_xcclendpoint and breakingupdate_weights_from_distributed.This change restores correct parameter resolution and propagation across workers, unblocking distributed LoRA training workflows.
Fixes #795
Related to MultiLoRA RFC #609.
Type of Change
Checklist
jb build docs) if applicable/gemini review)