SAVRN
Search Contact SAVRN

Open-weight model · Zero-shot classification

bge-m3-zeroshot-v2.0

by Moritz Borrett-Laurer (formerly Laurer) MoritzLaurer/bge-m3-zeroshot-v2.0

Models in this series are designed for efficient zeroshot classification with the Hugging Face pipeline. These models can do classification without training data and run on both GPUs and CPUs.

Parameters568M
Context8,194
Weights1.1 GB
Licensemit
AccessOpen weights
Monthly Downloads122k

Runs On

What it takes to serve bge-m3-zeroshot-v2.0 (568M 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 1.1 GB 1.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.6 GB 0.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.3 GB 0.3 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.

Model Card

By Moritz Borrett-Laurer (formerly Laurer), published under mit, revision 9abf1c8aaeb8.

Model description: bge-m3-zeroshot-v2.0

zeroshot-v2.0 series of models

Models in this series are designed for efficient zeroshot classification with the Hugging Face pipeline. These models can do classification without training data and run on both GPUs and CPUs. An overview of the latest zeroshot classifiers is available in my Zeroshot Classifier Collection.

The main update of this zeroshot-v2.0 series of models is that several models are trained on fully commercially-friendly data for users with strict license requirements.

These models can do one universal classification task: determine whether a hypothesis is "true" or "not true" given a text (entailment vs. not_entailment).
This task format is based on the Natural Language Inference task (NLI). The task is so universal that any classification task can be reformulated into this task by the Hugging Face pipeline.

Training data

Read the full model card (1,626 words)

Configuration

Architecture
XLMRobertaForSequenceClassification
Context length (tokens)
8,194
Layers
24
Hidden size
1,024
Feed-forward size
4,096
Attention heads
16
Vocabulary size
250,002
Stored precision
float16
Model type
xlm-roberta

Identity and Version

Repository
MoritzLaurer/bge-m3-zeroshot-v2.0
Publisher
Moritz Borrett-Laurer (formerly Laurer)
Task
Zero-shot classification
Modality
Text
Library
transformers
Parameters
568M parameters
Languages
xlm-roberta
Revision
9abf1c8aaeb82a2447809c20753ed0b106b76652
First published
2024-04-02
Last updated
2024-04-22

Files and Weights

17 files, 3.5 GB in total. The weights are 3 files totalling 1.1 GB in bin, onnx, safetensors.

Weights3 files · 1.1 GB
Configuration4 files · 3.7 KB
Tokenizer4 files · 34.2 MB
Documentation1 file · 21.1 KB
Other4 files · 2.3 GB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights1.1 GB 142bc710004b
onnx/model.onnxWeights679.9 KB cb033d68a01b
training_args.binWeights4.9 KB bb8e9eb20e1f
config.jsonConfiguration912 B
onnx/config.jsonConfiguration897 B
onnx/special_tokens_map.jsonConfiguration964 B
special_tokens_map.jsonConfiguration964 B
README.mdDocumentation21.1 KB
onnx/Constant_7_attr__valueOther65.6 KB
onnx/model.onnx_dataOther2.3 GB 4b0af0092f36
onnx/sentencepiece.bpe.modelOther5.1 MB cfc8146abe2a
sentencepiece.bpe.modelOther5.1 MB cfc8146abe2a
.gitattributesRepository1.6 KB
onnx/tokenizer.jsonTokenizer17.1 MB 6710678b1267
onnx/tokenizer_config.jsonTokenizer1.1 KB
tokenizer.jsonTokenizer17.1 MB 6710678b1267
tokenizer_config.jsonTokenizer1.1 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
1.1 GB
Download from Moritz Borrett-Laurer (formerly Laurer)

Released by Moritz Borrett-Laurer (formerly Laurer) through its official repository on Hugging Face. Read the license.

Built From

  • Derived from BAAI/bge-m3-retromae
  • Described by arXiv:2312.17543
  • Quantized from BAAI/bge-m3-retromae

Memory Requirements

PrecisionWeights in memory
As published1.1 GB
16-bit1.1 GB
8-bit0.6 GB
4-bit0.3 GB

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

Questions About bge-m3-zeroshot-v2.0

How much GPU memory does bge-m3-zeroshot-v2.0 need?

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

What is the cheapest GPU to run bge-m3-zeroshot-v2.0 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.

Can I use bge-m3-zeroshot-v2.0 commercially?

Yes. bge-m3-zeroshot-v2.0 is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is bge-m3-zeroshot-v2.0's context length?

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

Similar Models

Model · Zero-shot classification

xlm-roberta-large-xnli

Joe Davison

This model takes xlm-roberta-large and fine-tunes it on a combination of NLI data in 15 languages. It is intended to be used for zero-shot text classification, such as with the Hugging Face ZeroShotClassificationPipeline. This model is intended to be used for zero-shot text classification, especially in languages other than English. It is fine-tuned on XNLI, which is a multilingual NLI dataset. The model can therefore be used with any of the languages in the XNLI corpus: Since the base model was pre-trained trained on 100 different languages, the model has shown some effectiveness in languages beyond those listed above as well. See the full list of pre-trained languages in appendix A of the…

Open weights mit 561M parameters 514 tokens transformers

Model · Zero-shot classification

LLM2CLIP-Openai-L-14-336

Microsoft

Weiquan Huang 1, Aoqi Wu 1, Yifan Yang 2†, Xufang Luo 2, Yuqing Yang 2, Liang Hu 1, Qi Dai 2, Xiyang Dai 2, Dongdong Chen 2, Chong Luo 2, Lili Qiu 2 In this paper, we propose LLM2CLIP, a novel approach that embraces the power of LLMs to unlock CLIP’s potential. By fine-tuning the LLM in the caption space with contrastive learning, we extract its textual capabilities into the output embeddings, significantly improving the output layer’s textual discriminability. We then design an efficient training process where the fine-tuned LLM acts as a powerful teacher for CLIP’s visual encoder. Thanks to the LLM’s presence, we can now incorporate longer and more complex captions without being…

Open weights apache-2.0 579M parameters

This model was fine-tuned on the MultiNLI, Fever-NLI, Adversarial-NLI (ANLI), LingNLI and WANLI datasets, which comprise 885 242 NLI hypothesis-premise pairs. This model is the best performing NLI model on the Hugging Face Hub as of 06.06.22 and can be used for zero-shot classification. It significantly outperforms all other large models on the ANLI benchmark. The foundation model is DeBERTa-v3-large from Microsoft. DeBERTa-v3 combines several recent innovations compared to classical Masked Language Models like BERT, RoBERTa etc., see the paper DeBERTa-v3-large-mnli-fever-anli-ling-wanli was trained on the MultiNLI, Fever-NLI, Adversarial-NLI (ANLI), LingNLI and WANLI datasets, which…

Open weights mit 435M parameters 512 tokens transformers

This model was trained using SentenceTransformers Cross-Encoder class. This model is based on microsoft/deberta-v3-large 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 435M parameters 512 tokens sentence-transformers

Model · Zero-shot classification

deberta-v3-large-tasksource-nli

Damien Sileo

DeBERTa-v3-large fine-tuned with multi-task learning on 600 tasks of the tasksource collection You can further fine-tune this model to use it for any classification or multiple-choice task. This checkpoint has strong zero-shot validation performance on many tasks (e.g. 77% on WNLI). The untuned model CLS embedding also has strong linear probing performance (90% on MNLI), due to the multitask training. This is the shared model with the MNLI classifier on top. Its encoder was trained on many datasets including bigbench, Anthropic rlhf, anli... alongside many NLI and classification tasks with a SequenceClassification heads while using only one shared encoder. Each task had a specific CLS…

Open weights apache-2.0 435M parameters 512 tokens transformers

Models in this series are designed for efficient zeroshot classification with the Hugging Face pipeline. These models can do classification without training data and run on both GPUs and CPUs. An overview of the latest zeroshot classifiers is available in my Zeroshot Classifier Collection. The main update of this zeroshot-v2.0 series of models is that several models are trained on fully commercially-friendly data for users with strict license requirements. These models can do one universal classification task: determine whether a hypothesis is "true" or "not true" given a text (entailment vs. notentailment). This task format is based on the Natural Language Inference task (NLI). The task is…

Open weights mit 435M parameters 512 tokens transformers