Skip to content
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

use DataCollatorWithFlattening when not sample packing #2167

Merged
merged 7 commits into from
Dec 17, 2024

Conversation

winglian
Copy link
Collaborator

@winglian
Copy link
Collaborator Author

Screenshot 2024-12-12 at 8 11 33 PM ran a quick experiment against l3-3B with microbatch size of 8. losses stack on top pretty closely, but flattening is good bit faster.

@winglian winglian requested a review from NanoCode012 December 13, 2024 01:12
@winglian
Copy link
Collaborator Author

I should make this have an auto option that automatically enables this when not using packing with micro batch size > 1

@winglian winglian force-pushed the flattening-collator branch from 73a0e9d to 838aae1 Compare December 17, 2024 21:48
@winglian winglian merged commit bd2a594 into main Dec 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant