Lightning-AI / Lightning-AI/pytorch-lightning

MoE (mixture of experts) support for expert parallel

Open
#20,982 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs feature question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.