alt.freeweights.embed / all-roberta-large-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

all-roberta-large-v1

Date: 2026-11-14Commit: cf74d8aSigned: 2DC28CC7B26A283B ✓

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

355M params12.4GBall-roberta-large-v1onnx openvino safetensorspermissive
FactsParams355MSize12.4 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/all-roberta-large-v1
# manifest sha256 a14fa022908e… · 12.4 GB · 29 files
$ fw verify ./all-roberta-large-v1 sentence-transformers/all-roberta-large-v1
From sourceHosted (signed)sentence-transformers/all-roberta-large-v1Last check: 2026-11-14 21:10 UTC

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

Works with

Evaluate with

Overview

Size
12.4 GB
Weights
1.42 GB (safetensors)
Parameters
355M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
29, each with a sha256
Publisher
sentence-transformers
Added
2026-11-14
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-14 21:10 UTCpassed

Model card

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

all-roberta-large-v1#

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/all-roberta-large-v1')
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
import torch.nn.functional as F

#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/all-roberta-large-v1')
model = AutoModel.from_pretrained('sentence-transformers/all-roberta-large-v1')

# 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
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

# Normalize embeddings
sentence_embeddings = F.normalize(sentence_embeddings, p=2, dim=1)

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

Background#

The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised contrastive learning objective. We used the pretrained roberta-large model and fine-tuned in on a 1B sentence pairs dataset. We use a contrastive learning objective: given a sentence from the pair, the model should predict which out of a set of randomly sampled other sentences, was actually paired with it in our dataset.

We developped this model during the Community week using JAX/Flax for NLP & CV, organized by Hugging Face. We developped this model as part of the project: Train the Best Sentence Embedding Model Ever with 1B Training Pairs. We benefited from efficient hardware infrastructure to run the project: 7 TPUs v3-8, as well as intervention from Googles Flax, JAX, and Cloud team member about efficient deep learning frameworks.

Intended uses#

Our model is intented to be used as a sentence and short paragraph encoder. Given an input text, it ouptuts a vector which captures the semantic information. The sentence vector may be used for information retrieval, clustering or sentence similarity tasks.

By default, input text longer than 128 word pieces is truncated.

Training procedure#

Pre-training#

We use the pretrained roberta-large. Please refer to the model card for more detailed information about the pre-training procedure.

Fine-tuning#

We fine-tune the model using a contrastive objective. Formally, we compute the cosine similarity from each possible sentence pairs from the batch. We then apply the cross entropy loss by comparing with true pairs.

Hyper parameters#

We trained ou model on a TPU v3-8. We train the model during 400k steps using a batch size of 256 (32 per TPU core). We use a learning rate warm up of 500. The sequence length was limited to 128 tokens. We used the AdamW optimizer with a 2e-5 learning rate. The full training script is accessible in this current repository: train_script.py.

Training data#

We use the concatenation from multiple datasets to fine-tune our model. The total number of sentence pairs is above 1 billion sentences. We sampled each dataset given a weighted probability which configuration is detailed in the data_config.json file.

