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

Pretrain multipack v2 #1470

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Pretrain multipack v2 #1470

merged 2 commits into from
Apr 2, 2024

Conversation

winglian
Copy link
Collaborator

This PR enables more traditional pretraining, concatenating datasets, but not handling cross attention between the packed sequences. This helps with filling the context length when a sample doesn't come close to using the configured context length.

the multipack buffer size is how far ahead to look to try to pack samples together for pretraining/streaming datasets. What happens is that we pull in N samples and attempt to optimally pack those since we can't pack the entire dataset b/c they are usually too large to pre-process.

@ehartford
Copy link
Collaborator

Thank you for the attention to pretraining

@winglian winglian merged commit 5aa5097 into main Apr 2, 2024
7 checks passed
@winglian winglian deleted the pretrain-multipack-v2 branch April 2, 2024 12:42
djsaunde pushed a commit that referenced this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants