{
    "product": {
        "slug": "trl",
        "name": "TRL",
        "kind": "resource",
        "website": "https://huggingface.co/docs/trl/index",
        "page": "https://listme.name/software/trl",
        "tagline": "Hugging Face library for supervised, preference and reinforcement fine-tuning",
        "summary": "TRL is an Apache-2.0 Python library from Hugging Face for post-training language models with supervised fine-tuning, DPO, GRPO and KTO. It builds on Transformers and PEFT, so LoRA and QLoRA run through the same trainers, and it includes a command-line interface.",
        "developer": "Hugging Face",
        "platforms": [
            "cli"
        ],
        "pricing": "open-source",
        "price_note": "Free under Apache-2.0; compute costs are your own",
        "free_to_use": true,
        "open_source": true,
        "license": "Apache-2.0",
        "source": "https://github.com/huggingface/trl",
        "strengths": [
            "Official Hugging Face library with SFT, DPO, GRPO and KTO trainers",
            "LoRA and QLoRA through PEFT on Transformers models",
            "Scales from one GPU to multi-node runs with Accelerate and DeepSpeed"
        ],
        "limits": [
            "No graphical interface; every run is code or a command-line call",
            "Needs a working Python and PyTorch environment before the first run"
        ],
        "checked": "2026-11-01",
        "connected_to_publisher": false,
        "overview": "TRL provides trainer classes, including SFTTrainer, DPOTrainer, GRPOTrainer and KTOTrainer, that take a Transformers model and a dataset. Its README says training scales from a single GPU to multi-node clusters through Accelerate and DeepSpeed, and that it integrates Unsloth for faster kernels. It installs with pip or uv.\n\nBecause TRL is a library, each run is a Python script or a command-line call, and there is no graphical interface. That suits engineers who want to read and change the training loop and who already use Transformers. People who want a web form or YAML recipes will find LLaMA-Factory or Axolotl quicker to start.",
        "highlights": [
            "SFTTrainer and DPOTrainer",
            "GRPOTrainer",
            "KTOTrainer",
            "PEFT LoRA and QLoRA",
            "Command-line interface",
            "Unsloth integration"
        ],
        "json": "https://listme.name/api/v1/products/trl.json"
    },
    "rankings": [
        {
            "list": "llm-fine-tuning-tools",
            "name": "LLM fine-tuning tools",
            "page": "https://listme.name/best/llm-fine-tuning-tools",
            "rank": 4,
            "of": 12,
            "score": 87.5,
            "verdict": "The official Hugging Face library for SFT, DPO, GRPO and KTO, built on Transformers and PEFT. It has no graphical interface, so it expects more Python work than the configured tools above it.",
            "best_for": "Python developers building custom training loops"
        }
    ],
    "alternatives": [
        {
            "slug": "unsloth",
            "name": "Unsloth",
            "score": 93,
            "page": "https://listme.name/software/unsloth"
        },
        {
            "slug": "llama-factory",
            "name": "LLaMA-Factory",
            "score": 91,
            "page": "https://listme.name/software/llama-factory"
        },
        {
            "slug": "axolotl",
            "name": "Axolotl",
            "score": 89.5,
            "page": "https://listme.name/software/axolotl"
        },
        {
            "slug": "transformer-lab",
            "name": "Transformer Lab",
            "score": 84,
            "page": "https://listme.name/software/transformer-lab"
        },
        {
            "slug": "h2o-llm-studio",
            "name": "H2O LLM Studio",
            "score": 80.5,
            "page": "https://listme.name/software/h2o-llm-studio"
        },
        {
            "slug": "oumi",
            "name": "Oumi",
            "score": 79,
            "page": "https://listme.name/software/oumi"
        },
        {
            "slug": "litgpt",
            "name": "LitGPT",
            "score": 76.5,
            "page": "https://listme.name/software/litgpt"
        },
        {
            "slug": "mlx-lm",
            "name": "MLX LM",
            "score": 75,
            "page": "https://listme.name/software/mlx-lm"
        },
        {
            "slug": "together-ai",
            "name": "Together AI",
            "score": 72.5,
            "page": "https://listme.name/software/together-ai"
        },
        {
            "slug": "tinker",
            "name": "Tinker",
            "score": 70,
            "page": "https://listme.name/software/tinker"
        }
    ],
    "links": {
        "page": "https://listme.name/software/trl",
        "markdown": "https://listme.name/software/trl.md",
        "badge": "https://listme.name/badge/trl.svg",
        "alternatives_page": "https://listme.name/alternatives/trl",
        "alternatives_json": "https://listme.name/api/v1/alternatives/trl.json"
    },
    "source": "https://listme.name",
    "license": "Free to read and cite with attribution to listme.name.",
    "docs": "https://listme.name/developers"
}