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

Split long sequences into chunks #403

Merged
merged 8 commits into from
Jul 22, 2023
Merged

Split long sequences into chunks #403

merged 8 commits into from
Jul 22, 2023

Conversation

justheuristic
Copy link
Collaborator

@justheuristic justheuristic commented Jul 22, 2023

This PR is designed to avoid OOMs when processing long sequences that happen due to huge attention logits matrices.

ToDo

  • make similar stuff for forward and backward

@borzunov borzunov merged commit 5af0452 into main Jul 22, 2023
7 checks passed
@borzunov borzunov deleted the chunks branch July 22, 2023 19:10
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.

None yet

2 participants