Skip to content

Modernbert 3D attention mask #38040

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

Open
meetdoshi-iitb opened this issue May 9, 2025 · 1 comment
Open

Modernbert 3D attention mask #38040

meetdoshi-iitb opened this issue May 9, 2025 · 1 comment
Labels
Feature request Request for a new feature

Comments

@meetdoshi-iitb
Copy link

Feature request

Support request for passing a custom 3D attention mask to a modernbert model.
Currently it only supports 2D attention mask of bs, seq_len modeling_modernbert.py#L859
Unlike bert which supports 3D attention mask as well modeling_bert.py#L988

Motivation

Linked issues: transformers/issues/27640

Your contribution

NA

@meetdoshi-iitb meetdoshi-iitb added the Feature request Request for a new feature label May 9, 2025
@Rocketknight1
Copy link
Member

cc @ArthurZucker for text models / attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants