-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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 in block size > max position embeddings #26069
Conversation
Thank you for your helpful information. |
No worries @pphuc25! Would you like to open a PR to set the block size to the minimum of |
That's the cool idea, I will do it, thank you @sanchit-gandhi. |
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.
Lovely! Thanks @pphuc25 for the clean PR :)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
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.
Thanks for the catch ! 🤗
…ddings (huggingface#26069) * refactor: change default block_size when not initialize * reformat: add the min of block size
…ddings (huggingface#26069) * refactor: change default block_size when not initialize * reformat: add the min of block size
…ddings (huggingface#26069) * refactor: change default block_size when not initialize * reformat: add the min of block size
…ddings (huggingface#26069) * refactor: change default block_size when not initialize * reformat: add the min of block size
Hi,
In the original code, this appears to function correctly when the default block_size is set to 1024. However, I believe that this setting might potentially hinder the training performance. Therefore, I have adjusted the default to be max_position_embeddings when it doesn't match case.
I would like to cc @sanchit-gandhi to review my PR, thank you so much