SAVRN
Search Contact SAVRN

Open-weight model · Zero-shot classification

distilbert-base-uncased-mnli

by Typeform typeform/distilbert-base-uncased-mnli

This is the uncased DistilBERT model fine-tuned on Multi-Genre Natural Language Inference (MNLI) dataset for the zero-shot classification task. This model can be used for text classification tasks.

Parameters67M
Context512
Weights803.7 MB
License
AccessOpen weights
Monthly Downloads452.7k

Runs On

What it takes to serve distilbert-base-uncased-mnli (67M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.1 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on distilbert-base-uncased-mnli

At 0.2 GB of memory in 16-bit, this one will never be the reason anyone buys a GPU. Typeform fine-tuned the uncased DistilBERT on the Multi-Genre Natural Language Inference set so it can sort text into labels you supply at run time, and its 67 million parameters occupy a rounding error of the 192 GB on the MI300X listed as the cheapest setup at $1.85 an hour. We would run it as a side process on a card already doing other work. The 512-token context is the real sizing limit: longer documents get chunked before they get classified.

The license field on this page is empty, so a buyer should get the terms in writing from Typeform before this goes into production. Check the dates too: released March 2, 2022, last updated March 22, 2023, which means 452,745 monthly downloads are pulling a checkpoint more than three years old.

Model Card

This is the uncased DistilBERT model fine-tuned on Multi-Genre Natural Language Inference (MNLI) dataset for the zero-shot classification task. This model can be used for text classification tasks. CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). This model of DistilBERT-uncased is pretrained on the Multi-Genre Natural Language Inference (MultiNLI) corpus. It is a crowd-sourced collection of 433k sentence pairs annotated with textual entailment…

Excerpt from the card by Typeform.

Configuration

Architecture
DistilBertForSequenceClassification
Context length (tokens)
512
Vocabulary size
30,522
Model type
distilbert

Identity and Version

Repository
typeform/distilbert-base-uncased-mnli
Publisher
Typeform
Task
Zero-shot classification
Modality
Text
Library
transformers
Parameters
67M parameters
Languages
en
Revision
cfa538a0fddbbd978fefe8966c1aeff7ad409c90
First published
2022-03-02
Last updated
2023-03-22

Files and Weights

14 files, 803.9 MB in total. The weights are 4 files totalling 803.7 MB in bin, h5, safetensors.

Weights4 files · 803.7 MB
Configuration3 files · 31.4 KB
Tokenizer2 files · 231.8 KB
Documentation1 file · 3.9 KB
Other3 files · 342 B
Repository1 file · 744 B
Every file
FileTypeSizeSHA-256
model.safetensorsWeights267.8 MB 16d47e5948c7
pytorch_model.binWeights267.9 MB e9c34cf80a78
tf_model.h5Weights268.0 MB 15c4a2382d16
training_args.binWeights2.2 KB 4260388ec322
config.jsonConfiguration776 B
special_tokens_map.jsonConfiguration112 B
trainer_state.jsonConfiguration30.5 KB
README.mdDocumentation3.9 KB
eval_results_mnli-mm.txtOther135 B
eval_results_mnli.txtOther135 B
train_results.txtOther72 B
.gitattributesRepository744 B
tokenizer_config.jsonTokenizer258 B
vocab.txtTokenizer231.5 KB

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
803.7 MB
Download from Typeform

Released by Typeform through its official repository on Hugging Face.

Built From

  • Described by arXiv:1910.09700
  • Described by arXiv:2105.09680
  • Trained on (disclosed) multi_nli

Memory Requirements

PrecisionWeights in memory
As published803.7 MB
16-bit0.1 GB
8-bit0.1 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Built on This Model

Questions About distilbert-base-uncased-mnli

How much GPU memory does distilbert-base-uncased-mnli need?

About 0.2 GB at 16-bit and 0 GB at 4-bit: the weights (67M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run distilbert-base-uncased-mnli on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What is distilbert-base-uncased-mnli's context length?

512 tokens, from the maximum position embeddings in its published configuration.

Similar Models

This model was fine-tuned using the same pipeline as described in the model card for MoritzLaurer/deberta-v3-large-zeroshot-v1.1-all-33 and in this paper. The foundation model is microsoft/deberta-v3-xsmall. The model only has 22 million backbone parameters and 128 million vocabulary parameters. The backbone parameters are the main parameters active during inference, providing a significant speedup over larger models. The model is 142 MB small. This model was trained to provide a small and highly efficient zeroshot option, especially for edge devices or in-browser use-cases with transformers.js. For usage instructions and other details refer to this model card…

Open weights mit 71M parameters 512 tokens transformers

This model was trained on 782 357 hypothesis-premise pairs from 4 NLI datasets: MultiNLI, Fever-NLI, LingNLI and ANLI. Note that the model was trained on binary NLI to predict either "entailment" or "not-entailment". This is specifically designed for zero-shot classification, where the difference between "neutral" and "contradiction" is irrelevant. The base model is DeBERTa-v3-xsmall from Microsoft. The v3 variant of DeBERTa substantially outperforms previous versions of the model by including a different pre-training objective, see the DeBERTa-V3 paper. For highest performance (but less speed), I recommend using…

Open weights mit 71M parameters 512 tokens transformers

This model was trained using SentenceTransformers Cross-Encoder class. This model is based on microsoft/deberta-v3-xsmall The model was trained on the SNLI and MultiNLI datasets. For a given sentence pair, it will output three scores corresponding to the labels: contradiction, entailment, neutral. For futher evaluation results, see SBERT.net - Pretrained Cross-Encoder. Pre-trained models can be used like this: You can use the model also directly with Transformers library (without SentenceTransformers library): This model can also be used for zero-shot-classification

Open weights apache-2.0 71M parameters 512 tokens sentence-transformers

This model was trained using SentenceTransformers Cross-Encoder class. The model was trained on the SNLI and MultiNLI datasets. For a given sentence pair, it will output three scores corresponding to the labels: contradiction, entailment, neutral. For evaluation results, see SBERT.net - Pretrained Cross-Encoder. Pre-trained models can be used like this: You can use the model also directly with Transformers library (without SentenceTransformers library): This model can also be used for zero-shot-classification

Open weights apache-2.0 82M parameters 514 tokens sentence-transformers

This model was trained using SentenceTransformers Cross-Encoder class. The model was trained on the SNLI and MultiNLI datasets. For a given sentence pair, it will output three scores corresponding to the labels: contradiction, entailment, neutral. For evaluation results, see SBERT.net - Pretrained Cross-Encoder. Pre-trained models can be used like this: You can use the model also directly with Transformers library (without SentenceTransformers library): This model can also be used for zero-shot-classification

Open weights apache-2.0 82M parameters 514 tokens sentence-transformers

multilingual - zero-shot-classification - text-classification - nli - pytorch - accuracy - multinli - xnli pipelinetag: zero-shot-classification candidatelabels: "politics, economy, entertainment, environment" This multilingual model can perform natural language inference (NLI) on 100+ languages and is therefore also suitable for multilingual zero-shot classification. The underlying multilingual-MiniLM-L6 model was created by Microsoft and was distilled from XLM-RoBERTa-large (see details in the original paper and newer information in this repo). The model was then fine-tuned on the XNLI dataset, which contains hypothesis-premise pairs from 15 languages, as well as the English MNLI dataset.…

Open weights mit 107M parameters 514 tokens transformers