Skip to content

Conversation

@apalmas-saifh
Copy link
Contributor

What does this PR do?

When using GRPO training with vLLM powered generation in server mode, even if tools are not specified (i.e. equal to None at GRPO init) the processing at line

self.tools = tools or []

causes a vLLM-side failure on line
output = self.vllm_client.chat(

because tools parameter is not None.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a GitHub issue? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

…ng with vLLM-powered generation in server mode
@qgallouedec
Copy link
Member

thanks! good catch!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@apalmas-saifh
Copy link
Contributor Author

apalmas-saifh commented Dec 11, 2025

thanks! good catch!

Happy to help.

The failing tests are not related (I think) with the change, let me know if there is something else required to merge the fix.

@qgallouedec qgallouedec changed the title Fix vLLM error for tools usage not supported when running GRPO traini… Dec 11, 2025
@qgallouedec qgallouedec merged commit 26f989e into huggingface:main Dec 11, 2025
8 of 9 checks passed
qgallouedec added a commit that referenced this pull request Dec 12, 2025
…ng (#4663)

Co-authored-by: a.palmas <a.palmas@AP-T-054.local>
Co-authored-by: Quentin Gallouédec <gallouedec.quentin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants