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

← All models

sentence-transformers_msmarco-bert-base-dot-v5

sentence-transformers · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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-bert-base-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-bert-base-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-bert-base-dot-v5")
model = AutoModel.from_pretrained("sentence-transformers/msmarco-bert-base-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:

Setting Value
Dimensions 768
Max Sequence Length 512
Produces normalized embeddings No
Pooling-Method Mean pooling
Suitable score functions dot-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: bert-base-uncased 
  (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",
}

Magnet link

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

magnet:?xt=urn:btih:0985e6666175a1a8fe64acd6c2248ac120d51110&dn=sentence-transformers_msmarco-bert-base-dot-v5

Open magnet in torrent client · infohash 0985e6666175a1a8fe64acd6c2248ac120d51110

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)4e09f293dfe90bba49f87cfe7996271f07be2666a37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md5.8 KB (5,946 B)6d597a66fcad3384c637616815ee820c25d83644fd9560f91604d0cdafc81b364926e161ce022e7c658133a19818da455b65311b
config.json636 B (636 B)a6aa486afbb85f75518247c74b34ee347d9a048804bb250bfc79d76067df4bf59322bd65998eb6f82a3e587e133f71fad3c4772f
config_sentence_transformers.json212 B (212 B)603924ec712207f1bf1635f26ceef820b3bfc4e2a0bd26d1ab4b225b2caefc40bef21c2a6e3e57da466df01a85f56d0dd9acc071
model.safetensors417.7 MB (437,955,512 B)285542baf1730f3f14f4d31df2f012c14f1b3c8cc5e660c707bca9273f77ab9003024e35d904ba566e768e35b2bbdb274502bc9a
modules.json229 B (229 B)f7640f94e81bb7f4f04daf1668850b38763a13d98f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
openvino/openvino_model.bin415.4 MB (435,570,832 B)c1ed561a7c3d6c1da5f85f6a147776b551b5215ec4f08b2981b568b6c46dec345ed0d39f6d83711fec83ac9cef8b59ba7e2e56ff
openvino/openvino_model.xml388.9 KB (398,261 B)21bfb0da1676f11df79c28e2c1267f58058dbb67f7e9dc309e1eb81511b01be4d9b6211a2f8f44c8ad9ef6bc654fc90c19ed4981
openvino/openvino_model_qint8_quantized.bin104.9 MB (109,974,464 B)c434cac8d92dbcf06a1be7223a2f055b01b722836f061402bf5a1c7325284c13bb7ed6df3aa754e681d00cb64b7a1f32942ae8cd
openvino/openvino_model_qint8_quantized.xml691.7 KB (708,278 B)af01b0f0a290e2c1ea8912dddad7b30c5f85077eceb0de4eb3ca72997e09d9949e34b217e1d8f90c324030a31a541ed4eecb4f92
pytorch_model.bin417.7 MB (438,015,479 B)94d7e301da4bf276d0a8d40064337cb764326f44dbce66b05653369175bf318af64513fa2bf95f57782b850a6fa7f36c1723fd3c
sentence_bert_config.json54 B (54 B)42d076262fe42eec1f923135b424c5a2bada7931ed20daeb5b882c3e1f116ce7b3d53e6643d11063aa9baaa31f5ae91770cfad8f
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json455.3 KB (466,248 B)99c7583f907b20c904849ca39b8e8ef4593ef974081419d86d3f6843c68074f7eefb82c9810048b9ddcf831b400a532bf9797f95
tokenizer_config.json461 B (461 B)5464fb64f307dd871c5aaa9b3b2c016cb00c0ee7f0e282b4a788f1e63a9a2c140b2f573e909026c63f6ab4f8d96631980c95d782
train_script.py10.1 KB (10,351 B)6ea8ed74595b917882963d70427338f232259e4584df32a025b1370eb73447b902fe977708a1c7f0f516b9fdb63c93171cd59591
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_msmarco-bert-base-dot-v5/
Slug
sentence-transformers_msmarco-bert-base-dot-v5
Infohash
0985e6666175a1a8fe64acd6c2248ac120d51110
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-bert-base-dot-v5.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/msmarco-bert-base-dot-v5
Revision (pinned)dbf04e3911e5b11c887fe563d3f2479f81c4415f
Fetched at2026-09-04T05:37:11Z
License at fetchno license recorded
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T05:37:27Z

no license recorded1.33 GB (1,423,338,773 bytes)sentence-transformerspytorchonnxsafetensorsopenvinobertfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible2 languages (tf, en)paper: 1908.10084