---
name: Fine-tuning
slug: fine-tuning
organization_slug: hugging-face
category: ai
source_count: 2
canonical: https://releases.sh/hugging-face/fine-tuning
---

# Fine-tuning

Libraries for efficient model fine-tuning and alignment

## Sources (2)

- [PEFT](https://releases.sh/hugging-face/peft) — `github`
- [TRL](https://releases.sh/hugging-face/trl) — `github`

## Recent Releases

_Summaries below — fetch the release's `canonical` URL for full content, or `url` for the original source._

<Release source="trl" version="v1.8.0" date="July 9, 2026" published="2026-07-09T18:41:28.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.8.0" canonical="https://releases.sh/release/rel_YYu6ID45bA0Ojq05mBYK8" truncated="true">
KTO trainer graduates from experimental to the top-level trl package with the same API as DPO/GRPO/SFT, and the experimental import path still works with a FutureWarning. Environment-owned rewards let agentic RL environments define their own reward via a reserved get_reward() method, and multi-environment support allows a single training run to handle multiple environments with environment-specific tool schemas. GRPO now supports both static and adaptive entropy regularization to encourage exploration and prevent policy collapse.
</Release>

<Release source="trl" version="v1.7.1" date="July 4, 2026" published="2026-07-04T04:05:54.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.7.1" canonical="https://releases.sh/release/rel_m-2DKXJ2DPtKCbQ7eiKwY" truncated="true">
Fixed a hang in GRPO + vLLM colocate + PEFT on non-NVLink hardware and corrected dataset fingerprinting in DPO/SFT tokenization. Also integrated the new response parsing API, added a prompt-learning guard for PEFT with Liger in GRPO, and fixed activation offload storage deduplication.
</Release>

<Release source="trl" version="v1.7.0" date="June 25, 2026" published="2026-06-25T22:52:18.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.7.0" canonical="https://releases.sh/release/rel_b-tcAO3CgHjd-FDiEqan7" truncated="true">
The default SFT loss_type is now "chunked_nll", delivering ~30% less peak VRAM on average with neutral or slightly faster wall-clock time. Also introduces experimental GMPO trainer, transformers continuous batching, AsyncGRPO weight sync with vLLM 0.22+, and paddding-free AsyncGRPO.
</Release>

<Release source="trl" version="v1.6.0" date="June 11, 2026" published="2026-06-11T22:00:15.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.6.0" canonical="https://releases.sh/release/rel_4aRgXtA9OXhhfQPQK3xdf" truncated="true">
The release introduces a new experimental A2POTrainer for optimal advantage regression and grants KTO trainer support for vision-language models. The AsyncRolloutWorker now runs in a separate process to avoid GIL contention and potential NCCL watchdog timeouts, along with fixes for aiohttp retries and all-NaN reward columns. Gold distillation trainer now aligns tokens via byte offsets, and SDFT/SDPO leverage the vLLM server for live teacher logprobs. Other features include bidirectional masked importance sampling for IcePop, support for NemotronH and Nemotron 3 Ultra, additional training chat templates, and decoupled self-distillation trainers.
</Release>

<Release source="trl" version="v1.5.1" date="May 27, 2026" published="2026-05-27T15:26:53.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.5.1" canonical="https://releases.sh/release/rel_8_eXU-zwuSdzRk6xMoDTB" truncated="true">
Trainer telemetry is now gated on an explicit class-name allowlist, restricting which trainer classes can send telemetry.
</Release>

<Release source="trl" version="v1.5.0" date="May 25, 2026" published="2026-05-25T15:33:19.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.5.0" canonical="https://releases.sh/release/rel_DGph8QcHlLU1aD0WmSMY3" truncated="true">
Fixed an exponential backtracking bug in Qwen3/Qwen3.5/GLM4MoE response parsing that caused GRPOTrainer to hang indefinitely on truncated tool-call blocks, reducing worst-case complexity from O(2ⁿ) to O(n). Also fixed a CUDA memory leak in BNB dequantization buffers and stale state in OffloadActivations. Added training chat templates for Phi-3.5, Qwen3-VL, and Qwen3.5 Think/NoThink, and final logits softcapping support for AsyncGRPOTrainer on models like Gemma 2.
</Release>

<Release source="trl" version="v1.4.0" date="May 9, 2026" published="2026-05-09T00:01:36.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.4.0" canonical="https://releases.sh/release/rel_BrSDFutYy_LBOtbeHH_OH" truncated="true">
A new `loss_type="chunked_nll"` option for SFT drastically reduces peak activation memory by computing cross-entropy over tokens in checkpointed chunks instead of materializing the full `[batch × seq × vocab]` logits tensor, unlocking sequence lengths that previously caused out-of-memory errors. Also added OpenReward Standard environment adapter support, length-normalized DPO sigmoid loss, training chat templates for Cohere, Cohere2, Gemma 3, Qwen3, and Qwen2.5, and a training-invariance test suite to catch numerical drift across trainer configurations.
</Release>

<Release source="trl" version="v1.3.0" date="April 26, 2026" published="2026-04-26T15:40:07.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.3.0" canonical="https://releases.sh/release/rel_aiaSofl7KZgttCpwD70W-" truncated="true">
## Features

### Qwen 3.6 integration

<img width="1536" height="1024" alt="ChatGPT Image Apr 26, 2026 at 11_16_18 AM" src="https://github.com/use...
</Release>

<Release source="trl" version="v1.2.0" date="April 17, 2026" published="2026-04-17T01:13:05.000Z" url="https://github.com/huggingface/trl/releases/tag/v1.2.0" canonical="https://releases.sh/release/rel_vSOkDQsjEJAbDUIKmPuqj" truncated="true">
## Features

### New `SSDTrainer` — Simple Self-Distillation

<img width="778" height="334" alt="Screenshot 2026-04-16 at 9 08 04 PM" src="https:/...
</Release>

<Release source="peft" version="v0.19.1" date="April 16, 2026" published="2026-04-16T15:50:38.000Z" url="https://github.com/huggingface/peft/releases/tag/v0.19.1" canonical="https://releases.sh/release/rel_Ozg1XLmUA2NW-hdYxL0RF" truncated="true">
A small patch release containing these fixes:

- #3161
- #3165

**Full Changelog**: https://github.com/huggingface/peft/compare/v0.19.0...v0.19.1
</Release>

**Tags:** `fine-tuning`, `python`, `rlhf`
