generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ConstantLengthDataset Ignore Some Texts #1621
Comments
Thanks @TianyiPeng for the suggestion, the reason we don't add that is because we'll have to introduce custom attention masks. This will lead to slower training for setups that use for instance Flash Attention 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not a big concern. But the current implementation will ignore the last chunk of the data which is the remainder of the self.seq_length. Maybe worth adding the last chunk back with padding tokens.
https://github.com/huggingface/trl/blob/main/trl/trainer/utils.py#L475-L478
The text was updated successfully, but these errors were encountered: