Skip to content

[6/7][multi-lora]: async batch collection and data conversion - per-adapter buffers, round robin collection, batch metadata#1747

Merged
yushengsu-thu merged 7 commits into
radixark:mainfrom
mathewjhan:multi-lora/06-batching
Jul 21, 2026
Merged

[6/7][multi-lora]: async batch collection and data conversion - per-adapter buffers, round robin collection, batch metadata#1747
yushengsu-thu merged 7 commits into
radixark:mainfrom
mathewjhan:multi-lora/06-batching

Conversation

@mathewjhan

@mathewjhan mathewjhan commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

…ml config, shared helpers, CLI flags and validation
…schedules, slot lifecycle, batch routing in get_batch
…ert push to engines, reconcile/train/save hooks
… per-adapter rewards, prefill logprob grouping
…apter buffers, round-robin collection, batch metadata

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive multi-LoRA training framework, including per-slot decoupled Adam optimizers, per-adapter learning rate and weight decay schedulers, a background async rollout producer, and a control-plane HTTP API server to manage adapter lifecycles. The review feedback is highly actionable and points out several key areas for improvement: optimizing sequential ray.get calls in loops to run asynchronously, replacing assert statements with ValueError for robust argument validation, guarding against potential runtime errors (such as an IndexError on empty slots or an AttributeError on missing configurations), and avoiding swallowing exceptions silently by logging them instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread miles/backends/megatron_utils/actor.py
Comment thread miles/backends/megatron_utils/multi_lora_optimizer.py
Comment thread miles/backends/megatron_utils/multi_lora_utils.py
Comment thread miles/backends/training_utils/data.py
Comment thread miles/ray/multi_lora/controller.py
Comment thread miles/ray/multi_lora/registry.py
Comment thread miles/utils/multi_lora.py

@yushengsu-thu yushengsu-thu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed extensively on the umbrella PR #1638 (2xH200 E2E validated); layer verified independently (imports + fast suites green on this branch's own tree).

@yushengsu-thu
yushengsu-thu merged commit 8972f58 into radixark:main Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants