Skip to content

Remove max_prompt_length#345

Merged
stevhliu merged 2 commits intohuggingface:mainfrom
miniMagic-beep:patch-1
Feb 27, 2026
Merged

Remove max_prompt_length#345
stevhliu merged 2 commits intohuggingface:mainfrom
miniMagic-beep:patch-1

Conversation

@miniMagic-beep
Copy link
Contributor

max_prompt_length is no longer supported in GRPOConfig, Hence Removed it in Config and relavent Documentations

What does this PR do?

The max_prompt_length parameter is no longer supported in GRPOConfig. This PR removes it from the fine_tuning_llm_grpo_trl.ipynb notebook configuration and relevant documentation to prevent execution errors and confusion for users following the tutorial.

Who can review?

Feel free to tag members/contributors who may be interested in your PR.
@merveenoyan @stevhliu

max_prompt_length is no longer supported in GRPOConfig, Hence Removed it in Config and relavent Documentations
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

In the Previous Commit I didn't add a comma so it broke the json structure. Extremely sorry for that.
@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.

@stevhliu stevhliu merged commit 1d46bd3 into huggingface:main Feb 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants