AI SeedbankHelp preserve open and free AI for humanity's future

← All models

sentence-transformers_all-roberta-large-v1

sentence-transformers · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language: en license: apache-2.0 library_name: sentence-transformers tags:

  • sentence-transformers
  • feature-extraction
  • sentence-similarity
  • transformers pipeline_tag: sentence-similarity

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.

Dataset Paper Number of training tuples
Reddit comments (2015-2018) paper 726,484,430
S2ORC Citation pairs (Abstracts) paper 116,288,806
WikiAnswers Duplicate question pairs paper 77,427,422
PAQ (Question, Answer) pairs paper 64,371,441
S2ORC Citation pairs (Titles) paper 52,603,982
S2ORC (Title, Abstract) paper 41,769,185
Stack Exchange (Title, Body) pairs - 25,316,456
MS MARCO triplets paper 9,144,553
GOOAQ: Open Question Answering with Diverse Answer Types paper 3,012,496
Yahoo Answers (Title, Answer) paper 1,198,260
Code Search - 1,151,414
COCO Image captions paper 828,395
SPECTER citation triplets paper 684,100
Yahoo Answers (Question, Answer) paper 681,164
Yahoo Answers (Title, Question) paper 659,896
SearchQA paper 582,261
Eli5 paper 325,475
Flickr 30k paper 317,695
Stack Exchange Duplicate questions (titles) 304,525
AllNLI (SNLI and MultiNLI paper SNLI, paper MultiNLI 277,230
Stack Exchange Duplicate questions (bodies) 250,519
Stack Exchange Duplicate questions (titles+bodies) 250,460
Sentence Compression paper 180,000
Wikihow paper 128,542
Altlex paper 112,696
Quora Question Triplets - 103,663
Simple Wikipedia paper 102,225
Natural Questions (NQ) paper 100,231
SQuAD2.0 paper 87,599
TriviaQA - 73,346
Total 1,124,818,467

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:fb5bce0b09ae3088e1637b082a27bdbb78fadace&dn=sentence-transformers_all-roberta-large-v1

Open magnet in torrent client · infohash fb5bce0b09ae3088e1637b082a27bdbb78fadace

Files & hashes

PathSizesha1sha256
1_Pooling/config.json191 B (191 B)c95142ea6a1227bc1f5c082261148479ebc4677dc3928f93d5602f7c6534731447ed30565c943d1b3a85b2264a32601ad6fbcee3
README.md9.5 KB (9,681 B)0631ecad6163689b6c9fecebb0ab639ade64ecded46468ae57ecf1599747038e8c0fdb368f86965b69c65283bd177b9eed3712ac
config.json650 B (650 B)8398b51490268ddfbfcdd7d8df6daafb31518ef446ec095fd384ac352e2a58609f234834afc7e88e196149d9a5124651dd550424
config_sentence_transformers.json116 B (116 B)fd1b291129c607e5d49799f87cb219b27f98acdf061ca9d39661d6c6d6de5ba27f79a1cd5770ea247f8d46412a68a498dc5ac9f3
data_config.json15.3 KB (15,679 B)a52c955464a48cc01e51f73c50aa91d82344cd482ba682c372ee7ac37d519df39571ec0543f55ae31273844be05f8a5acdf92e2a
merges.txt445.7 KB (456,356 B)6636bda4a1fd7a63653dffb22683b8162c8de956fe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors1.32 GB (1,421,488,104 B)d57b6640eba086d7220cf08507d6b20837674e468d01238e458e40095fb242e75dfc2fa18ff14f6825d7e8e065dc9de414010743
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
openvino/openvino_model.bin1.32 GB (1,417,244,820 B)ca9452f248e4629d42c14f737145220913af594c196b4dc8b44ec2a42e6fa27ae3e94b383d0950d4a3ff1032b0277d381ea48c00
openvino/openvino_model.xml780.0 KB (798,725 B)523f14d0c762a35be67163737db94618711c667f1dc2aca31d6a5c46c9be4ea7c75fcd3328df511bfcc084b6ac6905d7420b5817
openvino/openvino_model_qint8_quantized.bin340.5 MB (357,056,132 B)5b943128bb9af8ba76be2b16f4c0e4d70aa14ea94c82375dd327eba5799d3ccdda32d22cab13074774fae09332cdff33c6d6d71d
openvino/openvino_model_qint8_quantized.xml1.4 MB (1,417,090 B)6d67bb8cefb15d420f2f045dd8acdbacfe42c4c93236a117eed2ab76a2f7abd99887d87862647767baef8a1a63249088354f3302
pytorch_model.bin1.32 GB (1,421,566,897 B)be22fef3bcd4a0c15d802d5ca0d2bf35d112a5ef29bb8f3e407eaaa38e2675111fa56cf6f56cb56aab4f2257477fbb1467c07747
sentence_bert_config.json53 B (53 B)59d594003bf59880a884c574bf88ef7555bb0202fc1993fde0a95c24ec6c022539d41cf6e2f7c9721e5415d6fb6897472a9cd4b7
special_tokens_map.json239 B (239 B)2ea7ad0e45a9d1d1591782ba7e29a703d0758831378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tokenizer.json1.3 MB (1,356,047 B)7a7f517f71e7a3286b03572ece4fb2e5a0571db67a6751507c44ab383cc8ba8ab97cd857d35025ff1b29162b1690cc5e0c6030e9
tokenizer_config.json328 B (328 B)dc55089a1401e33737f2e73f5b331c0ce77fc2ce95bf35a9a8cd2808dce7ee01471b320483e43d9914fbf6aa52bdc65abbbd15e1
train_script.py12.8 KB (13,119 B)690f02df70820c8c5e03899c96ce1c9758821807b6e378fb90c215e7de67f3a829277d941808c2e5f266841c9caaee34574102d6
vocab.json779.6 KB (798,293 B)4ebe4bb3f3114daf2e4cc349f24873a1175a35d7ed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_all-roberta-large-v1/
Slug
sentence-transformers_all-roberta-large-v1
Infohash
fb5bce0b09ae3088e1637b082a27bdbb78fadace
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers_all-roberta-large-v1.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/all-roberta-large-v1
Revision (pinned)cf74d8acd4f198de950bf004b262e6accfed5d2c
Fetched at2026-09-04T05:36:00Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T05:36:51Z

apache-2.04.30 GB (4,622,222,869 bytes)sentence-transformerspytorchonnxsafetensorsopenvinorobertafill-maskfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible1 language (en)paper: 1904.06472paper: 2102.07033paper: 2104.08727paper: 1704.05179paper: 1810.09305