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

feat: add support for ModernBERT #15

Merged
merged 1 commit into from
Jan 30, 2025
Merged

Conversation

default-anton
Copy link
Contributor

I used this PR as a reference: huggingface/transformers.js#1104

@ankane
Copy link
Owner

ankane commented Jan 29, 2025

Hi @default-anton, thanks for the PR! The code looks good, but please leave out the test case.

@ankane
Copy link
Owner

ankane commented Jan 29, 2025

Also, you'll want to use cls pooling in your own code.

model.(sentences, pooling: "cls")

@default-anton
Copy link
Contributor Author

@ankane thank you for the review! I removed the test.

@ankane ankane merged commit 384a283 into ankane:master Jan 30, 2025
@ankane
Copy link
Owner

ankane commented Jan 30, 2025

Perfect, thanks @default-anton!

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