You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there a training method for GRPO using Qwen2.5-VL-3B-Instruct? #2324
Hey @shimmyshimmer, sorry to bump this again but seeing as the request for GRPO with VLMs has come up a number of times I was wondering if you might be able to give us some intuition on the timeline to be expected? Cheers!
Hey,
I'm also really interested in an implementation of GRPO for VLMs. TRL doesn't support multimodal for GRPO yet, so by extension, unsloth doesn't either.
Since I really needed it, I reimplemented the GRPO class from TRL to adapt it to unsloth's VLMs. I also patched the unsloth methods that were causing problems (requires_grad_post_hook).
I have a GRPO implementation that works for Unsloth's VLMs (I've tested it with Qwen2 VL and Qwen2.5 VL).
I'm humbly sharing the repo here as an alternative solution until it's officially implemented, hoping it will be useful to you.
I'm a student and far from being a pro, so I'm open to any recommendations. There are still many things to improve, but I've tested it on my personal data and the training worked well.
Reacted by Nicolas Weiming Baumann, lsbuschoff, Bennet, Rujia Liu and Michael Han
This should be supported now - sorry on the delay - please update with uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir - if it's still not working, please open another issue - appreciate it again!
Activity
shimmyshimmer commentedon Apr 12, 2025
Hi there not at the moment but it's on our todolist
sms-s commentedon Apr 15, 2025
When can it be implemented?
lsbuschoff commentedon Apr 23, 2025
Hey @shimmyshimmer, sorry to bump this again but seeing as the request for GRPO with VLMs has come up a number of times I was wondering if you might be able to give us some intuition on the timeline to be expected? Cheers!
Benjoyo commentedon May 3, 2025
There is so much value in this feature, hope to see it soon. Alternative libraries are often not efficient enough. Any updates? 🙏
niciBume commentedon May 9, 2025
Also interested 👀
GAD-cell commentedon May 14, 2025
Hey,
I'm also really interested in an implementation of GRPO for VLMs. TRL doesn't support multimodal for GRPO yet, so by extension, unsloth doesn't either.
Since I really needed it, I reimplemented the GRPO class from TRL to adapt it to unsloth's VLMs. I also patched the unsloth methods that were causing problems (requires_grad_post_hook).
I have a GRPO implementation that works for Unsloth's VLMs (I've tested it with Qwen2 VL and Qwen2.5 VL).
I'm humbly sharing the repo here as an alternative solution until it's officially implemented, hoping it will be useful to you.
I'm a student and far from being a pro, so I'm open to any recommendations. There are still many things to improve, but I've tested it on my personal data and the training worked well.
shimmyshimmer commentedon Sep 16, 2025
Hi there everyone we just added support for it. Works free on Colab. All optimizations from text should apply to vision as well.
⭐Read our VLM RL blog: https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl
Let us know if there are any issues thanks so much!
CC: @Benjoyo @GAD-cell @lsbuschoff @niciBume @rujialiu @sms-s
danielhanchen commentedon Jun 17, 2026
This should be supported now - sorry on the delay - please update with
uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir- if it's still not working, please open another issue - appreciate it again!