-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Support QuestionAnswering Module for ModernBert based models. #35566
base: main
Are you sure you want to change the base?
Support QuestionAnswering Module for ModernBert based models. #35566
Conversation
Hi @bakrianoo, thanks for the PR!
|
Hi @Rocketknight1 Applying
I tried to reinstall |
What does this PR do?
This PR introduces a new feature:
ModernBertForQuestionAnswering
, which extends theModernBERT
model to support Question-Answering tasks.This addresses a gap in the current implementation of ModernBERT and enables its use for tasks requiring answer extraction from long texts.
Evaluating
I made an experiment to fine-tune a QnA ModernBert based model. I used this script to produce this model.
Dependencies
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Current Status
Although I was be able to finetune a QnA Modern Bert model, I am still having an issue to complete the PR.
1)
Applying
make fixup
produces this errorI tried to reinstall
jaxlib==0.4.13
but it does not help.I appreciate your help here.