alt.freeweights.embed / roberta-base-nli-stsb-mean-tokens
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

roberta-base-nli-stsb-mean-tokens

Date: 2026-11-15Commit: 637539dSigned: 2DC28CC7B26A283B ✓

Sentence similarity model with 125M parameters. Onnx and openvino and safetensors weights, 5.35 GB in all. Published by sentence-transformers under Apache-2.0.

125M params5.35GBroberta-base-nli-stsb-mean-tokensonnx openvino safetensorspermissive
FactsParams125MSize5.35 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/roberta-base-nli-stsb-mean-tokens
# manifest sha256 0d735ac9f656… · 5.35 GB · 31 files
$ fw verify ./roberta-base-nli-stsb-mean-tokens sentence-transformers/roberta-base-nli-stsb-mean-tokens
From sourceHosted (signed)sentence-transformers/roberta-base-nli-stsb-mean-tokensLast check: 2026-11-15 02:48 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Evaluate with

Overview

Size
5.35 GB
Weights
499 MB (safetensors)
Parameters
125M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
31, each with a sha256
Publisher
sentence-transformers
Added
2026-11-15
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:48 UTCpassed

Model card

From the publisher at commit 637539d. Shown as plain text with links; images open at the publisher.

⚠️ This model is deprecated. Please don't use it as it produces sentence embeddings of low quality. You can find recommended sentence embedding models here: SBERT.net - Pretrained Models

sentence-transformers/roberta-base-nli-stsb-mean-tokens#

This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.

Usage (Sentence-Transformers)#

Using this model becomes easy when you have sentence-transformers installed:

pip install -U sentence-transformers

Then you can use the model like this:

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/roberta-base-nli-stsb-mean-tokens')
embeddings = model.encode(sentences)
print(embeddings)

Usage (HuggingFace Transformers)#

Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.

from transformers import AutoTokenizer, AutoModel
import torch


#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0] #First element of model_output contains all token embeddings
    input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
    return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)


# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/roberta-base-nli-stsb-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/roberta-base-nli-stsb-mean-tokens')

# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    model_output = model(**encoded_input)

# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

print("Sentence embeddings:")
print(sentence_embeddings)

Full Model Architecture#

SentenceTransformer(
  (0): Transformer({'max_seq_length': 128, 'do_lower_case': True}) with Transformer model: RobertaModel 
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)

Citing & Authors#

This model was trained by sentence-transformers.

If you find this model helpful, feel free to cite our publication Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks:

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "http://arxiv.org/abs/1908.10084",
}

Files

