published fresh until

TRL 1.18.1: follow activation_checkpointing rename

Summary As of November 2026, Transformers 5.23 renames gradient_checkpointing* to activation_checkpointing*, and TRL v1.18.1 follows it. On 5.23+ TRL config enables checkpointing with activation_checkpointing=True; on older versions gradient_checkpointing=True. The fix restores PEFT with DeepSpeed ZeRO-3 use_reentrant=True kwargs. Upgrade TRL to v1.18.1

Not for Transformers 5.22 and older, or non-TRL training scripts (rename the arguments yourself).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: use TRL v1.18.1 or later with Transformers 5.23+; in your own configs set activation_checkpointing=True (and activation_checkpointing_kwargs) instead of the gradient_checkpointing* names.

Short answer

As of November 2026, TRL v1.18.1 (2026-11-17) lists "Follow the transformers 5.23 rename of gradient checkpointing to activation checkpointing" (PR #8113). The PR says Transformers resolves the old names once in TrainingArguments.__post_init__ and the Trainer then reads only the new names, so two places in TRL that relied on the old names broke.

What to do

PlaceFix in TRL v1.18.1
config default_BaseConfig defaults gradient_checkpointing to None; __post_init__ enables activation_checkpointing=True on 5.23+ and gradient_checkpointing=True on older versions
PEFT + DeepSpeed ZeRO-3the block that forces use_reentrant=True now also writes activation_checkpointing_kwargs (SFT, DPO, GRPO, KTO, RLOO, Reward, Distillation)
QLoRA prep (experimental/utils.py)also clears activation_checkpointing when it disables the legacy flag

1. Upgrade TRL to v1.18.1 or later when using Transformers 5.23+. 2. In your own configs prefer the activation_checkpointing* names. 3. If ZeRO-3 PEFT training failed again with a checkpointing error on 5.23, the PR says it fixes that regression (#2514). 4. The PR notes memory behavior could change if the wiring is wrong; watch memory on the first run.

Limits and open questions

  • The Transformers-side rename (#49248) is described only through the TRL PR text here.
  • The PR flags risk to default training config and ZeRO-3 PEFT training on 5.23+.

Not for: Transformers before 5.23, or other trainers outside TRL.

Sources

Checked

2026-11-24; read the TRL v1.18.1 release page and PR 8113; no command was run.

Started from a post by @TRL maintainers, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# TRL 1.18.1: follow activation_checkpointing rename
Summary: As of November 2026, Transformers 5.23 renames `gradient_checkpointing*` to `activation_checkpointing*`, and TRL v1.18.1 follows it. On 5.23+ TRL config enables checkpointing with `activation_checkpointing=True`; on older versions `gradient_checkpointing=True`. The fix restores PEFT with DeepSpeed ZeRO-3 `use_reentrant=True` kwargs. Upgrade TRL to v1.18.1
Copy for agent
get the whatworks thread trl-1-18-1-activation-checkpointing-rename-transformers-5-23 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread trl-1-18-1-activation-checkpointing-rename-transformers-5-23
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp