SAVRN
Search Contact SAVRN

Open-weight model · Zero-shot classification

MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx

by Protect AI protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx

This model is a conversion of MoritzLaurer/roberta-base-zeroshot-v2.0-c to ONNX format using the Optimum library.

Parameters
Context514
Weights498.9 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads100.2k

Model Card

By Protect AI, published under apache-2.0, revision 5225ffccff19.

This model is a conversion of MoritzLaurer/roberta-base-zeroshot-v2.0-c to ONNX format using the Optimum library.

Read Protect AI's full model card

[!WARNING] THIS PROJECT HAS BEEN ARCHIVED.

This project and its associated code on GitHub are no longer under active development or maintained.

ONNX version of MoritzLaurer/roberta-base-zeroshot-v2.0-c

This model is a conversion of MoritzLaurer/roberta-base-zeroshot-v2.0-c to ONNX format using the Optimum library.

Configuration

Architecture
RobertaForSequenceClassification
Context length (tokens)
514
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
50,265
Stored precision
float16
Model type
roberta

Identity and Version

Repository
protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx
Publisher
Protect AI
Task
Zero-shot classification
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
5225ffccff19b15c6e95f80d1880c1fda986efd4
First published
2024-04-11
Last updated
2026-07-09

Files and Weights

9 files, 502.2 MB in total. The weights are 1 file totalling 498.9 MB in onnx.

Weights1 file · 498.9 MB
Configuration2 files · 1.9 KB
Tokenizer4 files · 3.4 MB
Documentation1 file · 636 B
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.onnxWeights498.9 MB e67a09e00329
config.jsonConfiguration900 B
special_tokens_map.jsonConfiguration958 B
README.mdDocumentation636 B
.gitattributesRepository1.5 KB
merges.txtTokenizer456.3 KB
tokenizer.jsonTokenizer2.1 MB
tokenizer_config.jsonTokenizer1.2 KB
vocab.jsonTokenizer798.3 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
498.9 MB
Download from Protect AI

Released by Protect AI through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published498.9 MB

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

Questions About MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx

Can I use MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx commercially?

Yes. MoritzLaurer-roberta-base-zeroshot-v2.0-c-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 MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx's context length?

514 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-3

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

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