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
| Old | New |
|---|---|
trl.experimental.async_grpo.async_grpo_config | from trl import AsyncGRPOConfig |
trainer in trl.experimental.async_grpo | from trl import AsyncGRPOTrainer |
| rollout loop imports | trl.trainer.async_grpo_trainer (AsyncRolloutLoop, Rollout, TurnRecord, RolloutGroup) |
| vLLM client | trl.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 waits | both 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.
AsyncDistillationTraineris still experimental and got the same constructor removals.
Not for: the synchronous GRPOTrainer, or other TRL trainers.
Sources
- TRL v1.18.0 release notes, TRL maintainers, 2026-11-13: "with a
FutureWarning, until v2.0.0." - PR 8288: move AsyncGRPOTrainer to the top-level package, AmineDiro, 2026-11-13: "
AsyncGRPOConfigandAsyncGRPOTrainerare registered intrl/trainer/__init__.pyandtrl/__init__.py."
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