Lightning-AI / Lightning-AI/pytorch-lightning

Add support for converting `RMSNorm` when using `transformer-engine`

Open
#20,804 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature precision: te
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### Description & Motivation

Recently, models (e.g., Qwen3/Llama) have replaced the `LayerNorm` layers with the `RMSNorm` layers because they perform identically but are slightly more efficient.

To support it, a new branch almost identical to the `LayerNorm` would have to be added to the conversion function.

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

Locate the conversion function and its existing LayerNorm branch, then inspect how RMSNorm appears in Qwen3 or Llama models. Confirm that transformer-engine conversion handles RMSNorm alongside LayerNorm and run the relevant conversion tests, if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.