trl breaking changes
Updated December 4, 2026
On this page
Latest version 1.19.0, released November 25, 2026. Source repository
Its 0.25.0 release drops Python 3.9. Python end of life dates.
- From 0.29.0 to 1.0.0: 219 breaking changes in 2 versions.
- From 0.24.0 to 1.0.0: 963 breaking changes in 7 versions.
trl 1.0.0 breaking changes
- Removed
TRACKIO_SPACE_ID
The deprecated TRACKIO_SPACE_ID environment variable is no longer read by any script. Code that sets it will have no effect. github.com - Removed
trl.cli.commands.env.print_env
trl.cli.commands.env.print_env was removed in trl 1.0.0 pypi.org - Removed
trl.cli.commands.training.launch_training_script
trl.cli.commands.training.launch_training_script was removed in trl 1.0.0 pypi.org - Removed
trl.cli.commands.training.resolve_accelerate_config_argument
trl.cli.commands.training.resolve_accelerate_config_argument was removed in trl 1.0.0 pypi.org - Removed
trl.cli.commands.vllm_serve.make_vllm_serve_parser
trl.cli.commands.vllm_serve.make_vllm_serve_parser was removed in trl 1.0.0 pypi.org - Removed
trl.cli.commands.vllm_serve.vllm_serve_main
trl.cli.commands.vllm_serve.vllm_serve_main was removed in trl 1.0.0 pypi.org - Removed
trl.cli.main.CommandContext.remaining_args
CommandContext.remaining_args was removed in trl 1.0.0 pypi.org - Removed
trl.cli.main.TrlParser
trl.cli.main.TrlParser was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.bco.bco_config.BaseConfig
trl.experimental.bco.bco_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.bco.bco_trainer.BaseTrainer
trl.experimental.bco.bco_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.bco.BCOConfig.truncation_mode
BCOConfig.truncation_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.bco.BCOTrainer.truncation_mode
BCOTrainer.truncation_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.cpo.cpo_config.BaseConfig
trl.experimental.cpo.cpo_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.cpo.cpo_trainer.BaseTrainer
trl.experimental.cpo.cpo_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.cpo.CPOConfig.truncation_mode
CPOConfig.truncation_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.cpo.CPOTrainer.truncation_mode
CPOTrainer.truncation_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.gold_trainer.ensure_master_addr_port
trl.experimental.gold.gold_trainer.ensure_master_addr_port was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.gold_trainer.GOLDVLLMSyncCallback
trl.experimental.gold.gold_trainer.GOLDVLLMSyncCallback was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.gold_trainer.VLLMClient
trl.experimental.gold.gold_trainer.VLLMClient was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDConfig.steps_per_generation
GOLDConfig.steps_per_generation was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDConfig.student_model_revision
GOLDConfig.student_model_revision was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDConfig.trl_project
GOLDConfig.trl_project was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_client
GOLDTrainer.vllm_client was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_enable_sleep_mode
GOLDTrainer.vllm_enable_sleep_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_engine
GOLDTrainer.vllm_engine was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_gpu_memory_utilization
GOLDTrainer.vllm_gpu_memory_utilization was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_mode
GOLDTrainer.vllm_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_structured_outputs_regex
GOLDTrainer.vllm_structured_outputs_regex was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_tensor_parallel_size
GOLDTrainer.vllm_tensor_parallel_size was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.kto.kto_config.BaseConfig
trl.experimental.kto.kto_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.kto.kto_trainer.BaseTrainer
trl.experimental.kto.kto_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.online_dpo.online_dpo_config.BaseConfig
trl.experimental.online_dpo.online_dpo_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.online_dpo.online_dpo_trainer.BaseTrainer
trl.experimental.online_dpo.online_dpo_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.online_dpo.OnlineDPOTrainer.get_eval_dataloader
OnlineDPOTrainer.get_eval_dataloader was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.online_dpo.OnlineDPOTrainer.get_train_dataloader
OnlineDPOTrainer.get_train_dataloader was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.orpo.orpo_config.BaseConfig
trl.experimental.orpo.orpo_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.orpo.orpo_trainer.BaseTrainer
trl.experimental.orpo.orpo_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.orpo.ORPOConfig.truncation_mode
ORPOConfig.truncation_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.orpo.ORPOTrainer.truncation_mode
ORPOTrainer.truncation_mode was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.ppo.ppo_config.BaseConfig
trl.experimental.ppo.ppo_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.ppo.ppo_trainer.BaseTrainer
trl.experimental.ppo.ppo_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.prm.prm_config.BaseConfig
trl.experimental.prm.prm_config.BaseConfig was removed in trl 1.0.0 pypi.org - Removed
trl.experimental.prm.prm_trainer.BaseTrainer
trl.experimental.prm.prm_trainer.BaseTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.DatasetMixtureConfig
trl.scripts.dpo.DatasetMixtureConfig was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.DPOConfig
trl.scripts.dpo.DPOConfig was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.DPOTrainer
trl.scripts.dpo.DPOTrainer was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.get_dataset
trl.scripts.dpo.get_dataset was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.get_kbit_device_map
trl.scripts.dpo.get_kbit_device_map was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.get_peft_config
trl.scripts.dpo.get_peft_config was removed in trl 1.0.0 pypi.org - Removed
trl.scripts.dpo.get_quantization_config
trl.scripts.dpo.get_quantization_config was removed in trl 1.0.0 pypi.org
And 166 more in this version. Sign up to see every change
trl 1.0.0rc1 breaking changes
- Renamed
bfd-requeue
The "bfd-requeue" packing strategy has been renamed to "bfd_split". Update code that passes the old name. github.com - Behavior changed
A MIGRATION.md guide covers the breaking changes when upgrading from TRL v0 to v1. Read it before upgrading. github.com - Default changed
vllm_mode
The default value of vllm_mode is now "colocate". Set it explicitly if you relied on the previous default. github.com
trl 0.29.0 breaking changes
- Removed
Several deprecated classes that moved to the experimental package were removed from the stable API. github.com - Removed
BCO
The deprecated BCO trainer was removed because it moved to the experimental package. Code that imports it from the stable API must switch to the experimental location. github.com - Removed
CPO
The deprecated CPO trainer was removed because it moved to the experimental package. Code that imports it from the stable API must switch to the experimental location. github.com - Removed
Judges
The deprecated Judges classes were removed because they moved to the experimental package. Code must use the experimental location. github.com - Removed
ORPO
The deprecated ORPO trainer was removed because it moved to the experimental package. Code must use the experimental location. github.com - Removed
PPO
The deprecated PPO trainer was removed because it moved to the experimental package. Code must use the experimental location. github.com - Removed
PRM
The deprecated PRM trainer was removed because it moved to the experimental package. Code must use the experimental location. github.com - Removed
trl.AllTrueJudge
trl.AllTrueJudge was removed in trl 0.29.0 pypi.org - Removed
trl.AutoModelForCausalLMWithValueHead
trl.AutoModelForCausalLMWithValueHead was removed in trl 0.29.0 pypi.org - Removed
trl.AutoModelForSeq2SeqLMWithValueHead
trl.AutoModelForSeq2SeqLMWithValueHead was removed in trl 0.29.0 pypi.org
And 187 more in this version. Sign up to see every change
trl 0.28.0 breaking changes
- Removed
GRPOTrainer.warnings_issued
Code reading warnings_issued from the trainer no longer works. github.com - Removed
label_pad_token_id
The label_pad_token_id option was removed from experimental trainers. Stop passing it. github.com - Removed
max_prompt_length
max_prompt_length was removed from experimental PRM, BCO, CPO and ORPO trainers. Stop passing it. github.com - Removed
padding_value
padding_value was removed from experimental CPO; use pad_token_id instead. github.com - Removed
ref_model_init_kwargs
The ref_model_init_kwargs option was removed from experimental KTO and BCO trainers. Stop passing it. github.com - Removed
TrainingArguments.push_to_hub_token
For transformers v5 and above, push_to_hub_token handling changed in SFTTrainer init. github.com - Removed
trl.BCOConfig.label_pad_token_id
BCOConfig.label_pad_token_id was removed in trl 0.28.0 pypi.org - Removed
trl.BCOConfig.max_prompt_length
BCOConfig.max_prompt_length was removed in trl 0.28.0 pypi.org - Removed
trl.BCOConfig.padding_value
BCOConfig.padding_value was removed in trl 0.28.0 pypi.org - Removed
trl.BCOConfig.ref_model_init_kwargs
BCOConfig.ref_model_init_kwargs was removed in trl 0.28.0 pypi.org
And 94 more in this version. Sign up to see every change
trl 0.27.0 breaking changes
- Removed
Previously deprecated functions and parameters were removed. Code still calling them must be updated. github.com - Removed
KTO no longer supports encoder-decoder models. github.com - Removed
Support for DbrxForCausalLM has been removed. github.com - Removed
trl.DisabledTqdm
trl.DisabledTqdm was removed in trl 0.27.0 pypi.org - Removed
trl.experimental.gfpo.GFPOConfig.wandb_log_unique_prompts
GFPOConfig.wandb_log_unique_prompts was removed in trl 0.27.0 pypi.org - Removed
trl.experimental.gfpo.GFPOTrainer.guided_decoding_regex
GFPOTrainer.guided_decoding_regex was removed in trl 0.27.0 pypi.org - Removed
trl.experimental.gold.GOLDConfig.vllm_guided_decoding_regex
GOLDConfig.vllm_guided_decoding_regex was removed in trl 0.27.0 pypi.org - Removed
trl.experimental.gold.GOLDTrainer.vllm_guided_decoding_regex
GOLDTrainer.vllm_guided_decoding_regex was removed in trl 0.27.0 pypi.org - Removed
trl.experimental.ppo.ppo_config.OnPolicyConfig
trl.experimental.ppo.ppo_config.OnPolicyConfig was removed in trl 0.27.0 pypi.org - Removed
trl.extras.dataset_formatting.conversations_formatting_function
trl.extras.dataset_formatting.conversations_formatting_function was removed in trl 0.27.0 pypi.org
And 107 more in this version. Sign up to see every change
trl 0.26.0 breaking changes
- Removed
CPOTrainer
CPOTrainer moved to the experimental module and is no longer in the stable API. github.com - Removed
GKDTrainer
GKDTrainer moved to the experimental module and is no longer in the stable API. github.com - Removed
GRPOTrainer.loss_type
Deprecated batched formatting in GOLDTrainer was removed; use the current formatting path. github.com - Removed
KTOTrainer
KTOTrainer moved to the experimental module and is no longer in the stable API. github.com - Removed
MergeModelCallback
MergeModelCallback moved to the experimental module. github.com - Removed
NashMDTrainer
NashMDTrainer moved to the experimental module and is no longer in the stable API. github.com - Removed
ORPOTrainer
ORPOTrainer moved to the experimental module and is no longer in the stable API. github.com - Removed
PPOTrainer
PPOTrainer now lives in trl.experimental.ppo. github.com - Removed
PRMTrainer
PRMTrainer now lives in trl.experimental.prm. github.com - Removed
RLOOTrainer
RLOOTrainer no longer emits a deprecation warning; the warning was removed, not the trainer. github.com
And 210 more in this version. Sign up to see every change
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
trl 0.25.0 breaking changes
- Removed
Python 3.9 is no longer supported; users on it must upgrade their Python version. github.com - Removed
liger_loss
The liger loss option is removed, so code using it must switch to liger kernel. github.com
And 104 more in this version.
trl 0.24.0 breaking changes
- Removed
apex
Apex support has been removed. github.com - Removed
block_size
block_size is no longer passed in generation kwargs. github.com
And 141 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.