CoolFace
Modelpublic

Lidor-Mashiach/bert-base-mnli

sourceHugging Faceotherupdated 2mo agoView on Hugging Face
2likes18downloads
Model Card

BERT Base fine tuned on MNLI

Model

This checkpoint is based on google-bert/bert-base-uncased.

It was fine tuned on the MultiNLI training split. The training set contained 392,702 premise and hypothesis pairs.

The model predicts one of three labels:

LabelMeaning
0entailment
1neutral
2contradiction

The input order is premise first and hypothesis second.

Evaluation

MultiNLI does not provide public labels for its test set. The checkpoint was evaluated on the two official validation splits.

SplitAccuracyExamples
Validation matched83.94%9,815
Validation mismatched84.45%9,832

The matched split contains genres represented in training.

The mismatched split contains held out genres and measures transfer across genres.

These values are plain classification accuracy.

The results are not presented here as a universal leaderboard claim.

The machine readable results are stored in baseline_eval.json.

Training

SettingValue
Base modelgoogle-bert/bert-base-uncased
Epochs2
Batch size32
Gradient accumulation steps1
Learning rate0.00005496794235413491
Weight decay0.1
Warmup ratio0.0353148135505427
Label smoothing0.1
Adam beta 20.999
Maximum sequence length128
Seed1299843651
Numerical precisionBF16

The hyperparameters were selected for this model and dataset combination.

The full training record is stored in model_card.json.

Use

Load the repository with AutoTokenizer and AutoModelForSequenceClassification from the Transformers library.

Pass the premise and hypothesis as a text pair.

Use a maximum sequence length of 128 to match training.

Files

FilePurpose
model.safetensorsModel weights
config.jsonArchitecture and label mapping
tokenizer.jsonTokenizer data
tokenizer_config.jsonTokenizer settings
baseline_eval.jsonEvaluation results
model_card.jsonTraining record and provenance
README.mdModel card

Limitations

The model was trained and evaluated on English MultiNLI data.

Performance on other NLI datasets may differ.

The two validation scores measure different genre conditions and should be reported separately.

The model can inherit errors and biases from the base model and the training data.

The checkpoint has not been evaluated for high risk or safety critical use.

License

The base model google-bert/bert-base-uncased is licensed under Apache 2.0.

MultiNLI contains material from several sources. Its dataset card lists CC BY 3.0, CC BY-SA 3.0, MIT, and other source terms.

This repository uses a mixed source terms notice rather than assigning one uniform license to all upstream material.

Users must review the original MultiNLI documentation and follow the terms that apply to the relevant source material.

Associated research

This model was trained as part of the following research manuscript:

“Opening the Black Box: Localizing semantic inconsistency in NLI models with Deep k -Nearest Neighbors”

The manuscript is in preparation. It has not been submitted or published.

This section will be updated when a public preprint or an accepted version becomes available.

Citation

Until the paper is public, please cite this model repository:

bibtex
@misc{mashiach2026bertmnli,
  author = {Lidor Mashiach},
  title = {BERT Base fine tuned on MNLI},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/Lidor-Mashiach/bert-base-mnli}
}

Please also cite the BERT and MultiNLI papers.

Contact

Questions, corrections, and reproducibility reports can be posted in the Community tab of this repository.