What is NeMo-Aligner?
NeMo-Aligner is a toolkit from NVIDIA for aligning large language models so they behave in a safer, more helpful way. It supports several alignment methods in one place, including supervised fine-tuning, reward model training, RLHF with PPO and REINFORCE, Direct Preference Optimization (DPO), SteerLM, and Self-Play Fine-Tuning (SPIN). It sits in the RLHF & Alignment category of the Training & Fine-Tuning tools and is open-source, written in Python.
Overview
NeMo-Aligner is a toolkit from NVIDIA for aligning large language models so they behave in a safer, more helpful way. It supports several alignment methods in one place, including supervised fine-tuning, reward model training, RLHF with PPO and REINFORCE, Direct Preference Optimization (DPO), SteerLM, and Self-Play Fine-Tuning (SPIN).
It is built on the NeMo Framework, so training can scale across many GPUs using tensor, data, and pipeline parallelism. This makes it suited to teams working with very large open models, such as the Nemotron and Llama 3 70B chat and reward variants that NVIDIA trained with it. Checkpoints stay compatible with the wider NeMo ecosystem for inference and further customization.
Note: as of May 15, 2025, the repository is no longer actively maintained. NVIDIA recommends NeMo RL (github.com/NVIDIA/NeMo-RL) for new post-training work. NeMo-Aligner remains useful as a reference and for reproducing existing NeMo-based alignment pipelines.
What it does
- Multiple alignment algorithms in one toolkit: supervised fine-tuning, reward model training, RLHF (PPO and REINFORCE), DPO, SteerLM, and SPIN
- SteerLM offers attribute-conditioned SFT as a user-steerable alternative to RLHF
- Scales across thousands of GPUs using tensor, data, and pipeline parallelism via the NeMo Framework
- Accelerated RLHF generation through TensorRT-LLM integration
- Checkpoints are cross-compatible with the NeMo ecosystem for inference and further customization
- Used to train released models including Nemotron-4-340B Instruct/Reward and Llama-3.1-Nemotron-70B-Instruct
Getting started
NeMo-Aligner runs on machines with NVIDIA GPUs and is easiest to use through the prebuilt NeMo container, where it comes already installed.
Run the NeMo container
On a machine with NVIDIA GPUs and drivers installed, start the NeMo container. NeMo-Aligner is already installed inside it under /opt/.
docker run --gpus all -it --rm --shm-size=8g --ulimit memlock=-1 --ulimit stack=67108864 nvcr.io/nvidia/nemo:24.07Or install into your own environment
After installing the NeMo Toolkit (NeMo-Aligner shares its requirements plus PyTriton), add the aligner package with pip.
pip install nemo-alignerInstall the latest commit instead
If you prefer the newest source, clone the repo and install from the working directory.
pip install .Explore examples and tutorials
Run alignment jobs using the GPT examples and follow the NeMo Framework alignment tutorials for end-to-end RLHF, DPO, and SteerLM workflows.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Run RLHF with PPO or REINFORCE to align a large open LLM to be safer and more helpful
- Train a reward model from human preference data, such as the HelpSteer2 setup
- Apply Direct Preference Optimization (DPO) as a simpler alternative to full RLHF
- Use SteerLM to build a user-steerable model via attribute-conditioned fine-tuning
How NeMo-Aligner compares
NeMo-Aligner alongside other open-source rlhf & alignment tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Heretic | ★ 44k | A command-line tool that removes refusal behaviour from transformer language models by directional ablation, using an Optuna parameter search that co-minimizes refusals and KL divergence from the original model. |
| Open-R1 | ★ 26.5k | An open reproduction of the DeepSeek-R1 reasoning pipeline, with scripts for GRPO training and reasoning-data generation. |
| verl | ★ 24.4k | Volcano Engine's RL post-training framework (HybridFlow) for building GRPO, PPO, and other RL pipelines on top of FSDP, Megatron, and vLLM. |
| TRL | ★ 19.9k | Hugging Face's post-training library with trainers for SFT, reward modeling, DPO, PPO, and GRPO to align language models with preferences. |
| Agent Lightning | ★ 19k | An open-source trainer from Microsoft that improves AI agents built with any framework using reinforcement learning, prompt optimization, and supervised fine-tuning. |
| ART | ★ 10.9k | OpenPipe's Agent Reinforcement Trainer for post-training LLM agents on multi-step tasks using GRPO and rule- or judge-based rewards. |
| OpenRLHF | ★ 10.2k | A Ray- and vLLM-based RLHF framework that scales PPO, GRPO, and REINFORCE++ training to models with 70B+ parameters. |
| NeMo-Aligner | ★ 851 | Scalable toolkit for aligning large language models with RLHF, DPO, and SteerLM |

