Downloads · 30 days
6
9% of all-time downloads
Glazkov/sum-entity-infilling-onehead
sum-entity-infilling-onehead is a fill-mask model from Glazkov. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of answerdotai/ModernBERT-base trained on the cnndailymail dataset for entity infilling tasks.
Downloads · 30 days
6
9% of all-time downloads
All-time downloads
66
Public
Parameters
150M
599 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors599 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of answerdotai/ModernBERT-base trained on the cnn_dailymail dataset for entity infilling tasks.
The model is designed to reconstruct masked entities in text using summary context. It was trained using a sequence-to-sequence approach where the model learns to predict original entities that have been replaced with <mask> tokens in the source text.
Intended Uses:
Limitations:
The model was evaluated using entity recall metrics on a validation set from the CNN/DailyMail dataset.
Metrics:
from transformers import AutoTokenizer, AutoModelForMaskedLM
from src.train.inference import EntityInfillingInference
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Glazkov/sum-entity-infilling-onehead")
model = AutoModelForMaskedLM.from_pretrained("Glazkov/sum-entity-infilling-onehead")
# Initialize inference
inference = EntityInfillingInference(
model_path="Glazkov/sum-entity-infilling-onehead",
device="cuda" # or "cpu"
)
# Example inference
summary = "Membership gives the ICC jurisdiction over alleged crimes..."
masked_text = "(<mask> officially became the 123rd member of the International Criminal Court..."
predictions = inference.predict_masked_entities(
summary=summary,
masked_text=masked_text
)
This model was trained using the following configuration:
For more details about the training process, see the training configuration file.
The model uses ModernBERT architecture with:
<mask> token supportThis model is licensed under the MIT License.