DeBERTa-v3-large-mnli-fever-anli-ling-wanli

What is this model? It is a fine‑tuned version of Microsoft’s DeBERTa‑v3‑large that has been trained on a large, diverse collection of Natural Language Inference (NLI) datasets. The model is optimized for

MoritzLaurer 229K downloads mit Zero-Shot Classification
Frameworkstransformerspytorchonnxsafetensors
Languagesen
Datasetsmulti_nlifacebook/anlifeverlingnlialisawuffles/WANLI
Tagsdeberta-v2text-classificationzero-shot-classificationmodel-index
Downloads
229K
License
mit
Pipeline
Zero-Shot Classification
Author
MoritzLaurer

Run DeBERTa-v3-large-mnli-fever-anli-ling-wanli locally on a Q4KM hard drive

Get DeBERTa‑v3‑large‑mnli‑fever‑anli‑ling‑wanli pre‑installed on a high‑performance Q4KM SSD. Shop now and accelerate your zero‑shot pipelines with plug‑and‑play hardware.

Shop Q4KM Drives

Technical Overview

What is this model? It is a fine‑tuned version of Microsoft’s DeBERTa‑v3‑large that has been trained on a large, diverse collection of Natural Language Inference (NLI) datasets. The model is optimized for zero‑shot classification – you can feed it a premise and a list of candidate labels, and it will return the most likely label(s) without any additional task‑specific training.

Key features & capabilities

  • Large‑scale NLI knowledge: 885 242 premise‑hypothesis pairs from MultiNLI, FEVER‑NLI, ANLI, LingNLI and WANLI.
  • State‑of‑the‑art performance on ANLI (≈70 % accuracy) and WANLI (≈77 %).
  • Supports both single‑label and multi‑label zero‑shot classification via the Hugging‑Face zero-shot-classification pipeline.
  • Backed by DeBERTa‑v3‑large’s architectural innovations: disentangled attention, enhanced relative position encoding, and a 24‑layer transformer with 1.5 B parameters.

Architecture highlights

  • Base model: DeBERTa‑v3‑large (24 transformer layers, 1024 hidden size, 16 attention heads).
  • Training head: three‑class NLI head (entailment, neutral, contradiction).
  • Fine‑tuned on a mixture of five NLI corpora, deliberately excluding SNLI to avoid noisy annotations.

Intended use cases

  • Zero‑shot text classification for content moderation, sentiment tagging, or topic detection.
  • Rapid prototyping of NLI‑based QA or entailment checks without task‑specific data.
  • Research experiments that require a robust, high‑capacity NLI encoder.

Benchmark Performance

The most relevant benchmarks for an NLI‑focused model are the MultiNLI validation splits, the ANLI adversarial suite, and the WANLI test set. According to the model card:

  • MultiNLI‑matched: 91.2 % accuracy.
  • MultiNLI‑mismatched: 90.8 % accuracy.
  • ANLI‑all (R1+R2+R3): 70.2 % accuracy.
  • ANLI‑R3: 64.0 % accuracy.
  • LingNLI: 87 % accuracy.
  • WANLI: 77 % accuracy.

These scores demonstrate that the model not only excels on standard NLI benchmarks but also retains strong robustness against adversarial examples (ANLI) and domain‑shifted data (WANLI). Compared to other large‑scale NLI models (e.g., RoBERTa‑large‑mnli, DeBERTa‑v2‑large), DeBERTa‑v3‑large‑mnli‑fever‑anli‑ling‑wanli consistently ranks higher on the most challenging test sets, making it a top choice for zero‑shot applications.

Hardware Requirements

VRAM for inference

  • Model size: ~1.5 B parameters → ~6 GB GPU memory when loaded in FP16 (torch.float16) and ~12 GB in FP32.
  • For batch size = 1, a modern 8 GB GPU (e.g., RTX 3060) is sufficient if you enable torch_dtype=torch.float16.
  • Higher batch sizes or multi‑label scenarios benefit from 12 GB+ GPUs (RTX 3080, A100, etc.).

Recommended GPU specifications

  • CUDA ≥ 11.1, cuDNN ≥ 8.0.
  • NVidia RTX 3080/3090, A100, or AMD Instinct MI100 for optimal throughput.
  • Support for ONNX Runtime or TensorRT can further reduce latency.

CPU & storage

  • CPU inference is possible but will be slower; a 16‑core Xeon or Ryzen 9 with ≥ 32 GB RAM is advisable.
  • Model files (weights + config) occupy ~2.5 GB when stored as safetensors; additional space needed for tokenizer (~50 MB).
  • SSD storage is recommended to keep loading times under a second.

Use Cases

Primary applications

  • Zero‑shot text classification – tag news articles, support tickets, or social media posts without task‑specific data.
  • Entailment‑based QA – verify whether a candidate answer logically follows from a passage.
  • Content moderation – detect contradictory statements or policy violations in user‑generated content.

Real‑world examples

  • Media monitoring: classify incoming press releases into “politics”, “economy”, “entertainment”, or “environment”.
  • Legal tech: check if a contract clause entails a specific legal requirement.
  • Customer support: route tickets by automatically inferring the underlying issue category.

Industry domains

  • Finance – rapid sentiment and topic extraction from earnings calls.
  • Healthcare – triage clinical notes for symptom categorization.
  • E‑commerce – product review analysis without labeling each new product line.

Integration is straightforward via the Hugging‑Face pipeline API, ONNX Runtime, or TorchServe for scalable deployment.

Training Details

Methodology

  • Fine‑tuned with the Hugging‑Face Trainer API.
  • Mixed‑precision (FP16) training to accelerate convergence and reduce GPU memory.
  • Learning‑rate schedule: linear warm‑up followed by cosine decay (typical for DeBERTa‑v3).
  • Batch size: 32 – 64 sequences per GPU (depending on VRAM).

Datasets

  • MultiNLI (matched & mismatched) – 393 k pairs.
  • FEVER‑NLI – 120 k pairs derived from fact‑checking claims.
  • ANLI (R1‑R3) – 110 k adversarial pairs.
  • LingNLI – 90 k linguistically diverse pairs.
  • WANLI – 92 k pairs focusing on “hard” NLI examples.

Compute requirements

  • Training performed on 8 × NVIDIA A100 (40 GB) GPUs for roughly 12 hours.
  • Total FLOPs estimated at ~2 × 10¹⁴.

Fine‑tuning capabilities

  • Because the model retains the original DeBERTa‑v3‑large checkpoint, you can further fine‑tune on domain‑specific NLI data or repurpose the encoder for downstream tasks (e.g., sentence embeddings).

Licensing Information

The model card lists the MIT license for the underlying code and data, yet the overall repository shows a license: unknown tag. In practice, the MIT license is permissive:

  • Allows commercial, academic, and personal use without royalty.
  • Requires attribution – you must keep the original copyright notice and license text in any distribution.
  • No warranty or liability is provided.

If you distribute the model (e.g., as part of a SaaS offering or a packaged product), include a copy of the MIT license and credit “MoritzLaurer”. Because the license is not explicitly declared on the hub, double‑check the model card for any updates before a commercial rollout.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives