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

msmarco-distilbert-base-v4

Date: 2026-11-15Commit: b2f66c9Signed: 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-base-v4onnx openvino safetensorspermissive
FactsParams66MSize2.59 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/msmarco-distilbert-base-v4
# manifest sha256 14322a6ed811… · 2.59 GB · 27 files
$ fw verify ./msmarco-distilbert-base-v4 sentence-transformers/msmarco-distilbert-base-v4
From sourceHosted (signed)sentence-transformers/msmarco-distilbert-base-v4Last check: 2026-11-15 02:31 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
27, 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:31 UTCpassed

Model card

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

sentence-transformers/msmarco-distilbert-base-v4#

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

# 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': 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",
}

Files

27 files · 2.59 GBWeights 265 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes744 Bf888dc7c230287cd68af7034aa9fc2e2d6663fb7b3e70faa153caf93877914c3
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.53 KB245ff871f483b990112c34798f22e53aecc33d173dcc15753f61f5eb4f158ea6
config.json545 Bfc11aeb93f66e18a950c753b9b1d4dad0fa07a097dfa78b41ec264460dd84cb0
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors265 MB3083803ab54614d7c0627b19aa2d7070cd4c49116dc8efd6fae3016526a10015
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx266 MBe2f09f497645cba83892f6d05f41fd65bd4cef5a99c18dd42ecbc764d24aefa2
onnx/model_O1.onnx266 MB3f55a650e423041458c6ceafb837588d495e1adfbfd32b6510e0187f65acdd44
onnx/model_O2.onnx265 MB0a9815b5180fd4c1ec890b79049f4e48b9c3d99c7fec3a7f2f8915d4e3b7fdd8
onnx/model_O3.onnx265 MBcb9ecbdec885aa9636bf7a27dfdfe3aa23476d679705ecbbf1aa738f8cd96d43
onnx/model_O4.onnx133 MB9318c358b95c15d56d80de264c9cc92243eeb0e2e62547eb6e6594017483c0b3
onnx/model_qint8_arm64.onnx67.0 MB0554bfed26a66224c25214a08705cf11d48d925963b63293677b219ee4a728a2
onnx/model_qint8_avx512.onnx67.0 MB0554bfed26a66224c25214a08705cf11d48d925963b63293677b219ee4a728a2
onnx/model_qint8_avx512_vnni.onnx67.0 MB0554bfed26a66224c25214a08705cf11d48d925963b63293677b219ee4a728a2
onnx/model_quint8_avx2.onnx67.0 MB25f2917ff2620a23b4389bc8de1564550c6005ae1a87263637855a62b0aaaa07
openvino/openvino_model.bin265 MB4271841e8ead8fd88038d2b09b385d4667fdf4b16dddc7cf696b94d54c727376
openvino/openvino_model.xml218 KBcd7a273b026ba3774e350b5baa1ac6bb64a5fddbbecb4b2292ff6611b0c4fd7c
openvino/openvino_model_qint8_quantized.bin67.0 MB63a55cf1b99738b6f6452bb146d30b20bead1d78a9eb91f2f9fc6456868f80db
openvino/openvino_model_qint8_quantized.xml372 KBde587a95d58c5fa68b6b1bf5db7903cdcf8cb1ca6d6c5e7ca021e9b66f4e72ba
pytorch_model.bin265 MBe195dbed3e6acc34edb29780c48382b6984f258bcd964a0c4d1a042899023b55
sentence_bert_config.json53 Bec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h5266 MBb7feeea2efa3b0302f7fbbdf22f2928f2e7ecbeeb59f46b26d7517d73406b2da
tokenizer.json466 KB081419d86d3f6843c68074f7eefb82c9810048b9ddcf831b400a532bf9797f95
tokenizer_config.json319 B60435b08e2e03c13a5a3080a3141a74a27d80f626a74d20ebad970f12fd53e10
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b2f66c95ab pinned now2026-11-15 02:31 UTC27 files · 2.59 GB

Use it

$ fw get sentence-transformers/msmarco-distilbert-base-v4
# manifest sha256 14322a6ed811… · 2.59 GB · 27 files
$ fw verify ./msmarco-distilbert-base-v4 sentence-transformers/msmarco-distilbert-base-v4
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-base-v4.json --dir ./msmarco-distilbert-base-v4 $ python3 fw.py verify ./msmarco-distilbert-base-v4 ./sentence-transformers__msmarco-distilbert-base-v4.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/msmarco-distilbert-base-v4 --revision b2f66c95aba1481a880479165582020c2b9b64d7 --local-dir ./msmarco-distilbert-base-v4
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-base-v4", revision="b2f66c95aba1481a880479165582020c2b9b64d7") model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-base-v4", revision="b2f66c95aba1481a880479165582020c2b9b64d7", 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-base-v4", revision="b2f66c95aba1481a880479165582020c2b9b64d7") 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
245ff871f483b990112c34798f22e53aecc33d173dcc15753f61f5eb4f158ea6
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-base-v4Date: 2026-11-15Commit: b2f66c9Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/msmarco-distilbert-base-v4
Pinned commit
b2f66c95aba1481a880479165582020c2b9b64d7
Manifest
msmarco-distilbert-base-v4.json · .minisig
Manifest sha256
14322a6ed811180c24597ee773de8ca0342f94b35d88be6da6d31e4078324f89
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:31 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/msmarco-distilbert-base-v4.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/msmarco-distilbert-base-v4.json.minisig $ minisign -Vm msmarco-distilbert-base-v4.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-base-v4
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-base-v4.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