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

roberta-large-nli-stsb-mean-tokens

Date: 2026-11-15Commit: e24ed4aSigned: 2DC28CC7B26A283B ✓

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

355M params15.3GBroberta-large-nli-stsb-mean-tokensonnx openvino safetensorspermissive
FactsParams355MSize15.3 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/roberta-large-nli-stsb-mean-tokens
# manifest sha256 3bf99355b052… · 15.3 GB · 31 files
$ fw verify ./roberta-large-nli-stsb-mean-tokens sentence-transformers/roberta-large-nli-stsb-mean-tokens
From sourceHosted (signed)sentence-transformers/roberta-large-nli-stsb-mean-tokensLast check: 2026-11-15 02:50 UTC

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

Works with

Evaluate with

Overview

Size
15.3 GB
Weights
1.42 GB (safetensors)
Parameters
355M
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:50 UTCpassed

Model card

From the publisher at commit e24ed4a. 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-large-nli-stsb-mean-tokens#

This is a sentence-transformers model: It maps sentences & paragraphs to a 1024 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-large-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-large-nli-stsb-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/roberta-large-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': 1024, '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 · 15.3 GBWeights 1.42 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 31 files with their sha256
FileSizesha256
.gitattributes802 B9588d8c100d5f2989f71763ce3693d67cbf80e9a880cf5ab64f9cecd9ffe4763
1_Pooling/config.json191 Bc3928f93d5602f7c6534731447ed30565c943d1b3a85b2264a32601ad6fbcee3
README.md3.81 KB0ceec33a1b05869fe472fbee1a93aca648147ad0ec8b0e517810c2f96945c346
added_tokens.json2 B44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
config.json690 Bb513a72188c10bf5f7de5f4332bb7445592956f7df1172ceeb3a829715e3eae7
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
flax_model.msgpack1.42 GB9412b8f2b54e1aa00593a9b9f0cf0f8c127ff3ec155462d93290594d26a51c28
merges.txt456 KBfe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors1.42 GB887859bc7fe5b4d7649cc23fa42b8053f711a3d6a5cb894549f81c17931e6360
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx1.42 GB043fe3a7a6d44525afe3577972316418426f2b2641a32254f27165bcb86dfde3
onnx/model_O1.onnx1.42 GB522e4cc60cd475a4aad3ac2c261ebf6376517d0a05d93106ea245c6c8e53fba9
onnx/model_O2.onnx1.42 GB4c4b09b15ee22c0a7b5587f9e925887cbdd4592d1d46f924de5d3d4782509d82
onnx/model_O3.onnx1.42 GB4bed9f0d53e53f38d69e1ae85ab427c180c6c293b6364b31e9d0a37d7fc945b3
onnx/model_O4.onnx709 MB942063e3f619ec53e42039bcced62617110b3a4087600bcb844b80e6383b5397
onnx/model_qint8_arm64.onnx357 MBf21197900e0e37837c02092079e0a982c7060e960ed499a515047d1700c255cc
onnx/model_qint8_avx512.onnx357 MBf21197900e0e37837c02092079e0a982c7060e960ed499a515047d1700c255cc
onnx/model_qint8_avx512_vnni.onnx357 MBf21197900e0e37837c02092079e0a982c7060e960ed499a515047d1700c255cc
onnx/model_quint8_avx2.onnx358 MB907c36da62bdf0c19d2cbc4a5fc12780ee7f76712b20116c64f2357900bb8e7c
openvino/openvino_model.bin1.42 GBda3222e281c4ff1ab09f3cb14859907c605b8fb309541895886fcf7d4e09d3dc
openvino/openvino_model.xml798 KBc23ea7cdbf1faaeecf7738123f1b015e9e04145cf34dacc558910e6f2bc4ff09
openvino/openvino_model_qint8_quantized.bin357 MBab85553fe0f57addce02c1049e8b23fb888b75dd147f900f117e1aee84f3be74
openvino/openvino_model_qint8_quantized.xml1.42 MBa72e28d4390fe2c20646dddb0e088438a5458e86a576ed1a8aa963f9a27d89ae
pytorch_model.bin1.42 GBd96e3630c418e7477298d942ac680e708a8c2f4f2aabc38dad9803b098c7546f
sentence_bert_config.json52 B97f6489afd51e42cbac1e41754697da5b6020725f330924c6c9d4e1e214bd6c6
sentence_roberta_config.json52 B97f6489afd51e42cbac1e41754697da5b6020725f330924c6c9d4e1e214bd6c6
special_tokens_map.json239 B378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tf_model.h51.42 GB1c595211371d489cb02c6de96c712eba3254eddbbdc97f901f61534d6bf3375a
tokenizer.json1.36 MB33465117406b9007673e8ba283f7f1383d9b5094df947481af60eec94ed7d7bd
tokenizer_config.json335 B82611c3f35955db55a70a63a28ab8415eef7f244b393b72fafd3cd6f23f1adca
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e24ed4a0dd pinned now2026-11-15 02:50 UTC31 files · 15.3 GB

Use it

$ fw get sentence-transformers/roberta-large-nli-stsb-mean-tokens
# manifest sha256 3bf99355b052… · 15.3 GB · 31 files
$ fw verify ./roberta-large-nli-stsb-mean-tokens sentence-transformers/roberta-large-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-large-nli-stsb-mean-tokens.json --dir ./roberta-large-nli-stsb-mean-tokens $ python3 fw.py verify ./roberta-large-nli-stsb-mean-tokens ./sentence-transformers__roberta-large-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-large-nli-stsb-mean-tokens --revision e24ed4a0dd9771a1e0f6bba380269be0dd4f0e47 --local-dir ./roberta-large-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-large-nli-stsb-mean-tokens", revision="e24ed4a0dd9771a1e0f6bba380269be0dd4f0e47") model = AutoModel.from_pretrained("sentence-transformers/roberta-large-nli-stsb-mean-tokens", revision="e24ed4a0dd9771a1e0f6bba380269be0dd4f0e47", 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-large-nli-stsb-mean-tokens", revision="e24ed4a0dd9771a1e0f6bba380269be0dd4f0e47") 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
0ceec33a1b05869fe472fbee1a93aca648147ad0ec8b0e517810c2f96945c346
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-large-nli-stsb-mean-tokensDate: 2026-11-15Commit: e24ed4aSigned: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/roberta-large-nli-stsb-mean-tokens
Pinned commit
e24ed4a0dd9771a1e0f6bba380269be0dd4f0e47
Manifest
roberta-large-nli-stsb-mean-tokens.json · .minisig
Manifest sha256
3bf99355b052ef28a71a57428fc91f018ea14792a549aafeda4fff354ce323a0
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:50 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/roberta-large-nli-stsb-mean-tokens.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/roberta-large-nli-stsb-mean-tokens.json.minisig $ minisign -Vm roberta-large-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-large-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-large-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