MoritzLaurer_DeBERTa-v3-large-mnli-fever-anli-ling-wanli
MoritzLaurer · View on Hugging Face ↗
Get this model
Seeders: 1 · Leechers: 0
Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language:
- en license: mit tags:
- text-classification
- zero-shot-classification datasets:
- multi_nli
- facebook/anli
- fever
- lingnli
- alisawuffles/WANLI metrics:
- accuracy pipeline_tag: zero-shot-classification model-index:
- name: DeBERTa-v3-large-mnli-fever-anli-ling-wanli
results:
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: MultiNLI-matched
type: multi_nli
split: validation_matched
metrics:
- type: accuracy value: 0,912 verified: false
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: MultiNLI-mismatched
type: multi_nli
split: validation_mismatched
metrics:
- type: accuracy value: 0,908 verified: false
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: ANLI-all
type: anli
split: test_r1+test_r2+test_r3
metrics:
- type: accuracy value: 0,702 verified: false
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: ANLI-r3
type: anli
split: test_r3
metrics:
- type: accuracy value: 0,64 verified: false
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: WANLI
type: alisawuffles/WANLI
split: test
metrics:
- type: accuracy value: 0,77 verified: false
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: LingNLI
type: lingnli
split: test
metrics:
- type: accuracy value: 0,87 verified: false
- task:
type: text-classification
name: Natural Language Inference
dataset:
name: MultiNLI-matched
type: multi_nli
split: validation_matched
metrics:
DeBERTa-v3-large-mnli-fever-anli-ling-wanli
Model description
This model was fine-tuned on the MultiNLI, Fever-NLI, Adversarial-NLI (ANLI), LingNLI and WANLI datasets, which comprise 885 242 NLI hypothesis-premise pairs. This model is the best performing NLI model on the Hugging Face Hub as of 06.06.22 and can be used for zero-shot classification. It significantly outperforms all other large models on the ANLI benchmark.
The foundation model is DeBERTa-v3-large from Microsoft. DeBERTa-v3 combines several recent innovations compared to classical Masked Language Models like BERT, RoBERTa etc., see the paper
How to use the model
Simple zero-shot classification pipeline
from transformers import pipeline
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli")
sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU"
candidate_labels = ["politics", "economy", "entertainment", "environment"]
output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
print(output)
NLI use-case
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
model_name = "MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
premise = "I first thought that I liked the movie, but upon second thought it was actually disappointing."
hypothesis = "The movie was not good."
input = tokenizer(premise, hypothesis, truncation=True, return_tensors="pt")
output = model(input["input_ids"].to(device)) # device = "cuda:0" or "cpu"
prediction = torch.softmax(output["logits"][0], -1).tolist()
label_names = ["entailment", "neutral", "contradiction"]
prediction = {name: round(float(pred) * 100, 1) for pred, name in zip(prediction, label_names)}
print(prediction)
Training data
DeBERTa-v3-large-mnli-fever-anli-ling-wanli was trained on the MultiNLI, Fever-NLI, Adversarial-NLI (ANLI), LingNLI and WANLI datasets, which comprise 885 242 NLI hypothesis-premise pairs. Note that SNLI was explicitly excluded due to quality issues with the dataset. More data does not necessarily make for better NLI models.
Training procedure
DeBERTa-v3-large-mnli-fever-anli-ling-wanli was trained using the Hugging Face trainer with the following hyperparameters. Note that longer training with more epochs hurt performance in my tests (overfitting).
training_args = TrainingArguments(
num_train_epochs=4, # total number of training epochs
learning_rate=5e-06,
per_device_train_batch_size=16, # batch size per device during training
gradient_accumulation_steps=2, # doubles the effective batch_size to 32, while decreasing memory requirements
per_device_eval_batch_size=64, # batch size for evaluation
warmup_ratio=0.06, # number of warmup steps for learning rate scheduler
weight_decay=0.01, # strength of weight decay
fp16=True # mixed precision training
)
Eval results
The model was evaluated using the test sets for MultiNLI, ANLI, LingNLI, WANLI and the dev set for Fever-NLI. The metric used is accuracy. The model achieves state-of-the-art performance on each dataset. Surprisingly, it outperforms the previous state-of-the-art on ANLI (ALBERT-XXL) by 8,3%. I assume that this is because ANLI was created to fool masked language models like RoBERTa (or ALBERT), while DeBERTa-v3 uses a better pre-training objective (RTD), disentangled attention and I fine-tuned it on higher quality NLI data.
| Datasets | mnli_test_m | mnli_test_mm | anli_test | anli_test_r3 | ling_test | wanli_test |
|---|---|---|---|---|---|---|
| Accuracy | 0.912 | 0.908 | 0.702 | 0.64 | 0.87 | 0.77 |
| Speed (text/sec, A100 GPU) | 696.0 | 697.0 | 488.0 | 425.0 | 828.0 | 980.0 |
Limitations and bias
Please consult the original DeBERTa-v3 paper and literature on different NLI datasets for more information on the training data and potential biases. The model will reproduce statistical patterns in the training data.
Citation
If you use this model, please cite: Laurer, Moritz, Wouter van Atteveldt, Andreu Salleras Casas, and Kasper Welbers. 2022. ‘Less Annotating, More Classifying – Addressing the Data Scarcity Issue of Supervised Machine Learning with Deep Transfer Learning and BERT - NLI’. Preprint, June. Open Science Framework. https://osf.io/74b8k.
Ideas for cooperation or questions?
If you have questions or ideas for cooperation, contact me at m{dot}laurer{at}vu{dot}nl or LinkedIn
Debugging and issues
Note that DeBERTa-v3 was released on 06.12.21 and older versions of HF Transformers seem to have issues running the model (e.g. resulting in an issue with the tokenizer). Using Transformers>=4.13 might solve some issues.
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:05ab3996f0fa041aa53b107fa4e5a85b72d337d4&dn=MoritzLaurer_DeBERTa-v3-large-mnli-fever-anli-ling-wanliOpen magnet in torrent client · infohash 05ab3996f0fa041aa53b107fa4e5a85b72d337d4
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 7.4 KB (7,580 B) | 0747410db50f1345f9e409cbe010c457535ba761 | 216c3ac9ea77beec4e35a347c8b4edc47fbb3465e7c2a00dc923ae7b975cf346 |
| added_tokens.json | 18 B (18 B) | 7eb072694bd948f7977a20c25ecc9c381d5be1e3 | cd0141b19e809eb963a8f8244fad72530233f729e1f6960d281e1fbb3537b2fb |
| config.json | 1.0 KB (1,056 B) | 4132f0331b3d94b85de11ade18e48e0dae07d2d2 | 7f9d420b616691c5b575bab8839719aefbddc656d8e1316519414b097ce43e3d |
| model.safetensors | 829.9 MB (870,182,606 B) | 7b83ab239f788b19fe84c4149a8216c8448b1257 | c03cd208bf920b4fbbb182a0535859a566e8acc3477d2b536bf87b769978524b |
| pytorch_model.bin | 829.9 MB (870,262,315 B) | 3946b697cb1e4f6fee72299aa799187ab0b0477a | 37a7caf315cfaa5ec22cc5d9a0e5f463ad2c3706d5601532aa32863a58ebccdd |
| special_tokens_map.json | 156 B (156 B) | 4d9e49690449efe416b116fa6153b094dc818020 | fcfbeb4e25cd37fb5b8030406394253b245230fd3b552750092bab7d24d827da |
| spm.model | 2.4 MB (2,464,616 B) | 1993e578cb006883fd01014f831c6261e8136823 | c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd |
| tokenizer.json | 8.2 MB (8,648,889 B) | 08e1fd9af8a65c4ab19cb0b3f6e1a83ee911f8fb | 7aa118770f066a74530d161c7d0b994d0629cc0ff3a0df213f184192773f960a |
| tokenizer_config.json | 395 B (395 B) | 60b134d3ec353ffa99d215bd626f91be3c7ac7de | 556a192d83e3edb45a09a6207095dd9295c3b2279062e5cc430feac4cb7a0817 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/MoritzLaurer_DeBERTa-v3-large-mnli-fever-anli-ling-wanli/
- Slug
- MoritzLaurer_DeBERTa-v3-large-mnli-fever-anli-ling-wanli
- Infohash
- 05ab3996f0fa041aa53b107fa4e5a85b72d337d4
- License
- mit
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: MoritzLaurer_DeBERTa-v3-large-mnli-fever-anli-ling-wanli.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli |
|---|---|
| Revision (pinned) | b3546ea6b0346eb6f8d5d68b13c7dc6d0376b3d7 |
| Fetched at | 2026-09-02T04:27:20Z |
| License at fetch | mit |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:27:39Z
mit1.63 GB (1,751,567,631 bytes)transformerspytorchonnxsafetensorsdeberta-v2text-classificationzero-shot-classificationmodel-indexendpoints_compatible1 language (en)paper: 2104.07179paper: 2111.09543