47 model prices
  1. Home
  2. Releases
  3. TRL
  4. 1.19.0

TRL 1.19.0 release notes

TRL 1.19.0 was released on November 25, 2026. It is the latest version.

v1.19.0 ยท ยท 47 listed changes

Release notes

Features

๐Ÿ‘ฅ Multi-teacher and agent distillation

DistillationTrainer takes a dict of teachers, and each example's teacher_id column picks the one that scores its completion: the fusion stage of MOPD. It also takes environment_factory, with the same contract as GRPOTrainer, so agents can be distilled against stateful environments.

trainer = DistillationTrainer(
    model="Qwen/Qwen2.5-0.5B-Instruct",
    teacher_model={"math": "Qwen/Qwen2.5-Math-1.5B-Instruct", "code": "Qwen/Qwen2.5-Coder-1.5B-Instruct"},
    train_dataset=dataset,  # with a "teacher_id" column: "math" or "code"
)
๐Ÿ• Inkling 2 Mini

Support for thinkingmachines/Inkling-2-Mini: coverage in the VLM tests and an example that teaches it to read analog clocks. LoRA SFT on one H100 in 53 min takes it from 0% to 87.0% of held-out clocks read to the second. Needs transformers>=5.24.0.

โšก AsyncGRPO: faster packing, more architectures
โœ‚๏ธ 2x faster packed SFT with SDPA

BFD packing (the default with packing=True) flattened the batch into one row, so SDPA attended across the whole batch: quadratic, and out of memory on Trainium. Packed examples now stay as rows, with position_ids restarting at each sequence. padding_free=True still flattens.

s/step with packing_strategy="bfd":

v1.18 v1.19
H100, Qwen3-1.7B, SDPA 2.06 1.02
H100, Qwen3-1.7B, flash attention 2 0.828 0.832
Trainium2, Qwen3-0.6B, compiled crashes 3.2

by @qgallouedec in https://github.com/huggingface/trl/pull/7804

๐Ÿ›‘ Fine-tuned models stop at the end of their turn

Qwen base, Gemma 1/2 instruct, Qwen3.5 and a few others don't list their chat template's end-of-turn token as a stop token, so a model fine-tuned on them generated until max_new_tokens. SFTTrainer now adds that token to generation_config.eos_token_id when it's missing, and changes nothing elsewhere (checked on the 348 matching checkpoints among the 3000 most-downloaded Hub repos).

by @albertvillanova in https://github.com/huggingface/trl/pull/8565

๐Ÿ’ฌ More chat templates

assistant_only_loss=True and tool calling work on more checkpoints, all by @albertvillanova:

Other
Removals and requirement bumps

Fixes

Documentation

CI

Flash Attention compatible tiny models, all by @albertvillanova: Gemma3, Mistral Large 4, GLM-5.3-Flash, Remote, Phi-3, Phi-3.5, LFM2, LFM2.5, LFM2.5-MoE, LFM2.5-VL, Qwen2-VL, Qwen3-VL, LLaVA-NeXT, Idefics2, Idefics3, InternVL, Granite 4.0 hybrid, GPT-2, OPT, GPT-NeoX, Bart and Muse Glimmer (#8319, #8320, #8321, #8380, #8381, #8382, #8409, #8410, #8411, #8435, #8436, #8437, #8446, #8478, #8479, #8480, #8481, #8482, #8487, #8488, #8489, #8536, #8537), the Qwen3 models at head_dim=16, the smallest vLLM allows (#8415, #8416, #8417), and fallbacks for the models that refuse it (#8399, #8401, #8402, #8403, #8404)

Tiny models, all by @albertvillanova: pin every tiny model to a Hub commit (#8262, #8264, #8531, #8539), FP8 checkpoints laid out like their references for GLM-5.3-Flash and Mistral3 (#8227, #8298), and new tiny Qwen3-Coder and Qwen3-Coder-Next (#8449, #8544)

Tests that run what users run: AsyncGRPO tests on GRPO's layout (#8146), tools and environments tested through what the user sees (#8251), adapter sync on the stand-in server (#8368), prompt tuning settings (#8557) and consistent test ids (#8563) by @qgallouedec; tiny Qwen3 in the vLLM tests (#8297), tiny models in the async tests (#8470), an MoE teacher in the distillation tests (#8492), conversational data and reward functions in the router and packing tests (#8336, #8337, #8338), AsyncGRPO fp16 (#8421), RewardTrainer with prompt learning (#8485) and the Qwen3-Coder tool-call tests (#8515, #8545) by @albertvillanova

Other, all by @albertvillanova: run the OpenEnv harness tests in the experimental CI (#8036), skip experimental tests on draft PRs (#8301), post chat template checks to Slack only from main (#8408), time out test steps after 60 minutes (#8422), report tests that raise peak host memory by 2 GB or more (#8442), stand-in vLLM server fixes (#8379, #8430), chat template tests (#8312, #8570), test fixes (#8261, #8265, #8407, #8448), warning filters (#8392, #8395, #8396, #8397, #8543), plus dependency bumps by @dependabot[bot] (#8374, #8519)

New Contributors

Full Changelog: https://github.com/huggingface/trl/compare/v1.18.0...v1.19.0

Source: GitHub release v1.19.0

Older: 1.18.2TRL