Skip to content

[3/7][multi-lora]: trainer core - per-slot optimizers, per-adapter LR schedules, slot lifecycle, batch routing in get_batch#1744

Merged
yushengsu-thu merged 4 commits into
radixark:mainfrom
mathewjhan:multi-lora/03-trainer
Jul 21, 2026
Merged

[3/7][multi-lora]: trainer core - per-slot optimizers, per-adapter LR schedules, slot lifecycle, batch routing in get_batch#1744
yushengsu-thu merged 4 commits into
radixark:mainfrom
mathewjhan:multi-lora/03-trainer

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

@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 implements support for Multi-LoRA training, introducing a per-slot decoupled Adam optimizer, per-adapter learning rate schedulers, and a control-plane HTTP API managed by a Ray controller to handle adapter lifecycles. It also updates data loading to compute per-adapter token counts and modifies loss scaling to support per-adapter normalization. The review feedback suggests improving code maintainability by moving local imports to the top of the file in model.py to avoid duplication, and using isinstance instead of direct type comparison for more robust type checking in backend.py.

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/model.py
Comment thread miles/ray/multi_lora/backend.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 a04975f 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