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

显存溢出 #2

Open
actforjason opened this issue Mar 5, 2022 · 1 comment
Open

显存溢出 #2

actforjason opened this issue Mar 5, 2022 · 1 comment

Comments

@actforjason
Copy link

actforjason commented Mar 5, 2022

使用Relative Position后显存占用明显增加是什么原因呢?

@weiaicunzai
Copy link

Relative Position embedding占用的显存就是比绝对位置编码多的。一个长度为5的序列,相对位置编码就有5x5个embedding,每个token要保存该token和其余所有token的相对位置编码。

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