https://github.com/nvidia-nemo/emerging-optimizers
https://github.com/nvidia-nemo/emerging-optimizers
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nvidia-nemo/emerging-optimizers
- Owner: NVIDIA-NeMo
- License: apache-2.0
- Created: 2025-08-28T18:16:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-02-23T17:15:01.000Z (4 months ago)
- Last Synced: 2026-02-23T22:51:17.662Z (4 months ago)
- Language: Python
- Homepage: https://docs.nvidia.com/nemo/emerging-optimizers/latest/index.html
- Size: 573 KB
- Stars: 156
- Watchers: 6
- Forks: 15
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Emerging Optimizers
[](https://codecov.io/gh/NVIDIA-NeMo/Emerging-Optimizers)
[](https://github.com/NVIDIA-NeMo/Emerging-Optimizers/actions/workflows/cicd-main.yml)
[](https://www.python.org/downloads/release/python-3120/)

[](https://docs.nvidia.com/nemo/emerging-optimizers/latest/index.html)
## Overview
Emerging Optimizers is a research project focused on understanding and optimizing the algorithmic behavior of emerging optimizers (including Shampoo, SOAP, Muon, and others) and their implications to performance of GPU systems in LLM training.
> ⚠️ Note: Emerging-Optimizers is under active development. All APIs are experimental and subject to change. New features, improvements, and documentation updates are released regularly. Your feedback and contributions are welcome, and we encourage you to follow along as new updates roll out.
## Background
### What are Emerging Optimizers?
Emerging optimizers represent a class of novel optimization algorithms that go beyond traditional first-order methods like Adam or SGD. These include optimizers that use matrix-based (non-diagonal) preconditioning, orthogonalization techniques, and other innovative approaches to achieve faster convergence and improved training efficiency.
Examples include Shampoo, which uses Kronecker-factored preconditioning ([arXiv:1802.09568](https://arxiv.org/abs/1802.09568)), and Muon, which uses Newton-Schulz orthogonalization ([arXiv:2502.16982](https://arxiv.org/abs/2502.16982)).
### Why They Matter
Emerging optimizers have demonstrated significant practical impact in large-scale language model training. Most notably, **Muon was used to train the Kimi K2 model** ([arXiv:2507.20534](https://arxiv.org/abs/2507.20534)), showcasing the effectiveness of these novel approaches at scale. These optimizers can:
- Achieve faster convergence, reducing the number of training steps required
- Improve final model quality through better conditioning of the optimization landscape
- Enable more efficient hyperparameter tuning due to reduced sensitivity to learning rates
## Installation
### Prerequisites
- Python 3.12 (Release v0.1.0 is the last version supports Python 3.10)
- PyTorch 2.0 or higher
### Install from Source
```bash
git clone https://github.com/NVIDIA-NeMo/Emerging-Optimizers.git
cd Emerging-Optimizers
pip install .
```
## Usage
### Example
Refer to tests for usage of different optimizers, e.g. [`tests/test_orthogonalized_optimizer.py::MuonTest`](tests/test_orthogonalized_optimizer.py).
### Integration with Megatron Core
Integration with Megatron Core is available in **dev** branch, e.g. [muon.py](https://github.com/NVIDIA/Megatron-LM/blob/dev/megatron/core/optimizer/muon.py)
## Benchmarks
Coming soon.
## License
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.