trl vs verl
Two of the top projects in Training and fine-tuning, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
trl
Python library for post-training LLMs with SFT, DPO, GRPO and KTO
verl
RL post-training library for LLMs with PPO, GRPO, FSDP and Megatron
Verdict
trl ranks higher, 91 to 89. Of the 4 score parts we measure for both, trl leads on 1, verl on 2 and 1 is even.
- Adoptionverl leads by 3 points, 92 to 89: close to even.
- FreshnessEven at 100.
- Maintenancetrl leads by 15 points, 92 to 77: a wide gap.
- Agent-readyverl leads by 15 points, 85 to 70: a wide gap.
Pick trl if you are
ML engineers fine-tuning and aligning LLMs with Hugging Face tooling
- Covers SFT, DPO, KTO, GRPO and reward model training behind one trainer API
- Scales from one GPU to multi-node via Accelerate, DDP, DeepSpeed ZeRO and FSDP
Pick verl if you are
ML engineers running RL post-training of LLMs on GPU clusters
- FSDP, FSDP2 and Megatron-LM training with vLLM, SGLang or HF rollout
- Covers PPO, GRPO, RLOO, ReMax and REINFORCE++, plus multi-turn tool-calling RL
| What we compare | trl | verl |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 89, widely used | 92, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 92, healthy | 77, fair |
| Agent-ready | 70, partly | 85, ready |
| Facts from GitHub and the README | ||
| Stars | 19.9k | 24.4k |
| License | Apache-2.0 (permissive) | Apache-2.0 (permissive) |
| Last commit | Dec 2026 | Dec 2026 |
| Last release | Nov 2026 | Dec 2026 |
| Language | Python | Python |
| Docker | Yes | Yes |
| GPU | Optional | Required |
| arm64 or Apple Silicon | Not stated | Not stated |
trl
TRL provides trainer classes (SFTTrainer, GRPOTrainer, AsyncGRPOTrainer, DPOTrainer, KTOTrainer, RewardTrainer) for post-training Hugging Face Transformers models. It builds on Accelerate for DDP, DeepSpeed and FSDP scaling, and on PEFT for LoRA/QLoRA. A `trl` CLI runs SFT, DPO and KTO without writing code.
Who it is for: ML engineers fine-tuning and aligning LLMs with Hugging Face tooling
Strengths
- Covers SFT, DPO, KTO, GRPO and reward model training behind one trainer API
- Scales from one GPU to multi-node via Accelerate, DDP, DeepSpeed ZeRO and FSDP
- PEFT integration allows LoRA/QLoRA training of large models on modest hardware
- CLI runs sft, dpo and kto jobs from the shell without code
Weaknesses
- AsyncGRPOTrainer needs a separate vLLM server on a different GPU than the trainer
- Features under trl.experimental may change or be removed in any release
- Tied to the Hugging Face Transformers ecosystem and its model formats
- accuracy_reward needs the extra math-verify install
- GPU optional
- Docker
- Needs transformers, accelerate, peft, datasets, vllm (AsyncGRPOTrainer), math-verify (accuracy_reward)
- Models: Hugging Face Transformers models, LoRA/QLoRA adapters via PEFT
verl
verl is the open-source implementation of the HybridFlow paper from ByteDance Seed. It runs reinforcement learning and supervised fine-tuning for LLMs, using FSDP, FSDP2 or Megatron-LM for training and vLLM, SGLang or HF Transformers for rollout generation. It covers PPO, GRPO, RLOO, ReMax and REINFORCE++ with verifiable or model-based rewards.
Who it is for: ML engineers running RL post-training of LLMs on GPU clusters
Strengths
- FSDP, FSDP2 and Megatron-LM training with vLLM, SGLang or HF rollout
- Covers PPO, GRPO, RLOO, ReMax and REINFORCE++, plus multi-turn tool-calling RL
- README states scaling to 671B models via expert parallelism, with LoRA RL to save memory
- Runs on NVIDIA, AMD and Huawei Ascend; Intel XPU via a plugin
Weaknesses
- Realistic runs need multiple GPUs; not a single-machine tool
- Fully async and one-step-off trainers moved to verl-recipe, pinned to v0.9.1
- Several algorithms (DAPO, GSPO, PRIME) live in the separate verl-recipe repository
- Inference engine versions matter; README warns vLLM 0.7.x has bugs causing OOMs
- GPU required
- Docker
- Needs PyTorch, vLLM or SGLang, Megatron-LM (optional)
- Models: Hugging Face Transformers, ModelScope, Qwen3.5, Qwen3, Qwen2.5
More in Training and fine-tuning
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.
AI app development →Send a project brief (opens in a new tab)