Skip to content

MLA returns NaN when kvcache for unfilled tokens in the last page is NaN #941

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

Closed
abcdabcd987 opened this issue Mar 13, 2025 · 1 comment
Closed
Assignees

Comments

@abcdabcd987
Copy link
Member

For example, when page size is 4 and kv length is 13, the last page is not full. For those unused tokens, if the kvcache is NaN, the output would be NaN.

See the attached test case.

https://gist.github.com/abcdabcd987/9fc81c0323a538953ab3a793e78c9f57

@yzh119
Copy link
Collaborator

yzh119 commented Mar 14, 2025

Seems related to #942

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

No branches or pull requests

2 participants