SAVRN
Search Contact SAVRN

Open-weight model · Text classification

ms-marco-MiniLM-L-6-v2

by Joshua Xenova/ms-marco-MiniLM-L-6-v2

https://huggingface.co/cross-encoder/ms-marco-MiniLM-L-6-v2 with ONNX weights to be compatible with Transformers.js.

Parameters
Context512
Weights345.8 MB
License
AccessOpen weights
Monthly Downloads1.1M

Model Card

https://huggingface.co/cross-encoder/ms-marco-MiniLM-L-6-v2 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).

Excerpt from the card by Joshua.

Configuration

Architecture
BertForSequenceClassification
Context length (tokens)
512
Layers
6
Hidden size
384
Feed-forward size
1,536
Attention heads
12
Vocabulary size
30,522
Model type
bert

Identity and Version

Repository
Xenova/ms-marco-MiniLM-L-6-v2
Publisher
Joshua
Task
Text classification
Modality
Text
Library
transformers.js
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
a09144355adeed5f58c8ed011d209bf8ee5a1fec
First published
2024-01-04
Last updated
2025-06-30

Files and Weights

16 files, 346.8 MB in total. The weights are 8 files totalling 345.8 MB in onnx.

Weights8 files · 345.8 MB
Configuration3 files · 1.7 KB
Tokenizer3 files · 944.1 KB
Documentation1 file · 1.8 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
onnx/model.onnxWeights91.0 MB c623d0bcb99f
onnx/model_bnb4.onnxWeights54.5 MB 9e31a2ab7661
onnx/model_fp16.onnxWeights45.6 MB a8b79f5c22bc
onnx/model_int8.onnxWeights23.0 MB a13ec391ca99
onnx/model_q4.onnxWeights55.2 MB 3ad0785ed300
onnx/model_q4f16.onnxWeights30.3 MB d860ca7adb70
onnx/model_quantized.onnxWeights23.1 MB e9d8ebf845c4
onnx/model_uint8.onnxWeights23.0 MB c259e88ff6fd
config.jsonConfiguration824 B
quantize_config.jsonConfiguration722 B
special_tokens_map.jsonConfiguration125 B
README.mdDocumentation1.8 KB
.gitattributesRepository1.5 KB
tokenizer.jsonTokenizer711.4 KB
tokenizer_config.jsonTokenizer1.2 KB
vocab.txtTokenizer231.5 KB

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
345.8 MB
Download from Joshua

Released by Joshua through its official repository on Hugging Face.

Built From

Memory Requirements

PrecisionWeights in memory
As published345.8 MB

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

Questions About ms-marco-MiniLM-L-6-v2

What is ms-marco-MiniLM-L-6-v2's context length?

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

Similar Models

Model · Text classification

finbert

Prosus AI

FinBERT is a pre-trained NLP model to analyze sentiment of financial text. It is built by further training the BERT language model in the finance domain, using a large financial corpus and thereby fine-tuning it for financial sentiment classification. Financial PhraseBank by Malo et al. (2014) is used for fine-tuning. For more details, please see the paper FinBERT: Financial Sentiment Analysis with Pre-trained Language Models and our related blog post on Medium. The model will give softmax outputs for three labels: positive, negative or neutral. About Prosus Prosus is a global consumer internet group and one of the largest technology investors in the world. Operating and investing globally…

Open weights 512 tokens transformers

Model · Text classification

twitter-roberta-base-sentiment-latest

Cardiff NLP

This is a RoBERTa-base model trained on ~124M tweets from January 2018 to December 2021, and finetuned for sentiment analysis with the TweetEval benchmark. The original Twitter-based RoBERTa model can be found here and the original reference paper is TweetEval. This model is suitable for English. 0 -> Negative; 1 -> Neutral; 2 -> Positive This sentiment analysis model has been integrated into TweetNLP. You can access the demo here.

Open weights cc-by-4.0 514 tokens transformers

Model · Text classification

twitter-xlm-roberta-base-sentiment

Cardiff NLP

This is a multilingual XLM-roBERTa-base model trained on ~198M tweets and finetuned for sentiment analysis. The sentiment fine-tuning was done on 8 languages (Ar, En, Fr, De, Hi, It, Sp, Pt) but it can be used for more languages (see paper for details). This model has been integrated into the TweetNLP library.

Open weights 514 tokens transformers

Model · Text classification

finbert-tone

Yi

FinBERT is a BERT model pre-trained on financial communication text. The purpose is to enhance financial NLP research and practice. It is trained on the following three financial communication corpus. The total corpora size is 4.9B tokens. More technical details on FinBERT: Click Link This released finbert-tone model is the FinBERT model fine-tuned on 10,000 manually annotated (positive, negative, neutral) sentences from analyst reports. This model achieves superior performance on financial tone analysis task. If you are simply interested in using FinBERT for financial tone analysis, give it a try. If you use the model in your academic work, please cite the following paper: Huang, Allen H.…

Open weights 512 tokens transformers

Model · Text classification

emotion-english-distilroberta-base

Hartmann

With this model, you can classify emotions in English text data. The model was trained on 6 diverse datasets (see Appendix below) and predicts Ekman's 6 basic emotions, plus a neutral class: 1) anger 2) disgust 3) fear 4) joy 5) neutral 6) sadness 7) surprise The model is a fine-tuned checkpoint of DistilRoBERTa-base. For a 'non-distilled' emotion model, please refer to the model card of the RoBERTa-large version. a) Run emotion model with 3 lines of code on single text example using Hugging Face's pipeline command on Google Colab: b) Run emotion model on multiple examples and full datasets (e.g.,.csv files) on Google Colab: Please reach out to [email protected] if you have any…

Open weights 514 tokens transformers

Model · Text classification

MedCPT-Cross-Encoder

NLM/DIR BioNLP Group

The output will be Higher scores indicate higher relevance. This work was supported by the Intramural Research Programs of the National Institutes of Health, National Library of Medicine. This tool shows the results of research conducted in the Computational Biology Branch, NCBI/NLM. The information produced on this website is not intended for direct diagnostic use or medical decision-making without review and oversight by a clinical professional. Individuals should not change their health behavior solely on the basis of information produced on this website. NIH does not independently verify the validity or utility of the information produced by this tool. If you have questions about the…

Open weights other 512 tokens transformers