SFTTrainer enhancements and fixesThis patch release adds multiple fixes for the SFTTrainer and enhancements. Another patch release is coming for fixing an issue with PPOTrainer and Google Colab combined with wandb logging
SFTTrainer] Relax dataset constraints by @younesbelkada in https://github.com/lvwerra/trl/pull/442SFTTrainer] Fix non packed dataset by @younesbelkada in https://github.com/lvwerra/trl/pull/444core] Add stale bot by @younesbelkada in https://github.com/lvwerra/trl/pull/447SFTTrainer] Introducing DataCollatorForCompletionOnlyLM by @younesbelkada in https://github.com/lvwerra/trl/pull/445ConstantLengthDataset] Fix packed dataset issue by @younesbelkada in https://github.com/lvwerra/trl/pull/452Full Changelog: https://github.com/lvwerra/trl/compare/v0.4.4...v0.4.5
Fetched April 7, 2026