Skip to content

Conversation

@kaixuanliu
Copy link
Contributor

delora_finetuning

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@kaixuanliu kaixuanliu marked this pull request as draft October 23, 2025 07:41
@kaixuanliu kaixuanliu marked this pull request as ready for review October 23, 2025 08:07
@kaixuanliu
Copy link
Contributor Author

@BenjaminBossan recent version trl/transformers use max_length instead if max_seq_length param, pls review this PR, thx!

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Thanks for updating the argument name. There is a small issue that I noted, otherwise LGTM.

metadata={"help": "Path to pretrained model or model identifier from huggingface.co/models"}
)
max_seq_length: Optional[int] = field(
max_length: Optional[int] = field(
Copy link
Member

Choose a reason for hiding this comment

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

This change isn't enough, because there is a conflicting argument with the same name. I already took care of that in #2857, so you can revert this change here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I changed the code here by mistake. Yes, for sft case, we should take more actions. Have reverted.

Signed-off-by: Liu, Kaixuan <[email protected]>
@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.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this, LGTM.

@BenjaminBossan BenjaminBossan merged commit 98a88c0 into huggingface:main Oct 23, 2025
11 of 13 checks 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