Skip to content

GRPO without VLLM? #1810

Closed
Closed

Description

@DaddyCodesAlot

Hi there. I want to take a LORA I finetuned using SFT, and then align it using GRPO. Unfortunately, GRPO seems to rely upon VLLM and as such we can't load a LORA adapter. Is there any work around?

Activity

  1. DaddyCodesAlot commented on Feb 24, 2025

    @DaddyCodesAlot
    Author

    I figured out how to do it. You need to disable VLLM in both the model load and the trainer initialization. In my experience, removing VLLM made no major changes in the performance of the training, and each epoch took roughly the same amount of time.

  2. le-big-mac commented on Feb 24, 2025

    @le-big-mac
    Contributor

    Follow up on this - I used the Qwen 2.5 GRPO notebook, and disabling vLLM caused the model to output the same thing over and over beyond the first step of training. Did you see any issues like this @DaddyCodesAlot?

    Image

  3. LouisDie commented on Feb 24, 2025

    @LouisDie

    @le-big-mac I’m seeing the same issue since Unsloth 2025.2.15 when running without vLLM. Before this version, I didn’t encounter this problem.

  4. DaddyCodesAlot commented on Feb 24, 2025

    @DaddyCodesAlot
    Author

    Follow up on this - I used the Qwen 2.5 GRPO notebook, and disabling vLLM caused the model to output the same thing over and over beyond the first step of training. Did you see any issues like this @DaddyCodesAlot?

    Image

    No, I disabled VLLM on unsloth==2025.2.4, and I got the model to train without any problems. Maybe downgrading could temporarily solve your problem?

  5. le-big-mac commented on Feb 24, 2025

    @le-big-mac
    Contributor

    Ok, downgrading to 2025.2.12 seems to do it (2025.2.14 still has the problem). Thanks guys!

  6. danielhanchen commented on Feb 26, 2025

    @danielhanchen
    Member

    I will investigate the Qwen issue asap!

  7. LouisDie commented on Feb 26, 2025

    @LouisDie

    I will investigate the Qwen issue asap!

    Thanks for looking into this! Just to clarify, the issue is not limited to Qwen. I’m experiencing the same problem with Llama as well.

  8. Yueeeeeeee commented on Feb 26, 2025

    @Yueeeeeeee

    Same here, happens to both Qwen and Llama models when fast_inference = False and use_vllm = False

  9. xandrmoro commented on Mar 3, 2025

    @xandrmoro

    Same here.

    UPD: Seems to be fixed with 2025.3.1?

  10. danielhanchen commented on Mar 5, 2025

    @danielhanchen
    Member

    Apologies just fixed! For Colab / Kaggle, please restart and run all. For local machines, please do:

    pip install --force-reinstall --upgrade --no-cache-dir --no-deps unsloth unsloth_zoo
    
  11. DaddyCodesAlot commented on Mar 6, 2025

    @DaddyCodesAlot
    Author

    Apologies just fixed! For Colab / Kaggle, please restart and run all. For local machines, please do:

    pip install --force-reinstall --upgrade --no-cache-dir --no-deps unsloth unsloth_zoo
    

    Awesome work! I'll close this issue.

  12. ahnesi commented on Apr 6, 2025

    @ahnesi

    It still doesn't work for me even after
    pip install --force-reinstall --upgrade --no-cache-dir --no-deps unsloth unsloth_zoo

    Any thoughts?

  13. sunyilgdx commented on May 15, 2025

    @sunyilgdx

    自 Unsloth 2025.2.15 以来,在没有 vLLM 的情况下运行时,我遇到了同样的问题。在这个版本之前,我没有遇到这个问题。

    I have the same question!

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

    currently fixing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions