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

msmarco-distilbert-base-tas-b

Date: 2026-11-14Commit: b12d935Signed: 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-tas-bonnx openvino safetensorspermissive
FactsParams66MSize2.59 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/msmarco-distilbert-base-tas-b
# manifest sha256 f9aa7d87a6ba… · 2.59 GB · 27 files
$ fw verify ./msmarco-distilbert-base-tas-b sentence-transformers/msmarco-distilbert-base-tas-b
From sourceHosted (signed)sentence-transformers/msmarco-distilbert-base-tas-bLast 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
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-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 b12d935. Shown as plain text with links; images open at the publisher.

sentence-transformers/msmarco-distilbert-base-tas-b#

This is a port of the DistilBert TAS-B Model to sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and is optimized for the task of 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-base-tas-b')

#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
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 right pooling-operation on-top of the contextualized word embeddings.

from transformers import AutoTokenizer, AutoModel
import torch

#CLS Pooling - Take output from first token
def cls_pooling(model_output):
    return model_output.last_hidden_state[:,0]

#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 = cls_pooling(model_output)

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

#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
for doc, score in doc_score_pairs:
    print(score, doc)

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': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)

Citing & Authors#

Have a look at: DistilBert TAS-B Model

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 Bc9bef85e8bbf4b2eab4941b3fb62bd33f88686748b478f2e264d256472d9643b
README.md3.80 KB6d9e22e0432e7d79553ddc68da0e6dfe50eb01e3276011c274241636a76a87cf
config.json548 Bd410f2b99ddbbaf510b794df3720ce1bfd39f2a8fd0253870b4d14b2e7085924
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors265 MB2c01ce345cedea6d10c7fb148658a2bf51aa580b79655106fbc377417b421efa
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx266 MBebbccaedf6be1e444a597921e87a010e2e39cedb94eeac5d0e18088ec9fff2c5
onnx/model_O1.onnx266 MB2239ce9c820d52b748e833f8cda42fd25c99c9beb22b9b35909958f82a679790
onnx/model_O2.onnx265 MB4ad9bbd2d9abae2889fed5870f5353768ce4deeed0704d292d815bba061a0909
onnx/model_O3.onnx265 MB87a90d356ad0fb2d8489146e1000800b75f0b92f99aedc663d0f8da0ca25be22
onnx/model_O4.onnx133 MB902e246bd0760670397ae83a9d3ae4f403f2aa0ba94bf6a8067a69e238318976
onnx/model_qint8_arm64.onnx67.0 MBb6369afe616fad3202bb088dddfe537e007b0a9b08fd8a1dc4606b3fccad6685
onnx/model_qint8_avx512.onnx67.0 MBb6369afe616fad3202bb088dddfe537e007b0a9b08fd8a1dc4606b3fccad6685
onnx/model_qint8_avx512_vnni.onnx67.0 MBb6369afe616fad3202bb088dddfe537e007b0a9b08fd8a1dc4606b3fccad6685
onnx/model_quint8_avx2.onnx67.0 MBb961ef265867006b82cfa85f145ddbcada728d6a2889b956a752a9f3b1cc5434
openvino/openvino_model.bin265 MB8bb78a799eac581cc1fbaf07b9ba23170c5c478a9324b05e7395bf460e98b3a7
openvino/openvino_model.xml218 KB827c700f133d2862ffe0b57b497167504119e985d79d0e8a2d3ef5239a1afffc
openvino/openvino_model_qint8_quantized.bin67.0 MBe3d034b860bbba729ac52aa073d0ff357c6667c01dd130a0167aa33709a828ce
openvino/openvino_model_qint8_quantized.xml372 KB812d8a635b7e4078c5f43541460adef49680c48db211aaa60570998d837704ae
pytorch_model.bin265 MB069584b7fd2d6dcefb5d97b9aa682332430e311921ef9f928cb61f63a44a267e
sentence_bert_config.json53 Bec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h5266 MB953052abcad2fc091c67e8b77218ea33ad98c0a93d9b1901010831cb04115a2c
tokenizer.json466 KB5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json547 B3f81348c12f3a5c589d3588cc0f39d4c148bd59dbdd6e6592de23b78015661ff
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b12d9352e7 pinned now manifest updated, same commit2026-11-14 21:10 UTC27 files · 2.59 GB
b12d9352e72026-11-14 21:10 UTC27 files · 2.59 GB

Use it

$ fw get sentence-transformers/msmarco-distilbert-base-tas-b
# manifest sha256 f9aa7d87a6ba… · 2.59 GB · 27 files
$ fw verify ./msmarco-distilbert-base-tas-b sentence-transformers/msmarco-distilbert-base-tas-b
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-tas-b.json --dir ./msmarco-distilbert-base-tas-b $ python3 fw.py verify ./msmarco-distilbert-base-tas-b ./sentence-transformers__msmarco-distilbert-base-tas-b.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/msmarco-distilbert-base-tas-b --revision b12d9352e776979147078a8975a4885042984fd1 --local-dir ./msmarco-distilbert-base-tas-b
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-tas-b", revision="b12d9352e776979147078a8975a4885042984fd1") model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-base-tas-b", revision="b12d9352e776979147078a8975a4885042984fd1", 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-tas-b", revision="b12d9352e776979147078a8975a4885042984fd1") 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
6d9e22e0432e7d79553ddc68da0e6dfe50eb01e3276011c274241636a76a87cf
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-tas-bDate: 2026-11-14Commit: b12d935Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/msmarco-distilbert-base-tas-b
Pinned commit
b12d9352e776979147078a8975a4885042984fd1
Manifest
msmarco-distilbert-base-tas-b.json · .minisig
Manifest sha256
f9aa7d87a6ba121e2d66c2dcda8609ebd751363c23956c9b70c066863f2955d1
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/msmarco-distilbert-base-tas-b.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/msmarco-distilbert-base-tas-b.json.minisig $ minisign -Vm msmarco-distilbert-base-tas-b.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-tas-b
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-tas-b.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