-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: change default block_size #26229
Conversation
however, I have some confuse because why I can not pass the test case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Running make fix-copies
should work.
Also if you plan to do this for a lot of models, make sure to groupe in a single PR.
thank you @ArthurZucker, but I have some confuse why I just change 1024 to min(1024, config.max_position_embeddings) and docs and then I can not pass the test case, still stuck, can you help me |
Hey @pphuc25 - don't worry, your PR is perfect! All you need to do is rebase onto
And then force push:
This should fix your CI issues! The test that's failing isn't related to your PR and was fixed yesterday on |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
thanks @sanchit-gandhi so much on very helpful information, but this seem to still bug. |
Hmm could you try running: |
Thank you for really helpful support @sanchit-gandhi, this help me so much and gain me more knowledge, thank you really much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually sorry for the past review, I'll comment the same thing about the example
folder, which we usually don't maintain. All the improvements that you added are great! But would recommend having your training script shared! This will also bring the spotlight to your work! 🤗
but @sanchit-gandhi, I think you should review the code to merge PR |
Shall we merge this one @ArthurZucker since it protects against an edge case, and then add follow-up features to your own codebase / the HF Hub @pphuc25? |
Sure! |
Hi,
As mentioned in issue #26069, I have created a new PR with the aim of modifying the block_size for all files. The goal is to set the block size = min(1024, config.max_position_embeddings). This change is intended to ensure synchronization and prevent errors that can occur when the block size exceeds the maximum position embeddings value.
I would like to cc @sanchit-gandhi to review my PR, thank you so much