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

← All models

sentence-transformers_msmarco-distilbert-cos-v5

sentence-transformers · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

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 library_name: sentence-transformers tags:
  • sentence-transformers
  • feature-extraction
  • sentence-similarity
  • transformers pipeline_tag: sentence-similarity

msmarco-distilbert-cos-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 Passages 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-cos-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
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
import torch.nn.functional as F

#Mean Pooling - Take average of all tokens
def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output.last_hidden_state #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)


#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'])

    # Normalize embeddings
    embeddings = F.normalize(embeddings, p=2, dim=1)
	
    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-cos-v5")
model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-cos-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
for doc, score in doc_score_pairs:
    print(score, doc)

Technical Details

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

Setting Value
Dimensions 768
Produces normalized embeddings Yes
Pooling-Method Mean pooling
Suitable score functions dot-product (util.dot_score), cosine-similarity (util.cos_sim), or euclidean distance

Note: When loaded with sentence-transformers, this model produces normalized embeddings with length 1. In that case, dot-product and cosine-similarity are equivalent. dot-product is preferred as it is faster. Euclidean distance is proportional to dot-product and can also be used.

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",
}

Magnet link

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

magnet:?xt=urn:btih:72fb974af9e555d1bf61d3cdf0819b936c406583&dn=sentence-transformers_msmarco-distilbert-cos-v5

Open magnet in torrent client · infohash 72fb974af9e555d1bf61d3cdf0819b936c406583

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)4e09f293dfe90bba49f87cfe7996271f07be2666a37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md5.0 KB (5,169 B)a294c7dceb89c09a279e85b5dae07669b9863bb92d36f2931dfe2433b59ff699f6dd8107669ad88dbc538e9c9c49bb71aa34c530
config.json545 B (545 B)7bf1867f40f2aff9706889c42e2836a8b01da59efc11aeb93f66e18a950c753b9b1d4dad0fa07a097dfa78b41ec264460dd84cb0
config_sentence_transformers.json122 B (122 B)b974b349cb2d419ada11181750a733ff82f291adb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors253.2 MB (265,462,608 B)da6e06b0b57303eac8a0eac70015878bf180c31d3083803ab54614d7c0627b19aa2d7070cd4c49116dc8efd6fae3016526a10015
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
openvino/openvino_model.bin253.2 MB (265,455,736 B)bc55fbf0a541438fbd5ec3c4f81b5212c349c0824271841e8ead8fd88038d2b09b385d4667fdf4b16dddc7cf696b94d54c727376
openvino/openvino_model.xml212.4 KB (217,458 B)60a57daed3116fe27ec4a007df9f646a535f0211bc5cbd1dc702ca2d50e8cb004556d66d76a8c80cd8d25d179a9ef0fca7028e65
openvino/openvino_model_qint8_quantized.bin63.9 MB (66,970,752 B)49d23824dd24348d8f75ce377dc8aa7b9348272063a55cf1b99738b6f6452bb146d30b20bead1d78a9eb91f2f9fc6456868f80db
openvino/openvino_model_qint8_quantized.xml363.5 KB (372,223 B)44f91c9654f32d26dbc405f5c727b7458d7f5b92603dfedf9368176491f0087b754eda320dd4f93f60c468935b99db5157003fc4
pytorch_model.bin253.2 MB (265,486,777 B)40fcb8c6ceb2ff69b64b10a07b9da823282140cbe195dbed3e6acc34edb29780c48382b6984f258bcd964a0c4d1a042899023b55
sentence_bert_config.json53 B (53 B)4eb670bb4e7f34e9031acec2b86d39e5c921198ecabfacded9272091a06ff595a46ef027a76ddf4ac9e77d0fcf11c605748f1667
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json455.3 KB (466,248 B)99c7583f907b20c904849ca39b8e8ef4593ef974081419d86d3f6843c68074f7eefb82c9810048b9ddcf831b400a532bf9797f95
tokenizer_config.json319 B (319 B)6d19ade6388002333425aa3fc25a6eef41ba9b7260435b08e2e03c13a5a3080a3141a74a27d80f626a74d20ebad970f12fd53e10
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_msmarco-distilbert-cos-v5/
Slug
sentence-transformers_msmarco-distilbert-cos-v5
Infohash
72fb974af9e555d1bf61d3cdf0819b936c406583
License
no license recorded
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers_msmarco-distilbert-cos-v5.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/msmarco-distilbert-cos-v5
Revision (pinned)c598d92e340e735b82e5b73d7db135209b57b4b0
Fetched at2026-09-02T04:43:40Z
License at fetchno license recorded
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:43:50Z

no license recorded824.6 MB (864,670,169 bytes)sentence-transformerspytorchonnxsafetensorsopenvinodistilbertfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible2 languages (tf, en)paper: 1908.10084