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

Fix seqlen bug for sliding window models like Mistral v0.1 #660

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

ajtejankar
Copy link
Contributor

@ajtejankar ajtejankar commented Oct 29, 2024

Instead of doing torch.clamp(seqlen ... we need to use seqlen.clamp as seqlen is of class Seqlen and not a torch tensor.

@tgaddair tgaddair merged commit bd92e52 into main Oct 31, 2024
1 check passed
@tgaddair tgaddair deleted the seqlen-bug branch October 31, 2024 17:11
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