SAVRN
Search Contact SAVRN

Open-weight model · Question answering

distilbert-onnx

by Philipp Schmid philschmid/distilbert-onnx

This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1.

Parameters
Context512
Weights260.8 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads8k

Model Card

By Philipp Schmid, published under apache-2.0, revision 9cd9a5a36756.

This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. This model reaches a F1 score of 87.1 on the dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).

Read Philipp Schmid's full model card

ONNX Conversion of distilbert-base-cased-distilled-squad

DistilBERT base cased distilled SQuAD

This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. This model reaches a F1 score of 87.1 on the dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).

Configuration

Architecture
DistilBertForQuestionAnswering
Context length (tokens)
512
Vocabulary size
28,996
Model type
distilbert

Identity and Version

Repository
philschmid/distilbert-onnx
Publisher
Philipp Schmid
Task
Question answering
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
en
Revision
9cd9a5a367563495609c78c9ad56147810278a90
First published
2022-03-02
Last updated
2022-02-16

Files and Weights

6 files, 261.0 MB in total. The weights are 1 file totalling 260.8 MB in onnx.

Weights1 file · 260.8 MB
Configuration1 file · 473 B
Tokenizer2 files · 213.5 KB
Documentation1 file · 557 B
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
model.onnxWeights260.8 MB 6fdcb418daa4
config.jsonConfiguration473 B
README.mdDocumentation557 B
.gitattributesRepository1.2 KB
tokenizer_config.jsonTokenizer29 B
vocab.txtTokenizer213.4 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
260.8 MB
Download from Philipp Schmid

Released by Philipp Schmid through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) squad

Memory Requirements

PrecisionWeights in memory
As published260.8 MB

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

Questions About distilbert-onnx

Can I use distilbert-onnx commercially?

Yes. distilbert-onnx is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is distilbert-onnx's context length?

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

Similar Models

Model · Question answering

splinter-base

Tel Aviv University

Splinter-base is the pretrained model discussed in the paper Few-Shot Question Answering by Pretraining Span Selection (at ACL 2021). Its original repository can be found here. The model is case-sensitive. Note: This model doesn't contain the pretrained weights for the QASS layer (see paper for details), and therefore the QASS layer is randomly initialized upon loading it. For the model with those weights, see tau/splinter-base-qass. Splinter is a model that is pretrained in a self-supervised fashion for few-shot question answering. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an…

Open weights apache-2.0 512 tokens transformers

This model can be used for the task of question answering. The model should not be used to intentionally create hostile or alienating environments for people. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. The model creators note in the associated paper: The model creators note in the associated paper: The model…

Open weights 512 tokens transformers

Model · Question answering

roberta-base-on-cuad

Mohammed Rakib

This model can be used for the task of Question Answering on Legal Documents. Read: An Open Source Contractual Language Understanding Application Using Machine Learning for detailed information on training procedure, dataset preprocessing and evaluation. See CUAD dataset card for more information. See CUAD dataset card for more information. Used V100/P100 from Google Colab Pro Python, Transformers Mohammed Rakib in collaboration with Ezi Ozoani and the Hugging Face team Use the code below to get started with the model.

Open weights mit 514 tokens transformers

Model · Question answering

vit5-base

VietAI

State-of-the-art pretrained Transformer-based encoder-decoder model for Vietnamese. For more details, do check out our Github repo.

Open weights mit transformers