alt.freeweights.embed / msmarco-distilroberta-base-v2
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

msmarco-distilroberta-base-v2

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

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

82M params3.52GBmsmarco-distilroberta-base-v2onnx openvino safetensorspermissive
FactsParams82MSize3.52 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/msmarco-distilroberta-base-v2
# manifest sha256 17731182fcab… · 3.52 GB · 29 files
$ fw verify ./msmarco-distilroberta-base-v2 sentence-transformers/msmarco-distilroberta-base-v2
From sourceHosted (signed)sentence-transformers/msmarco-distilroberta-base-v2Last check: 2026-11-15 03:40 UTC

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

Works with

Evaluate with

Overview

Size
3.52 GB
Weights
328 MB (safetensors)
Parameters
82M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
29, 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 03:40 UTCpassed

Model card

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

sentence-transformers/msmarco-distilroberta-base-v2#

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/msmarco-distilroberta-base-v2')
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/msmarco-distilroberta-base-v2')
model = AutoModel.from_pretrained('sentence-transformers/msmarco-distilroberta-base-v2')

# 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': 350, 'do_lower_case': False}) 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

29 files · 3.52 GBWeights 328 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.54 KB052d82d48c8552a2d424a48b2afb38b4aa46ecfc704c50d1fb6884d77a44de24
config.json683 B8c3d7d03701876e160a287d4014539febd19f69279366ffedede313ff015d1a7
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
flax_model.msgpack328 MB8b48db60b7c1dbb5f1817641af4d0f70331b2f1c12b3fb8d5024bcdfb6e9f66f
merges.txt456 KBfe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors328 MBfd03f32950ff63ca972e44fde917cc2153ed1c6cc5ca72c6a8218a2176fcc94a
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx326 MB343b475af71c3526a5c45cbe84848f0e21d24411c0ffa9d95f25ffbfbfc6f503
onnx/model_O1.onnx326 MBcb253e297f6ffa388c1227cd0f5781108c2c7d90cd2ef067af92d5a421f0e652
onnx/model_O2.onnx326 MBffde03c48ae394442ab5c6b7a13f37890d76903eb32ed130f574a8647aa8836a
onnx/model_O3.onnx326 MBc353e8bc07bd06702de257f00e92f5b6248115f909d7cc6060e5894899900df0
onnx/model_O4.onnx163 MB50e8c3990f09d5ddcf817cb6c35e0d03d944c953ed92702d79a67375ef3f8574
onnx/model_qint8_arm64.onnx82.2 MB6c76ec4f44ae852a8d2689f47b16ac1711b4e4aba0fe7efd6382ea5ae757643b
onnx/model_qint8_avx512.onnx82.2 MB6c76ec4f44ae852a8d2689f47b16ac1711b4e4aba0fe7efd6382ea5ae757643b
onnx/model_qint8_avx512_vnni.onnx82.2 MB6c76ec4f44ae852a8d2689f47b16ac1711b4e4aba0fe7efd6382ea5ae757643b
onnx/model_quint8_avx2.onnx82.2 MB9b2f10558b9ada4fde8afff5d81ab71473e70b13c20acdf81254218392f7c1a9
openvino/openvino_model.bin326 MBb81aa3f6198320af3df4a904f49445fb5f86a2b18b4be2328be6535e58710a2a
openvino/openvino_model.xml216 KBe766b9b5ace76ea262b5c365db5de46b5cb00efe76b5493e9113605b1649b739
openvino/openvino_model_qint8_quantized.bin82.2 MBc251451dbea6dea91aee0390d99ce09f4b518bd5c07d2c3fe7921b8232e5638c
openvino/openvino_model_qint8_quantized.xml373 KBfd97fe1d516e2fcedfdfdd590d2d7e829eb46b3916f6661bf1b9dcd0c96aefde
pytorch_model.bin329 MB287f1deba2b7737731981f72ecba16ad92cea0d8ded916b99ee5808617fa57af
sentence_bert_config.json53 B4e52cd0cf70ad3810a614956c69ccc1ea91de5ee497f8a31d2b17b37c8d37c00
special_tokens_map.json772 Bc611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00
tf_model.h5329 MBf67145f9dc06cf40a47e09f748c56de58a7c1c565c3bfa533f221cf251e389ab
tokenizer.json1.36 MB1d9873e8bc53b270a79a74f5ceb92a9e150f3c97c20063ef3b2cae1851baf474
tokenizer_config.json1.20 KBdb4a7e1c6069e98b6f905571c56afbe65dd0ad417e15ebfcc9ddc9fbc62e7050
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
d52faad9cd pinned now2026-11-15 03:40 UTC29 files · 3.52 GB

Use it

$ fw get sentence-transformers/msmarco-distilroberta-base-v2
# manifest sha256 17731182fcab… · 3.52 GB · 29 files
$ fw verify ./msmarco-distilroberta-base-v2 sentence-transformers/msmarco-distilroberta-base-v2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/sentence-transformers/msmarco-distilroberta-base-v2.json --dir ./msmarco-distilroberta-base-v2 $ python3 fw.py verify ./msmarco-distilroberta-base-v2 ./sentence-transformers__msmarco-distilroberta-base-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/msmarco-distilroberta-base-v2 --revision d52faad9cd25c72533ec2df15bea947d2ba9bfbe --local-dir ./msmarco-distilroberta-base-v2
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/msmarco-distilroberta-base-v2", revision="d52faad9cd25c72533ec2df15bea947d2ba9bfbe") model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilroberta-base-v2", revision="d52faad9cd25c72533ec2df15bea947d2ba9bfbe", 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/msmarco-distilroberta-base-v2", revision="d52faad9cd25c72533ec2df15bea947d2ba9bfbe") 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
052d82d48c8552a2d424a48b2afb38b4aa46ecfc704c50d1fb6884d77a44de24
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: msmarco-distilroberta-base-v2Date: 2026-11-15Commit: d52faadSigned: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/msmarco-distilroberta-base-v2
Pinned commit
d52faad9cd25c72533ec2df15bea947d2ba9bfbe
Manifest
msmarco-distilroberta-base-v2.json · .minisig
Manifest sha256
17731182fcabaf08574b5047df49514c980e15659d0f03866fd414d194645544
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:40 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/msmarco-distilroberta-base-v2.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/msmarco-distilroberta-base-v2.json.minisig $ minisign -Vm msmarco-distilroberta-base-v2.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/msmarco-distilroberta-base-v2
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. msmarco-distilroberta-base-v2.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