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

align model_card_templates.py with code #3081

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

amitport
Copy link
Contributor

See:

attention_mask.unsqueeze(-1).expand(token_embeddings.size()).to(token_embeddings.dtype)
attention_mask.unsqueeze(-1).expand(token_embeddings.size()).to(token_embeddings.dtype)

@tomaarsen
Copy link
Collaborator

Hello!

These are not frequently used anymore, but I still see no reason not to fix this. Well spotted!
I'll merge this once the tests go green.

  • Tom Aarsen

@tomaarsen tomaarsen merged commit 07fac06 into UKPLab:master Nov 25, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants