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

Class token implementation #139

Open
karttikeya opened this issue May 3, 2021 · 1 comment
Open

Class token implementation #139

karttikeya opened this issue May 3, 2021 · 1 comment

Comments

@karttikeya
Copy link

Hi,

I was wondering how the class token is supposed to be handled in the reversible design? Since, replicating the token across the two residual paths is perhaps not optimal.

Any thoughts/pointers to code is appreciated.

@lucidrains
Copy link
Owner

@karttikeya for the Reformer, I'd follow what this paper has done https://arxiv.org/abs/2103.17239 and only have the CLS token cross attend to the full sequence for about ~2-3 rounds at the end, as means of attention pooling

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