alt.freeweights.embed / msmarco-distilbert-dot-v5
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

msmarco-distilbert-dot-v5

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

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

66M params2.59GBmsmarco-distilbert-dot-v5onnx openvino safetensorspermissive
FactsParams66MSize2.59 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/msmarco-distilbert-dot-v5
# manifest sha256 465b44a0b2f0… · 2.59 GB · 28 files
$ fw verify ./msmarco-distilbert-dot-v5 sentence-transformers/msmarco-distilbert-dot-v5
From sourceHosted (signed)sentence-transformers/msmarco-distilbert-dot-v5Last check: 2026-11-15 02:39 UTC

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

Works with

Evaluate with

Overview

Size
2.59 GB
Weights
265 MB (safetensors)
Parameters
66M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
28, 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:39 UTCpassed

Model card

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

msmarco-distilbert-dot-v5#

This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and was designed for semantic search. It has been trained on 500K (query, answer) pairs from the MS MARCO dataset. For an introduction to semantic search, have a look at: SBERT.net - 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, util

query = "How many people live in London?"
docs = ["Around 9 Million people live in London", "London is known for its financial district"]

#Load the model
model = SentenceTransformer('sentence-transformers/msmarco-distilbert-dot-v5')

#Encode query and documents
query_emb = model.encode(query)
doc_emb = model.encode(docs)

#Compute dot score between query and all document embeddings
scores = util.dot_score(query_emb, doc_emb)[0].cpu().tolist()

#Combine docs & scores
doc_score_pairs = list(zip(docs, scores))

#Sort by decreasing score
doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True)

#Output passages & scores
print("Query:", query)
for doc, score in doc_score_pairs:
    print(score, doc)

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 correct 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.last_hidden_state
    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)


#Encode text
def encode(texts):
    # Tokenize sentences
    encoded_input = tokenizer(texts, padding=True, truncation=True, return_tensors='pt')

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

    # Perform pooling
    embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

    return embeddings


# Sentences we want sentence embeddings for
query = "How many people live in London?"
docs = ["Around 9 Million people live in London", "London is known for its financial district"]

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v5")
model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v5")

#Encode query and docs
query_emb = encode(query)
doc_emb = encode(docs)

#Compute dot score between query and all document embeddings
scores = torch.mm(query_emb, doc_emb.transpose(0, 1))[0].cpu().tolist()

#Combine docs & scores
doc_score_pairs = list(zip(docs, scores))

#Sort by decreasing score
doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True)

#Output passages & scores
print("Query:", query)
for doc, score in doc_score_pairs:
    print(score, doc)

Technical Details#

In the following some technical details how this model must be used:

SettingValue
Dimensions768
Max Sequence Length512
Produces normalized embeddingsNo
Pooling-MethodMean pooling
Suitable score functionsdot-product (e.g. util.dot_score)

Training#

See train_script.py in this repository for the used training script.

The model was trained with the parameters:

DataLoader:

torch.utils.data.dataloader.DataLoader of length 7858 with parameters:

{'batch_size': 64, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}

Loss:

sentence_transformers.losses.MarginMSELoss.MarginMSELoss

Parameters of the fit()-Method:

{
    "callback": null,
    "epochs": 30,
    "evaluation_steps": 0,
    "evaluator": "NoneType",
    "max_grad_norm": 1,
    "optimizer_class": "<class 'transformers.optimization.AdamW'>",
    "optimizer_params": {
        "lr": 1e-05
    },
    "scheduler": "WarmupLinear",
    "steps_per_epoch": null,
    "warmup_steps": 10000,
    "weight_decay": 0.01
}

Full Model Architecture#

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: DistilBertModel 
  (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",
}

License#

This model is released under the Apache 2 license. However, note that this model was trained on the MS MARCO dataset which has it's own license restrictions: MS MARCO - Terms and Conditions.

Files

