AnswerDotAI / AnswerDotAI/ModernBERT

ModernBertPreTrainedModel for word-level prediction tasks

Open
#179 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

Hi there! I am trying to fine-tune ModernBertPreTrainedModel to complete the task of predicting each word in a sentence.

I customized a model, but when the model class inherits ModernBertPreTrainedModel and uses the from_pretrained method to load the model, I found that the performance is completely different from when the model class directly inherits nn.Module for training (the latter is better).

However, this problem was not found on other categories of Bert based models on same task. This troubled me for some time, and I still can't figure out why this situation happened.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the word-level prediction task with the custom class inheriting ModernBertPreTrainedModel, comparing it with the nn.Module version. Inspect how from_pretrained is used in the reported setup and determine why the training performance differs from other BERT-based models. Done means identifying a reproducible cause and documenting or correcting the discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.