Tinh chỉnh, huấn luyện & dữ liệu

TRL

huggingface/trl

A library for post-training transformer models with supervised fine-tuning and preference-optimization methods.

★ 19,5KSố sao
⑂ 3,1KFork
109Vấn đề đang mở
PythonNgôn ngữ
Apache-2.0Giấy phép
Q84Điểm biên tập

Tổng quan

TRL builds on the Transformers ecosystem and provides trainers for methods such as supervised fine-tuning (SFT), direct preference optimization (DPO), and group relative policy optimization (GRPO). It supports distributed training integrations and parameter-efficient fine-tuning workflows.

Tính năng chính

  • SFT, DPO, GRPO and related trainers
  • Transformers ecosystem integration
  • Distributed training support
  • CLI and Python APIs

Yêu cầu, cài đặt và bắt đầu nhanh

Install the Python package with `pip install trl`; follow the docs for optional Accelerate, PEFT, and hardware setup.

Cách sử dụng

Choose a trainer, prepare a compatible dataset and model, configure training arguments, then run the trainer or CLI command.

Khả năng tương thích của mô hình và trường hợp sử dụng

Designed for transformer models in the Hugging Face ecosystem; architecture and hardware support depends on the chosen method and dependencies.

Ghi chú về giấy phép và rủi ro

The repository declares Apache-2.0. Dataset, base-model, and hosted service terms are separate.

Phát hành và bảo trì

See the official repository for current releases and changes.

Langfuse

langfuse/langfuse

★ 32,4KTypeScript

DeepSpeed

deepspeedai/deepspeed

★ 43KPython

aikit

kaito-project/aikit

★ 535Go