28 files · 2.59 GBWeights 265 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 28 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md6.27 KB0bd422a1d6178495d0ebe0192c0a94217c54d26f62f18a7e1cad9f1ec404eda0
config.json546 B2011eee516c2b511e5f6a2fbc493c9623a90586a5a9f7f31bc7b26f4cc3b96bf
config_sentence_transformers.json212 Ba0bd26d1ab4b225b2caefc40bef21c2a6e3e57da466df01a85f56d0dd9acc071
model.safetensors265 MB7daa9b9afe07570758bb810eb55b3f248a672c7c348396907d7ce46630cff0df
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx266 MBe9ceed39618b9c8bcd3d282fe42f5fb285ba7f9ac3f0b8d365db97b615eafe6e
onnx/model_O1.onnx266 MB9f731d779bfcf24e1d969b312c5b888c6ad96f08574a0715801721a79795f76b
onnx/model_O2.onnx265 MB359569060665cbcab0b79b62433765e05375a6fb71b61549f11300c9312d46b7
onnx/model_O3.onnx265 MBb1d2aabab430cee551b57d33e1e13316b92df9dd3f70c5e1e47f2eb7d2f06a0f
onnx/model_O4.onnx133 MBef1ffa77578c058aea1a09be4471698f739f17b4d639eea831084d632ba58ccf
onnx/model_qint8_arm64.onnx67.0 MB8c86d6e7935918409b7be0ed2e4e16a4ad026cf621894870d678c6a984192e7a
onnx/model_qint8_avx512.onnx67.0 MB8c86d6e7935918409b7be0ed2e4e16a4ad026cf621894870d678c6a984192e7a
onnx/model_qint8_avx512_vnni.onnx67.0 MB8c86d6e7935918409b7be0ed2e4e16a4ad026cf621894870d678c6a984192e7a
onnx/model_quint8_avx2.onnx67.0 MBf6a236a06b0c2fa3db0a8bc1e0dca79f12752c60b20e87edcd12a3f9e6e35059
openvino/openvino_model.bin265 MB791914376291e0f2309b3d0ec5b37a02aef8b89ed6a7f041810d62fd3d0ceb10
openvino/openvino_model.xml218 KBa1441348f4ea1d21faccae0aef799e524a490d78e9d4764a33723558a6187047
openvino/openvino_model_qint8_quantized.bin67.0 MB591fdf409e3a061373a096ae90986716b490e57a47a0fccba82df60c89e4010e
openvino/openvino_model_qint8_quantized.xml372 KBfba6418ac502ac8793ba88fbf9327eb93d8e829976e30f91b1e500a46b4e7a10
pytorch_model.bin265 MB6abdf990eaa861287cecd295bc6dfa69d8fdc89007ad49b1179de73412e46e05
sentence_bert_config.json53 Bec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h5266 MB730a6b8f936ed95bd2c38fbe899a3816102357a32cc2e1a6aff38ee93e3d6a65
tokenizer.json466 KB081419d86d3f6843c68074f7eefb82c9810048b9ddcf831b400a532bf9797f95
tokenizer_config.json320 B4959f3c0bad0e7d317eed442b620ef9490be2fdfe3d17c13cddf98041b2579d8
train_script.py10.3 KBe0aacdc567fea7d431a07d181b2ffc0918d04266e2d2d7ef58de6edc6549ce18
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c53e81ab2a pinned now2026-11-15 02:39 UTC28 files · 2.59 GB

Use it

$ fw get sentence-transformers/msmarco-distilbert-dot-v5
# manifest sha256 465b44a0b2f0… · 2.59 GB · 28 files
$ fw verify ./msmarco-distilbert-dot-v5 sentence-transformers/msmarco-distilbert-dot-v5
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-distilbert-dot-v5.json --dir ./msmarco-distilbert-dot-v5 $ python3 fw.py verify ./msmarco-distilbert-dot-v5 ./sentence-transformers__msmarco-distilbert-dot-v5.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/msmarco-distilbert-dot-v5 --revision c53e81ab2aa9dae60c5e35f892daaf1d67704012 --local-dir ./msmarco-distilbert-dot-v5
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-distilbert-dot-v5", revision="c53e81ab2aa9dae60c5e35f892daaf1d67704012") model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v5", revision="c53e81ab2aa9dae60c5e35f892daaf1d67704012", 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-distilbert-dot-v5", revision="c53e81ab2aa9dae60c5e35f892daaf1d67704012") 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
0bd422a1d6178495d0ebe0192c0a94217c54d26f62f18a7e1cad9f1ec404eda0
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-distilbert-dot-v5Date: 2026-11-15Commit: c53e81aSigned: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/msmarco-distilbert-dot-v5
Pinned commit
c53e81ab2aa9dae60c5e35f892daaf1d67704012
Manifest
msmarco-distilbert-dot-v5.json · .minisig
Manifest sha256
465b44a0b2f0d87c5133e89b34d04d55770e4d312a2631b7f175288323525e72
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:39 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

Signed manifest
minisign, key 2DC28CC7B26A283B. msmarco-distilbert-dot-v5.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