Skip to content

Remove max_prompt_length from experimental ORPO#4966

Open
albertvillanova wants to merge 3 commits intohuggingface:mainfrom
albertvillanova:rm-max-prompt-length-orpo
Open

Remove max_prompt_length from experimental ORPO#4966
albertvillanova wants to merge 3 commits intohuggingface:mainfrom
albertvillanova:rm-max-prompt-length-orpo

Conversation

@albertvillanova
Copy link
Member

Remove max_prompt_length from experimental ORPO.

This PR removes the max_prompt_length parameter from the ORPO training pipeline, simplifying both the configuration and the tokenization logic.

Follow-up to:

@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.

prompt_tokens = self.processing_class(
prompt, truncation=True, max_length=self.max_prompt_length, add_special_tokens=True
)
prompt_tokens = self.processing_class(prompt, truncation=True, add_special_tokens=True)
Copy link
Member

Choose a reason for hiding this comment

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

I think you can remove truncation=True

Copy link
Member

@qgallouedec qgallouedec left a comment

Choose a reason for hiding this comment

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

lgtm, just one small remark

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