DatasetPaperNumber of training tuples
Reddit comments (2015-2018)paper726,484,430
S2ORC Citation pairs (Abstracts)paper116,288,806
WikiAnswers Duplicate question pairspaper77,427,422
PAQ (Question, Answer) pairspaper64,371,441
S2ORC Citation pairs (Titles)paper52,603,982
S2ORC (Title, Abstract)paper41,769,185
Stack Exchange (Title, Body) pairs-25,316,456
MS MARCO tripletspaper9,144,553
GOOAQ: Open Question Answering with Diverse Answer Typespaper3,012,496
Yahoo Answers (Title, Answer)paper1,198,260
Code Search-1,151,414
COCO Image captionspaper828,395
SPECTER citation tripletspaper684,100
Yahoo Answers (Question, Answer)paper681,164
Yahoo Answers (Title, Question)paper659,896
SearchQApaper582,261
Eli5paper325,475
Flickr 30kpaper317,695
Stack Exchange Duplicate questions (titles)304,525
AllNLI (SNLI and MultiNLIpaper SNLI, paper MultiNLI277,230
Stack Exchange Duplicate questions (bodies)250,519
Stack Exchange Duplicate questions (titles+bodies)250,460
Sentence Compressionpaper180,000
Wikihowpaper128,542
Altlexpaper112,696
Quora Question Triplets-103,663
Simple Wikipediapaper102,225
Natural Questions (NQ)paper100,231
SQuAD2.0paper87,599
TriviaQA-73,346
Total1,124,818,467

Files

29 files · 12.4 GBWeights 1.42 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes791 Beedaa232843a5fee706aa818a601221bf17acb6c304888d1f69c04725e03ebb7
1_Pooling/config.json191 Bc3928f93d5602f7c6534731447ed30565c943d1b3a85b2264a32601ad6fbcee3
README.md9.68 KBd46468ae57ecf1599747038e8c0fdb368f86965b69c65283bd177b9eed3712ac
config.json650 B46ec095fd384ac352e2a58609f234834afc7e88e196149d9a5124651dd550424
config_sentence_transformers.json116 B061ca9d39661d6c6d6de5ba27f79a1cd5770ea247f8d46412a68a498dc5ac9f3
data_config.json15.7 KB2ba682c372ee7ac37d519df39571ec0543f55ae31273844be05f8a5acdf92e2a
merges.txt456 KBfe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors1.42 GB8d01238e458e40095fb242e75dfc2fa18ff14f6825d7e8e065dc9de414010743
modules.json349 B84e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
onnx/model.onnx1.42 GB6f2d93448ed45b05ed5af01d70a39c478b7bbbfd85da8c29e9f5257aad8fce81
onnx/model_O1.onnx1.42 GB8c64ffe777084ff27af4fd189bd661d3d79c4eeee32d96dac69e85fc10f89ae3
onnx/model_O2.onnx1.42 GB4d2deab7bf2d581d79f6480a40381f35968134b83d76eda9acce8e4191459c5c
onnx/model_O3.onnx1.42 GB8f189be6603d20ae852218d1b88d4b166314c460d67a38e662a64a6b219a463c
onnx/model_O4.onnx709 MB9ee3121f8d86f8be84042f01a39c0517352d361f67f34db903ea17b67371b90e
onnx/model_qint8_arm64.onnx357 MB3a7e3e4f09df8ec54e98ee90ad078f0d0a612c7e85d8a14c02e14333f1e9c63b
onnx/model_qint8_avx512.onnx357 MB3a7e3e4f09df8ec54e98ee90ad078f0d0a612c7e85d8a14c02e14333f1e9c63b
onnx/model_qint8_avx512_vnni.onnx357 MB3a7e3e4f09df8ec54e98ee90ad078f0d0a612c7e85d8a14c02e14333f1e9c63b
onnx/model_quint8_avx2.onnx358 MB2630f3d1c3e585eae94415c7b4306acf22d327095dab81726d4bf6943a815585
openvino/openvino_model.bin1.42 GB196b4dc8b44ec2a42e6fa27ae3e94b383d0950d4a3ff1032b0277d381ea48c00
openvino/openvino_model.xml799 KB1dc2aca31d6a5c46c9be4ea7c75fcd3328df511bfcc084b6ac6905d7420b5817
openvino/openvino_model_qint8_quantized.bin357 MB4c82375dd327eba5799d3ccdda32d22cab13074774fae09332cdff33c6d6d71d
openvino/openvino_model_qint8_quantized.xml1.42 MB3236a117eed2ab76a2f7abd99887d87862647767baef8a1a63249088354f3302
pytorch_model.bin1.42 GB29bb8f3e407eaaa38e2675111fa56cf6f56cb56aab4f2257477fbb1467c07747
sentence_bert_config.json53 Bfc1993fde0a95c24ec6c022539d41cf6e2f7c9721e5415d6fb6897472a9cd4b7
special_tokens_map.json239 B378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tokenizer.json1.36 MB7a6751507c44ab383cc8ba8ab97cd857d35025ff1b29162b1690cc5e0c6030e9
tokenizer_config.json328 B95bf35a9a8cd2808dce7ee01471b320483e43d9914fbf6aa52bdc65abbbd15e1
train_script.py13.1 KBb6e378fb90c215e7de67f3a829277d941808c2e5f266841c9caaee34574102d6
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
cf74d8acd4 pinned now manifest updated, same commit2026-11-14 21:10 UTC29 files · 12.4 GB
cf74d8acd42026-11-14 21:10 UTC29 files · 12.4 GB

Use it

$ fw get sentence-transformers/all-roberta-large-v1
# manifest sha256 a14fa022908e… · 12.4 GB · 29 files
$ fw verify ./all-roberta-large-v1 sentence-transformers/all-roberta-large-v1
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/sentence-transformers/all-roberta-large-v1.json --dir ./all-roberta-large-v1 $ python3 fw.py verify ./all-roberta-large-v1 ./sentence-transformers__all-roberta-large-v1.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/all-roberta-large-v1 --revision cf74d8acd4f198de950bf004b262e6accfed5d2c --local-dir ./all-roberta-large-v1
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/all-roberta-large-v1", revision="cf74d8acd4f198de950bf004b262e6accfed5d2c") model = AutoModel.from_pretrained("sentence-transformers/all-roberta-large-v1", revision="cf74d8acd4f198de950bf004b262e6accfed5d2c", 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/all-roberta-large-v1", revision="cf74d8acd4f198de950bf004b262e6accfed5d2c") 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-14
Text in
README.md
Text sha256
d46468ae57ecf1599747038e8c0fdb368f86965b69c65283bd177b9eed3712ac
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: all-roberta-large-v1Date: 2026-11-14Commit: cf74d8aSigned: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/all-roberta-large-v1
Pinned commit
cf74d8acd4f198de950bf004b262e6accfed5d2c
Manifest
all-roberta-large-v1.json · .minisig
Manifest sha256
a14fa022908e678b144b98d2bb1f24913548c6de803e05f04bd3b9be5477d490
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:10 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/all-roberta-large-v1.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/all-roberta-large-v1.json.minisig $ minisign -Vm all-roberta-large-v1.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/all-roberta-large-v1
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. all-roberta-large-v1.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