-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add support for drop_last=False
#96
Comments
I see that the current SFT code essentially has |
Yeah, you may need to pad with dummy samples whose loss would be masked out. |
That sounds like a fairly complex solution which could be cumbersome to maintain. I think the easier, and generally acceptable fix here is to just make all validation use |
But there may be cases where people don't want to drop samples. For instance if you're reporting metrics over an "official" validation set on a common benchmark. Edit: but I agree the main priority is to avoid crashing by default, so if our current SFT code actually uses |
Is your feature request related to a problem? Please describe.
The current code generally doesn't support
drop_last=False
.Describe the solution you'd like
Proper support for
drop_last=False
. This could be done in two phases:The text was updated successfully, but these errors were encountered: