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 window attention #1341

Merged
merged 3 commits into from
Mar 28, 2024
Merged

fix window attention #1341

merged 3 commits into from
Mar 28, 2024

Conversation

grimoire
Copy link
Collaborator

Fix window attention

Copy link
Collaborator

@RunningLeon RunningLeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -398,7 +398,7 @@ def paged_attention_fwd(
q_seqlens: Tensor,
kv_seqlens: Tensor,
max_seqlen: int,
window_size: int = -1,
window_size: int = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any difference between default -1 and default None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No difference

@lvhan028 lvhan028 merged commit c9f3234 into InternLM:main Mar 28, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants