# GRPO Trainer for VLM?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%3E%5C
**Category:** Research\
**Created:** [March 11, 2025, 12:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117 "2025-03-11T00:52:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SabaPivot](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@SabaPivot](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSabaPivot)%5C
**Post date:** [March 11, 2025, 12:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%2F1 "2025-03-11T00:52:01Z")

</div>

Wonder HuggingFace has any plan to support GRPO Trainer or DPO Trainer for VLM?

It would be a huge contribution to the community.

---

<div class="post-metadata">

**Author:** ![mahmutc](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mahmutc/32/64626_2.png) [@mahmutc](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmahmutc)%5C
**Post date:** [March 11, 2025, 7:19am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%2F3 "2025-03-11T07:19:02Z")

</div>

sorry I just saw VLM part 🙂

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 11, 2025, 7:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%2F4 "2025-03-11T07:46:50Z")

</div>

Seems ongoing issue (request).

> <https://github.com/huggingface/trl/issues/2917>
>
> \### Feature request
> 
> Is it possible to have GRPO for VLM models soon?
> Or does an…yone know any alternative library for that?
> Thanks!
> 
> \### Motivation
> 
> It will help to create multimodal R1 using the same GRPO trainer.
> 
> \### Your contribution
> 
> N/A

---

<div class="post-metadata">

**Author:** ![Cherran](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@Cherran](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FCherran)%5C
**Post date:** [July 7, 2025, 2:23pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%2F5 "2025-07-07T14:23:00Z")

</div>

any updates on this?

---

<div class="post-metadata">

**Author:** ![Ernst03](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ernst03/32/49414_2.png) [@Ernst03](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FErnst03)%5C
**Post date:** [July 7, 2025, 5:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%2F6 "2025-07-07T17:25:52Z")

</div>

Welcome first time posters @SabaPivot and @Cherran

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 7, 2025, 11:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgrpo-trainer-for-vlm%2F145117%2F7 "2025-07-07T23:49:40Z")

</div>

Someone wrote the code, but it doesn’t seem to have been committed yet.

> <https://github.com/huggingface/trl/pull/3072#issuecomment-2899605440>
>
> hey in case you want to try grpo+vlm while it's not supported here, i wrote this… up based on TRL's code and @CompN3rd's PR
> 
> https://github.com/nph4rd/grpo\_vlm