31 files · 5.35 GBWeights 499 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 31 files with their sha256
FileSizesha256
.gitattributes802 B4a60362c1710dccd34fde5eebcb741af1f4b4cc72946e6b75ef5d35183d84105
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.81 KBec1705c44316c91d0717d47b60f5a5bd733523b23c9922aa7ff5330a9a85dd2d
added_tokens.json2 B44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
config.json688 B8c7fc616f20fe90e5aa77978833244b626a595a2efd38ad1479828b6dc9b3a68
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
flax_model.msgpack499 MB2fd7b517d829bcd5b5f690be53ea875c773c5521093c2a4e6f43ac1549e8db1a
merges.txt456 KBfe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors499 MB107924e23f06467a634e5dd080b1c6150238935f0229f66994e76d747613ee0c
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx496 MB682bc9d1fc8d831b0bd937d568042c62edc00882d0c97fa076e8a237495c3d9e
onnx/model_O1.onnx496 MB002274dd476b0851c6d39db568346ba9b7c8af2e06a244bae036e73db5cd895a
onnx/model_O2.onnx496 MB5349a01cf0cd5ddf849864f3e9548a60653fa7ea8c18eb2c210bc41f676d421d
onnx/model_O3.onnx496 MB84a15cea5980a14e3403d8b62337cea6b4f74132dc162b3b4021fe42f7e90b2f
onnx/model_O4.onnx248 MB079271c143651cc5633c0d573676d81da0ffb3224b7dc8e3e0d859a88e549dca
onnx/model_qint8_arm64.onnx125 MB430f7bebde5d18632d3adb4832ceeaf66ed3272e1359629b7c046a87ee1466dd
onnx/model_qint8_avx512.onnx125 MB430f7bebde5d18632d3adb4832ceeaf66ed3272e1359629b7c046a87ee1466dd
onnx/model_qint8_avx512_vnni.onnx125 MB430f7bebde5d18632d3adb4832ceeaf66ed3272e1359629b7c046a87ee1466dd
onnx/model_quint8_avx2.onnx125 MB71a6236400ca8a06c869cd40977fa52814c4a53fbc387a02d17376b0797caa4f
openvino/openvino_model.bin496 MB50a94c2f3236b1b85bc056f42120ba46430fdefd0b6c2f4424effcbb7bd9a8aa
openvino/openvino_model.xml409 KB4df909ac7e87ba44560285fb04054f9c7948ddaa83ed5426e4c55e643ac82d3e
openvino/openvino_model_qint8_quantized.bin125 MB0cd5906c73dee2da5ab4502d799d2d6c2f1c25e8361ce6f7e01df85851ed1584
openvino/openvino_model_qint8_quantized.xml718 KB3e4b70be01b6bc2877a9bdb4e31bb657f5692260ecb4833b757f87cee19c00b3
pytorch_model.bin499 MB4d340e57fb0a060fa6e28a6a2dcf1cc098a347b76ad8f33253990e6f67370a65
sentence_bert_config.json52 B97f6489afd51e42cbac1e41754697da5b6020725f330924c6c9d4e1e214bd6c6
sentence_roberta_config.json52 B97f6489afd51e42cbac1e41754697da5b6020725f330924c6c9d4e1e214bd6c6
special_tokens_map.json239 B378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tf_model.h5499 MB864112bf5c193eb14a5ff62b2513a55d8b8df66cc6171c569fa03f48c255f8aa
tokenizer.json1.36 MB33465117406b9007673e8ba283f7f1383d9b5094df947481af60eec94ed7d7bd
tokenizer_config.json334 B63bbf3ff525c82051d22771a8e05d09d17fcdfceb1f441828ca0d2b79373ce5e
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
637539d0f7 pinned now2026-11-15 02:48 UTC31 files · 5.35 GB

Use it

$ fw get sentence-transformers/roberta-base-nli-stsb-mean-tokens
# manifest sha256 0d735ac9f656… · 5.35 GB · 31 files
$ fw verify ./roberta-base-nli-stsb-mean-tokens sentence-transformers/roberta-base-nli-stsb-mean-tokens
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/sentence-transformers/roberta-base-nli-stsb-mean-tokens.json --dir ./roberta-base-nli-stsb-mean-tokens $ python3 fw.py verify ./roberta-base-nli-stsb-mean-tokens ./sentence-transformers__roberta-base-nli-stsb-mean-tokens.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/roberta-base-nli-stsb-mean-tokens --revision 637539d0f7482cdd043040c1b59a7270b5e0ecc6 --local-dir ./roberta-base-nli-stsb-mean-tokens
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("sentence-transformers/roberta-base-nli-stsb-mean-tokens", revision="637539d0f7482cdd043040c1b59a7270b5e0ecc6") model = AutoModel.from_pretrained("sentence-transformers/roberta-base-nli-stsb-mean-tokens", revision="637539d0f7482cdd043040c1b59a7270b5e0ecc6", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("sentence-transformers/roberta-base-nli-stsb-mean-tokens", revision="637539d0f7482cdd043040c1b59a7270b5e0ecc6") vectors = model.encode(["Hello"])

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
ec1705c44316c91d0717d47b60f5a5bd733523b23c9922aa7ff5330a9a85dd2d
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject: roberta-base-nli-stsb-mean-tokensDate: 2026-11-15Commit: 637539dSigned: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/roberta-base-nli-stsb-mean-tokens
Pinned commit
637539d0f7482cdd043040c1b59a7270b5e0ecc6
Manifest
roberta-base-nli-stsb-mean-tokens.json · .minisig
Manifest sha256
0d735ac9f656953e46fe2f819bbec8aabffc36bf217787e40763292b68ddb4d7
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:48 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/roberta-base-nli-stsb-mean-tokens.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/roberta-base-nli-stsb-mean-tokens.json.minisig $ minisign -Vm roberta-base-nli-stsb-mean-tokens.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/roberta-base-nli-stsb-mean-tokens
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. roberta-base-nli-stsb-mean-tokens.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens