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

differentiable top k #7

Open
wangzizhao opened this issue Feb 20, 2024 · 0 comments
Open

differentiable top k #7

wangzizhao opened this issue Feb 20, 2024 · 0 comments

Comments

@wangzizhao
Copy link

wangzizhao commented Feb 20, 2024

IIUC, the topk in colt5_attention uses coor_descent, and, according to the original paper Eq 8 - 11, it seems to expect the input to be unnormalized.

However, in the forward of TopNGating, it seems that normalized score is passed into the topk.

I wonder if I misunderstood something and whether I should use normalized or unnormalized score here.

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

1 participant