alt.freeweights.vision / mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX

Date: 2026-11-15Commit: cdc8277Signed: 2DC28CC7B26A283B ✓

Zero shot classification model. Onnx weights, 4.94 GB in all. Published by onnx-community under MIT.

vision4.94GBmDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNXonnxpermissive
FactsParamsnot statedSize4.94 GBFormatsonnxTaskzero shot classificationLicenseMITFrom sourcepermissive
$ fw get onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
# manifest sha256 2e839e91702b… · 4.94 GB · 14 files
$ fw verify ./mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
From sourceHosted (signed)onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNXLast check: 2026-11-15 05:07 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of mDeBERTa-v3-base-xnli-multilingual-nli-2mil7.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Scan with

Overview

Size
4.94 GB
Weights
338 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
zero shot classification
License
MIT (permissive)
Files
14, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:07 UTCpassed

Model card

From the publisher at commit cdc8277. Shown as plain text with links; images open at the publisher.

mDeBERTa-v3-base-xnli-multilingual-nli-2mil7 (ONNX)#

This is an ONNX version of MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for zero-shot-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotClassificationPipeline


Model card for mDeBERTa-v3-base-xnli-multilingual-nli-2mil7#

Model description#

This multilingual model can perform natural language inference (NLI) on 100 languages and is therefore also suitable for multilingual zero-shot classification. The underlying mDeBERTa-v3-base model was pre-trained by Microsoft on the CC100 multilingual dataset with 100 languages. The model was then fine-tuned on the XNLI dataset and on the multilingual-NLI-26lang-2mil7 dataset. Both datasets contain more than 2.7 million hypothesis-premise pairs in 27 languages spoken by more than 4 billion people.

As of December 2021, mDeBERTa-v3-base is the best performing multilingual base-sized transformer model introduced by Microsoft in this paper.

How to use the model#
Simple zero-shot classification pipeline#
from transformers import pipeline
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/mDeBERTa-v3-base-mnli-xnli")
sequence_to_classify = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der 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/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)

premise = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
hypothesis = "Emmanuel Macron is the President of France"

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#

This model was trained on the multilingual-nli-26lang-2mil7 dataset and the XNLI validation dataset.

