Downloads · 30 days
0
mia-project-2025/bert-base-uncased-adapter-glue-mnli
bert-base-uncased-adapter-glue-mnli is a machine learning model from mia-project-2025. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository provides a BERT-base model fine-tuned with Prefix-Tuning (PEFT) on the GLUE MNLI dataset for Natural Language Inference (NLI). Given a premise and a hypothesis, the model predicts one of three relation…
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2025
Repo size
240 MB
Likes
0
Public
Click a slice to open those files.
.pt236 MB · 98%
From the Hugging Face model README
This repository provides a BERT-base model fine-tuned with Prefix-Tuning (PEFT) on the GLUE MNLI dataset for Natural Language Inference (NLI). Given a premise and a hypothesis, the model predicts one of three relations: entailment, neutral, or contradiction.
train, validation_matched (in-domain), validation_mismatched (out-of-domain)bert-base-uncased, pairwise (premise, hypothesis), max_length=256Note: Label indices follow the order used by the fine-tuned head. When using the model, prefer
model.config.id2labelto map indices to strings.
bert-base-uncasednum_virtual_tokens = 20prefix_projection = Trueadamw_torch_fusedf1Final metrics reported after training (epoch 20):
| Metric | Matched (in-domain) | Mismatched (out-of-domain) |
|---|---|---|
| Eval Loss | 0.4946 | 0.4946 |
| Accuracy | 0.8106 | 0.8106 |
| Precision | 0.8119 | 0.8119 |
| Recall | 0.8106 | 0.8106 |
| F1 Score | 0.8109 | 0.8109 |
| Train Loss | 0.5690 | 0.5690 |
| Train Runtime | 4808.78 s | 4808.78 s |
| Eval Runtime | 3.57 s | 3.57 s |