SAVRN
Search Contact SAVRN

Open-weight model · Zero-shot classification

distilbart-mnli-12-3

by Suraj Patil valhalla/distilbart-mnli-12-3

distilbart-mnli is the distilled version of bart-large-mnli created using the No Teacher Distillation technique proposed for BART summarisation by Huggingface, here. We just copy alternating layers from bart-large-mnli and finetune more on the same data.

Parameters
Context1,024
Weights2.0 GB
License
AccessOpen weights
Monthly Downloads50.4k

Model Card

distilbart-mnli is the distilled version of bart-large-mnli created using the No Teacher Distillation technique proposed for BART summarisation by Huggingface, here. We just copy alternating layers from bart-large-mnli and finetune more on the same data. This is a very simple and effective technique, as we can see the performance drop is very little. Detailed performace trade-offs will be posted in this sheet. If you want to train these models yourself, clone the distillbart-mnli repo and follow the steps below Clone and install transformers from source Download MNLI data Create student model Start fine-tuning You can find the logs of these trained models in this wandb project.

Excerpt from the card by Suraj Patil.

Configuration

Architecture
BartForSequenceClassification
Context length (tokens)
1,024
Layers
12
Vocabulary size
50,265
Model type
bart

Identity and Version

Repository
valhalla/distilbart-mnli-12-3
Publisher
Suraj Patil
Task
Zero-shot classification
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
jax
Revision
ef9a58ce6a9cd44cd0d4c2f7db1cd67f81019a8b
First published
2022-03-02
Last updated
2021-06-14

Files and Weights

9 files, 2.1 GB in total. The weights are 2 files totalling 2.0 GB in bin, msgpack.

Weights2 files · 2.0 GB
Configuration2 files · 2.2 KB
Tokenizer3 files · 1.4 MB
Documentation1 file · 2.4 KB
Repository1 file · 391 B
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights1.0 GB d6d86e46d68c
pytorch_model.binWeights1.0 GB 28712a328284
config.jsonConfiguration1.4 KB
special_tokens_map.jsonConfiguration772 B
README.mdDocumentation2.4 KB
.gitattributesRepository391 B
merges.txtTokenizer456.3 KB
tokenizer_config.jsonTokenizer26 B
vocab.jsonTokenizer898.8 KB

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
2.0 GB
Download from Suraj Patil

Released by Suraj Patil through its official repository on Hugging Face.

Built From

  • Trained on (disclosed) mnli

Memory Requirements

PrecisionWeights in memory
As published2.0 GB

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

Questions About distilbart-mnli-12-3

What is distilbart-mnli-12-3's context length?

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

Similar Models

Model · Zero-shot classification

bart-large-mnli

Joshua

https://huggingface.co/facebook/bart-large-mnli with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights 1,024 tokens transformers.js

Model · Zero-shot classification

distilbart-mnli-12-1

Suraj Patil

distilbart-mnli is the distilled version of bart-large-mnli created using the No Teacher Distillation technique proposed for BART summarisation by Huggingface, here. We just copy alternating layers from bart-large-mnli and finetune more on the same data. This is a very simple and effective technique, as we can see the performance drop is very little. Detailed performace trade-offs will be posted in this sheet. If you want to train these models yourself, clone the distillbart-mnli repo and follow the steps below Clone and install transformers from source Download MNLI data Create student model Start fine-tuning You can find the logs of these trained models in this wandb project.

Open weights 1,024 tokens transformers

Model · Zero-shot classification

mobilebert-uncased-mnli

Joshua

https://huggingface.co/typeform/mobilebert-uncased-mnli with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights 512 tokens transformers.js

Model · Zero-shot classification

nli-deberta-v3-xsmall

Joshua

https://huggingface.co/cross-encoder/nli-deberta-v3-xsmall with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights 512 tokens transformers.js

Model · Zero-shot classification

distilbert-base-uncased-mnli

Joshua

https://huggingface.co/typeform/distilbert-base-uncased-mnli with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights 512 tokens transformers.js