[go: nahoru, domu]

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

关于ProbAttention类中的_prob_QK函数 #615

Open
wtdn2015 opened this issue Apr 19, 2024 · 1 comment
Open

关于ProbAttention类中的_prob_QK函数 #615

wtdn2015 opened this issue Apr 19, 2024 · 1 comment

Comments

@wtdn2015
Copy link

想问一下该函数的返回值的含义是什么

@PowerFour4
Copy link

return Q_K, M_top
Q_K是论文中定义的kl散度近似算法的得分前n_top个Q计算出的注意力图
M_top 是Q_K注意力图来自哪些Q的索引

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