ONNX Model Zoo

onnx-community/distilbert-base-uncased-mnli-ONNX

By onnx-community · ↓ 8 · ♥ 1 · Updated 2025-11-24

What's in this repo

This page lists the files in onnx-community/distilbert-base-uncased-mnli-ONNX, including model.onnx, model_bnb4.onnx, model_fp16.onnx and more.

  • 8 ONNX models (.onnx files)
  • 16 files, including 8 .onnx, 5 .json, 1 .md, 1 .txt
  • Last updated 2025-11-24

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_bnb4.onnx — Download
onnx/model_fp16.onnx — Download
onnx/model_int8.onnx — Download
onnx/model_q4.onnx — Download
onnx/model_q4f16.onnx — Download
onnx/model_quantized.onnx — Download
onnx/model_uint8.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

distilbert-base-uncased-mnli (ONNX)

This is an ONNX version of typeform/distilbert-base-uncased-mnli. 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


DistilBERT base model (uncased)

Table of Contents

Model Details

Model Description: This is the uncased DistilBERT model fine-tuned on Multi-Genre Natural Language Inference (MNLI) dataset for the zero-shot classification task.

  • Developed by: The Typeform team.
  • Model Type: Zero-Shot Classification
  • Language(s): English
  • License: Unknown
  • Parent Model: See the distilbert base uncased model for more information about the Distilled-BERT base model.

How to Get Started with the Model

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("typeform/distilbert-base-uncased-mnli")

model = AutoModelForSequenceClassification.from_pretrained("typeform/distilbert-base-uncased-mnli")

Uses

This model can be used for text classification tasks.

Risks, Limitations and Biases

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)).

Training

Training Data

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 information. The corpus covers a range of genres of spoken and written text, and supports a distinctive cross-genre generalization evaluation.

This model is also not case-sensitive, i.e., it does not make a difference between "english" and "English".

Training Procedure

Training is done on a p3.2xlarge AWS EC2 with the following hyperparameters:

$ run_glue.py \
    --model_name_or_path distilbert-base-uncased \
    --task_name mnli \
    --do_train \
    --do_eval \
    --max_seq_length 128 \
    --per_device_train_batch_size 16 \
    --learning_rate 2e-5 \
    --num_train_epochs 5 \
    --output_dir /tmp/distilbert-base-uncased_mnli/

Evaluation

Evaluation Results

When fine-tuned on downstream tasks, this model achieves the following results:

  • **Epoch = ** 5.0
  • Evaluation Accuracy = 0.8206875508543532
  • Evaluation Loss = 0.8706700205802917
  • ** Evaluation Runtime = ** 17.8278
  • ** Evaluation Samples per second = ** 551.498

MNLI and MNLI-mm results:

Task MNLI MNLI-mm
82.0 82.0

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type based on the associated paper.

Hardware Type: 1 NVIDIA Tesla V100 GPUs

Hours used: Unknown

Cloud Provider: AWS EC2 P3

Compute Region: Unknown

Carbon Emitted: (Power consumption x Time x Carbon produced based on location of power grid): Unknown

Model info

zero-shot-classification transformers.js
transformers.js onnx distilbert text-classification zero-shot-classification en dataset:multi_nli arxiv:1910.09700 arxiv:2105.09680 base_model:typeform/distilbert-base-uncased-mnli base_model:quantized:typeform/distilbert-base-uncased-mnli region:us
↓ 8 ♥ 1

Created: 2025-11-24

Updated: 2025-11-24

View on Hugging Face

Files (16)

.gitattributes
README.md
config.json
onnx/model.onnx ONNX
onnx/model_bnb4.onnx ONNX
onnx/model_fp16.onnx ONNX
onnx/model_int8.onnx ONNX
onnx/model_q4.onnx ONNX
onnx/model_q4f16.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/model_uint8.onnx ONNX
quantize_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.txt

Related models