---
title: "20x Faster TRL Fine-tuning with RapidFire AI"
description: "Hugging Face TRL now integrates RapidFire AI, which runs multiple SFT, DPO or GRPO fine-tuning configurations concurrently, even on a single GPU."
url: "https://swe.quest/articles/20x-faster-trl-fine-tuning-with-rapidfire-ai-9a83eb84953b1723"
canonical: "https://huggingface.co/blog/rapidfireai"
source: "Hugging Face"
published: "2025-11-21"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["model-training","llms","scheduling","python"]
---

# 20x Faster TRL Fine-tuning with RapidFire AI

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-11-21, 5 min read, Announcement. Original: [https://huggingface.co/blog/rapidfireai](https://huggingface.co/blog/rapidfireai)

## Summary

Hugging Face TRL now integrates RapidFire AI, which runs multiple SFT, DPO or GRPO fine-tuning configurations concurrently, even on a single GPU. It shards the dataset into chunks and cycles configs through GPUs at chunk boundaries, using shared-memory adapter spilling and loading for checkpointing. That gives early apples-to-apples metric comparisons and lets you stop, resume or clone-and-modify runs mid-flight with warm starts. Reported benchmarks on A100s with ~1B models show 15–20× faster time to a comparable best training loss than sequential config sweeps. Setup is a drop-in swap of TRL configs for RFSFTConfig, RFDPOConfig or RFGRPOConfig, with an MLflow-based dashboard.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- LoRA adapters
- Hugging Face Transformers

## Keywords

RapidFire AI, TRL, Hugging Face, LoRA, GRPO, DPO, MLflow, TinyLlama

## Related posts

- [No GPU left behind: Unlocking Efficiency with Co-located vLLM in TRL](https://swe.quest/articles/no-gpu-left-behind-unlocking-efficiency-with-co-located-vllm-in-trl-6f9360880cc9b7e0.md): Hugging Face · 2025-06-03 · Hard · 22 min read · Model training, Inference & serving, Performance engineering, LLMs
  TRL v0.18.0 can run vLLM co-located with the training job on the same GPUs. vLLM's external\_launcher executor puts it inside the torch.distributed process group, replacing the separate HTTP server that left training and inference GPUs idle in turn during GRPO's frequent generation steps.
- [Make LLM Fine-tuning 2x faster with Unsloth and 🤗 TRL](https://swe.quest/articles/make-llm-fine-tuning-2x-faster-with-unsloth-and-trl-5db8c0b6a40cf74e.md): Hugging Face · 2024-01-10 · Medium · 5 min read · Model training, LLMs, Performance engineering, Python
  Unsloth speeds up QLoRA fine-tuning of Llama and Mistral-family models by rewriting PyTorch modules as Triton kernels with manually derived backpropagation.
- [Async GRPO with LoRA across HF Jobs: a bucket, a proxy, and no NCCL](https://swe.quest/articles/async-grpo-with-lora-across-hf-jobs-a-bucket-a-proxy-and-no-nccl-a625fff69adbae9a.md): Hugging Face · 2026-09-10 · Hard · 29 min read · Model training, Inference & serving, Caching, Load balancing, LLMs
  TRL v1.14's AsyncGRPOTrainer can train a LoRA adapter and sync only that adapter to vLLM, which lets the trainer and inference replicas run as separate Hugging Face Jobs on separate machines without NCCL.
- [Fine-tuning Llama 2 70B using PyTorch FSDP](https://swe.quest/articles/fine-tuning-llama-2-70b-using-pytorch-fsdp-0e8dde34b4ad3fd0.md): Hugging Face · 2023-09-13 · Hard · 10 min read · Model training, LLMs, Hardware, Python
  Full fine-tuning of Llama 2 70B across two nodes of 8×A100 80GB GPUs with PyTorch FSDP, Hugging Face Accelerate, Transformers and TRL, addressing three obstacles.
- [Preference Optimization for Vision Language Models](https://swe.quest/articles/preference-optimization-for-vision-language-models-a84799e96613bf21.md): Hugging Face · 2024-07-10 · Hard · 11 min read · Model training, Computer vision, LLMs, Python
  TRL now supports direct preference optimization (DPO) for vision language models, trained on chosen/rejected answer pairs rather than fixed labels.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
