项目 · 能力必读进阶
用TRL对Transformer语言模型做强化学习后训练,含SFT、GRPO等训练器与示例
原题
Another week, another massive model you can train with TRL: …
TRL是Hugging Face推出的基础模型后训练库,覆盖监督微调、蒸馏、强化学习等阶段,提供各类Trainer及配套文档。仓库示例包含用SFT训练Mistral Large 4等大模型的脚本,近期稳定了通过解耦生成与训练来加速GRPO的AsyncGRPOTrainer。适合需要微调或对齐大模型的开发者使用。
- 是否付费
- 免费公开仓库
- 预估学习时长
- 未知
- 收录时间
- 2026-11-22
热度
热度强
- 7 天新增 star
- +59
- 30 天新增 star
- 暂无数据
- Hacker News
- 没有
- 社区讨论
- 2 帖
项目信息
- 语言
- Python
- 许可
- Apache-2.0
- 最近提交
- 2026-11-28
- Star
- 19,851
- Fork
- 3,179
上手方式
bash
pip install trl原文涉及
- GitHub - huggingface/transformers: 🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and t…(新标签页打开)github.com
- GitHub - huggingface/accelerate: 🚀 A simple way to launch, train, and use PyTorch models on almost any device and distributed configuration, automatic mixed precision (including fp8), and easy-to-co…(新标签页打开)github.com