Skip to content

Unsloth Integration #370

Closed
Closed

Description

@bxyu-nvidia

Use cases, pain points, and background
Why should we do this? Why is this needed or wanted?

Description:
What should we do?

Design:
Need to integrate with TRL first

Out of scope:
What are some items that this issue could be mistaken to cover that this issue should explicitly NOT cover?

Acceptance Criteria:

  • Individual items that need to be finished in order for this issue to be considered completed

Activity

  1. added
    training
    on Nov 21, 2025
  2. cmunley1 commented on Dec 2, 2025

    @cmunley1
    Contributor

    Unsloth currently does not support custom rollout function in their patched version of TRL GRPOTrainer it seems, making it difficult to fully use NeMo Gym as a rollout tool.

    We can take the same approach as OpenEnv and just use NeMo Gym to verify rollouts, not using multiturn or tool use logic, letting unsloth/TRL handle the single turn, no tool rollout. I notice that OpenEnv only acts as a verifier for Unsloth, but has custom rollout example with TRL.

    I think we can request or help add support for custom rollout.

    The second challenge is whether unsloth allows serving the LLM as openai compatible responses/chat completions. TRL has a vllm server mode (missing openai endpoints ) but I am not yet sure if unsloth supports it.

  3. mmathew23 commented on Dec 4, 2025

    @mmathew23

    Hi @cmunley1 we're going to add support for custom rollouts soon. As for the vllm server mode, we can work on supporting it as well. If it operates just like trl's would that be sufficient?

  4. cmunley1 commented on Dec 4, 2025

    @cmunley1
    Contributor

    Hey @mmathew23 do you have a timeline for custom rollout function?

    For vllm server mode, I think that operating like trl is sufficient, but an async vllm engine with openai compatible endpoints would be better for us and probably more efficient. maybe @bxyu-nvidia can comment on this

  5. mmathew23 commented on Dec 4, 2025

    @mmathew23

    We don't have a hard timeline at the moment, but we are currently working on both compatibility with trl 0.25 and transformers v5.

  6. added a commit that references this issue on Dec 28, 2025
  7. cmunley1 commented on Feb 2, 2026

    @cmunley1
    Contributor

    We can mark this as done for single-step scenario and open a new issue for multi-step/turn which is WIP on TRL side.

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

Metadata

Metadata

Assignees

Labels

training

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions