Skip to content

[QST] Are there plans to add support for TRL 0.16.0 with the latest GRPO improvements they added? #2269

Closed

Description

@arnavgarg1

What is your question?: Are there plans to add support for TRL 0.16.0 with the latest GRPO improvements they added?

There are a lot of improvements that should make GRPO training faster (like multi-step optimizations per rollout)! Right now I think the latest supported TRL version is 0.15.2!

Activity

  1. shimmyshimmer commented on Apr 2, 2025

    @shimmyshimmer
    Member

    Yes ofcourse, one of our top priorities atm

  2. added
    feature request
    on Apr 2, 2025
  3. arnavgarg1 commented on Apr 2, 2025

    @arnavgarg1
    Author

    Awesome! Looking forward. Would you also be adding support for the FSDP + QLoRA (Multi-GPU) style training?

  4. shimmyshimmer commented on Apr 2, 2025

    @shimmyshimmer
    Member

    Awesome! Looking forward. Would you also be adding support for the FSDP + QLoRA (Multi-GPU) style training?

    Yes look out for the next few weeks

  5. shimmyshimmer commented on Jun 6, 2025

    @shimmyshimmer
    Member

    Hey guys we supported the latest version of TRL and vllm weeks ago meaning you can use any new features they have like DRGRPO etc. Please update unsloth! If any issues occurs, please make a new issue! Thanks for your patience :)

    That means trl's DAPO and Dr. GRPO integrations are available.

    You can play with the following arguments in GRPOConfig to enable:

    epsilon=0.2,
    epsilon_high=0.28, # one sided
    delta=1.5 # two sided
    
    loss_type='bnpo',
    # or:
    loss_type='grpo',
    # or:
    loss_type='dr_grpo',
    # or:
    loss_type='dapo',
    
    mask_truncated_completions=True,

    We also made a new notebook for fine-tuning DeepSeek-R1-Qwen3-8B: https://x.com/UnslothAI/status/1931008531299545339

    CC: @Galaxy-Husky @JamesBowerXanda @arnavgarg1 @devlup @tanghui315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions