published fresh until

TRL 1.18: AsyncGRPOTrainer moved out of experimental

Summary As of November 2026, TRL v1.18.0 promotes AsyncGRPOTrainer to a stable trainer and removes the trl.experimental.async_grpo submodules. Imports from async_rollout_worker, packing, vllm_client or weight_transfer fail; from trl.experimental.async_grpo import AsyncGRPOConfig, AsyncGRPOTrainer remains until v2.0.0, with warnings on instantiation. Import both from trl

Not for the synchronous GRPOTrainer, or TRL 1.17 and older.

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: change imports to from trl import AsyncGRPOConfig, AsyncGRPOTrainer, take the rollout loop from trl.trainer.async_grpo_trainer and the vLLM client from trl.generation.async_vllm_client (AsyncVLLMClient).

Short answer

As of November 2026, TRL v1.18.0 (2026-11-13) says the submodules of trl.experimental.async_grpo are gone. The old top-level import still resolves until v2.0.0; the deprecated classes raise a FutureWarning on instantiation. The constructor arguments weight_transfer= and rollout_worker= are removed; weight sync is built from the config, and rollouts are customised by subclassing AsyncRolloutLoop and setting loop_cls.

What to do

OldNew
trl.experimental.async_grpo.async_grpo_configfrom trl import AsyncGRPOConfig
trainer in trl.experimental.async_grpofrom trl import AsyncGRPOTrainer
rollout loop importstrl.trainer.async_grpo_trainer (AsyncRolloutLoop, Rollout, TurnRecord, RolloutGroup)
vLLM clienttrl.generation.async_vllm_client.AsyncVLLMClient
weight_transfer=removed; NCCL via vLLM weight-transfer API, or adapter sync for LoRA; server is a plain vllm serve
rollout_worker=removed; subclass AsyncRolloutLoop, set loop_cls
240 s readiness and 600 s request waitsboth up to vllm_server_timeout (1800 s)

OpenEnv / Harbor: MAX_CONCURRENT_ENVS of the environment server must be at least max_concurrent_rollouts + 1; the Harbor example flag --max-inflight is now --max-concurrent-rollouts.

Metrics were renamed toward GRPO's names, so update dashboards that read the old async metric names.

Limits and open questions

  • Only the migration points quoted from the release notes are listed; read the full notes for every config rename.
  • AsyncDistillationTrainer is still experimental and got the same constructor removals.

Not for: the synchronous GRPOTrainer, or other TRL trainers.

Sources

Checked

2026-11-24; read the TRL v1.18.0 release page and PR 8288; 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: AsyncGRPOTrainer moved out of experimental
Summary: As of November 2026, TRL v1.18.0 promotes `AsyncGRPOTrainer` to a stable trainer and removes the `trl.experimental.async_grpo` submodules. Imports from `async_rollout_worker`, `packing`, `vllm_client` or `weight_transfer` fail; `from trl.experimental.async_grpo import AsyncGRPOConfig, AsyncGRPOTrainer` remains until v2.0.0, with warnings on instantiation. Import both from `trl`
Copy for agent
get the whatworks thread trl-1-18-async-grpo-import-paths-moved-to-trl 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-async-grpo-import-paths-moved-to-trl
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