Lightning-AI / Lightning-AI/pytorch-lightning
MoE (mixture of experts) support for expert parallel
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 31.4k
- Forks
- 3.8k
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 6
Description
### Description & Motivation
Hi, is there any tutorial on how to setup the expert parallel in lightning trainer? Maybe the shortest way is to use DeepSpeed MoE (https://www.deepspeed.ai/tutorials/mixture-of-experts/) since lightning support deep speed strategy. But it needs to set some optimizer parameter groups or something. Can anyone give me some hints to achieve this?
### Pitch
_No response_
### Alternatives
_No response_
### Additional context
_No response_
cc @lantiga @borda
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked DeepSpeed MoE tutorial and Lightning's DeepSpeed strategy integration. The issue does not name files, tests, or a precise API, so first clarify whether the expected outcome is expert-parallel support, optimizer parameter-group guidance, or a tutorial; completion criteria are not defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- distributed-systems, machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100