The multilingual-nli-26lang-2mil7 dataset contains 2 730 000 NLI hypothesis-premise pairs in 26 languages spoken by more than 4 billion people. The dataset contains 105 000 text pairs per language. It is based on the English datasets MultiNLI, Fever-NLI, ANLI, LingNLI and WANLI and was created using the latest open-source machine translation models. The languages in the dataset are: ['ar', 'bn', 'de', 'es', 'fa', 'fr', 'he', 'hi', 'id', 'it', 'ja', 'ko', 'mr', 'nl', 'pl', 'ps', 'pt', 'ru', 'sv', 'sw', 'ta', 'tr', 'uk', 'ur', 'vi', 'zh'] (see ISO language codes. For more details, see the datasheet. In addition, a sample of 105 000 text pairs was also added for English following the same sampling method as the other languages, leading to 27 languages.

Moreover, for each language a random set of 10% of the hypothesis-premise pairs was added where an English hypothesis was paired with the premise in the other language (and the same for English premises and other language hypotheses). This mix of languages in the text pairs should enable users to formulate a hypothesis in English for a target text in another language.

The XNLI validation set consists of 2490 professionally translated texts from English to 14 other languages (37350 texts in total) (see this paper). Note that XNLI also contains a training set of 14 machine translated versions of the MultiNLI dataset for 14 languages, but this data was excluded due to quality issues with the machine translations from 2018.

Note that for evaluation purposes, three languages were excluded from the XNLI training data and only included in the test data: ["bg","el","th"]. This was done in order to test the performance of the model on languages it has not seen during NLI fine-tuning on 27 languages, but only during pre-training on 100 languages - see evaluation metrics below.

The total training dataset had a size of 3 287 280 hypothesis-premise pairs.

Training procedure#

mDeBERTa-v3-base-mnli-xnli was trained using the Hugging Face trainer with the following hyperparameters.

training_args = TrainingArguments(
    num_train_epochs=3,              # total number of training epochs
    learning_rate=2e-05,
    per_device_train_batch_size=32,   # batch size per device during training
    gradient_accumulation_steps=2,   # to double the effective batch size for 
    warmup_ratio=0.06,                # number of warmup steps for learning rate scheduler
    weight_decay=0.01,               # strength of weight decay
    fp16=False
)
Eval results#

The model was evaluated on the XNLI test set in 15 languages (5010 texts per language, 75150 in total) and the English test sets of MultiNLI, Fever-NLI, ANLI, LingNLI and WANLI . Note that multilingual NLI models are capable of classifying NLI texts without receiving NLI training data in the specific language (cross-lingual transfer). This means that the model is also able to do NLI on the other 73 languages mDeBERTa was pre-trained on, but performance is most likely lower than for those languages seen during NLI fine-tuning. The performance on the languages ["bg","el","th"] in the table below is a good indicated of this cross-lingual transfer, as these languages were not included in the training data.

XNLI subsetsarbgdeelenesfrhiruswthtrurvizh
Accuracy0.7940.8220.8240.8090.8710.8320.8230.7690.8030.7460.7860.7920.7440.7930.803
Speed (text/sec, A100-GPU)1344.01355.01472.01149.01697.01446.01278.01115.01380.01463.01713.01594.01189.0877.01887.0
English Datasetsmnli_test_mmnli_test_mmanli_testanli_test_r3fever_testling_testwanli_test
Accuracy0.8570.8560.5370.4970.7610.7880.7320.794
Speed (text/sec, A100-GPU)1000.01009.0794.0672.0374.01177.01468.0

Also note that if other multilingual models on the model hub claim performance of around 90% on languages other than English, the authors have most likely made a mistake during testing since non of the latest papers shows a multilingual average performance of more than a few points above 80% on XNLI (see here or here).

Limitations and bias#

Please consult the original DeBERTa-V3 paper and literature on different NLI datasets for potential biases. Moreover, note that the multilingual-nli-26lang-2mil7 dataset was created using machine translation, which reduces the quality of the data for a complex task like NLI. You can inspect the data via the Hugging Face dataset viewer for languages you are interested in. Note that grammatical errors introduced by machine translation are less of an issue for zero-shot classification, for which grammar is less important.

Citation#

If the dataset is useful for you, please cite the following article:

@article{laurer_less_2022,
	title = {Less {Annotating}, {More} {Classifying} – {Addressing} the {Data} {Scarcity} {Issue} of {Supervised} {Machine} {Learning} with {Deep} {Transfer} {Learning} and {BERT} - {NLI}},
	url = {https://osf.io/74b8k},
	language = {en-us},
	urldate = {2022-07-28},
	journal = {Preprint},
	author = {Laurer, Moritz and Atteveldt, Wouter van and Casas, Andreu Salleras and Welbers, Kasper},
	month = jun,
	year = {2022},
	note = {Publisher: Open Science Framework},
}

Ideas for cooperation or questions?#

For updates on new models and datasets, follow me on Twitter. If you have questions or ideas for cooperation, contact me at m{dot}laurer{at}vu{dot}nl or on LinkedIn

Debugging and issues#

Note that DeBERTa-v3 was released in late 2021 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 or higher might solve some issues. Note that mDeBERTa currently does not support FP16, see here: https://github.com/microsoft/DeBERTa/issues/77

Files

14 files · 4.94 GBWeights 338 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md12.6 KB31ee236b101dd77ba16807c964716139412b6928a7de8a89d1946c100f1cd28c
config.json1.02 KB14877ff8e4699989ef08bed8fa570a803e1caef0cc0a35cb4372856deabba958
onnx/model.onnx1.12 GBaf43c04cb326eec0629bb8de8ccd4d8a73db6030272047c5f03f66277d059437
onnx/model_bnb4.onnx886 MB09fcf761615f574942f0a95e08b3221da7e13cb335141609630eaffd223beb17
onnx/model_fp16.onnx559 MB270f13492e854826361b5cba565941f34318e9a0f55ffa021728b54eaa72db9c
onnx/model_int8.onnx338 MBf1920d10296efd121a601b2161e8de9fa0c934a6c0331cd1764fd09a06a83041
onnx/model_q4.onnx886 MB09fcf761615f574942f0a95e08b3221da7e13cb335141609630eaffd223beb17
onnx/model_q4f16.onnx465 MB5ded6ae125f785e1edd8baca6eac9a7b877c685c678bb121edfd0cf54d952dbc
onnx/model_quantized.onnx338 MBf1920d10296efd121a601b2161e8de9fa0c934a6c0331cd1764fd09a06a83041
onnx/model_uint8.onnx338 MBff86c77b089dcef4d46e7ed9d3659c643f0f1bc9b09d6c04cb0a524dca353003
special_tokens_map.json971 B63cd5b53789b3b5ae2c3d7aa377bcba1557ff0b41dc69ce07b94350ea32291c2
tokenizer.json16.3 MBac9bd80d04d21b4df95917bdf7c750cbea28acc30a4462c76ca2b9c86d371863
tokenizer_config.json1.40 KBfc66a38a04a7e271944043a7d09ca0d6e30be0ed3c31c24b1d8bef842fcc1ea6
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
cdc8277b46 pinned now2026-11-15 05:07 UTC14 files · 4.94 GB

Use it

$ fw get onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
# manifest sha256 2e839e91702b… · 4.94 GB · 14 files
$ fw verify ./mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json --dir ./mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX $ python3 fw.py verify ./mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX ./onnx-community__mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX --revision cdc8277b4682665e2f2e87cd83da7da07b153d75 --local-dir ./mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
31ee236b101dd77ba16807c964716139412b6928a7de8a89d1946c100f1cd28c
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNXDate: 2026-11-15Commit: cdc8277Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
Pinned commit
cdc8277b4682665e2f2e87cd83da7da07b153d75
Manifest
mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json · .minisig
Manifest sha256
2e839e91702b91697d67c69659f346cdacb8498c632dad91bd26f0c4b0ad64e5
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:07 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json.minisig $ minisign -Vm mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7 · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-ONNX.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX