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

classification #293

Open
alanianeselli opened this issue Nov 27, 2024 · 1 comment
Open

classification #293

alanianeselli opened this issue Nov 27, 2024 · 1 comment

Comments

@alanianeselli
Copy link

At line 348 of models.unimol2.py, why are you passing x[:, 1:, :] to the classification head? If you look at the ClassificationHead class (line 417) you can see that it performs classification on the CLS token, therefore x[:,0,:]

@robotcator
Copy link
Collaborator

Thank you for your feedback! This mistake was caused by reusing the old version code during the release process, and we’ve now submitted a new PR to fix it.

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