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

← All models

sentence-transformers_multi-qa-distilbert-dot-v1

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

multi-qa-distilbert-dot-v1

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 215M (question, answer) pairs from diverse sources. 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/multi-qa-distilbert-dot-v1')

#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

#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/multi-qa-distilbert-dot-v1")
model = AutoModel.from_pretrained("sentence-transformers/multi-qa-distilbert-dot-v1")

#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 No
Pooling-Method CLS pooling
Suitable score functions dot-product (e.g. util.dot_score)

Background

The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised contrastive learning objective. We use a contrastive learning objective: given a sentence from the pair, the model should predict which out of a set of randomly sampled other sentences, was actually paired with it in our dataset.

We developped this model during the Community week using JAX/Flax for NLP & CV, organized by Hugging Face. We developped this model as part of the project: Train the Best Sentence Embedding Model Ever with 1B Training Pairs. We benefited from efficient hardware infrastructure to run the project: 7 TPUs v3-8, as well as intervention from Googles Flax, JAX, and Cloud team member about efficient deep learning frameworks.

Intended uses

Our model is intented to be used for semantic search: It encodes queries / questions and text paragraphs in a dense vector space. It finds relevant documents for the given passages.

Note that there is a limit of 512 word pieces: Text longer than that will be truncated. Further note that the model was just trained on input text up to 250 word pieces. It might not work well for longer text.

Training procedure

The full training script is accessible in this current repository: train_script.py.

Pre-training

We use the pretrained distilbert-base-uncased model. Please refer to the model card for more detailed information about the pre-training procedure.

Training

We use the concatenation from multiple datasets to fine-tune our model. In total we have about 215M (question, answer) pairs. We sampled each dataset given a weighted probability which configuration is detailed in the data_config.json file.

The model was trained with MultipleNegativesRankingLoss using CLS-pooling, dot-product as similarity function, and a scale of 1.

Dataset Number of training tuples
WikiAnswers Duplicate question pairs from WikiAnswers 77,427,422
PAQ Automatically generated (Question, Paragraph) pairs for each paragraph in Wikipedia 64,371,441
Stack Exchange (Title, Body) pairs from all StackExchanges 25,316,456
Stack Exchange (Title, Answer) pairs from all StackExchanges 21,396,559
MS MARCO Triplets (query, answer, hard_negative) for 500k queries from Bing search engine 17,579,773
GOOAQ: Open Question Answering with Diverse Answer Types (query, answer) pairs for 3M Google queries and Google featured snippet 3,012,496
Amazon-QA (Question, Answer) pairs from Amazon product pages 2,448,839
Yahoo Answers (Title, Answer) pairs from Yahoo Answers 1,198,260
Yahoo Answers (Question, Answer) pairs from Yahoo Answers 681,164
Yahoo Answers (Title, Question) pairs from Yahoo Answers 659,896
SearchQA (Question, Answer) pairs for 140k questions, each with Top5 Google snippets on that question 582,261
ELI5 (Question, Answer) pairs from Reddit ELI5 (explainlikeimfive) 325,475
Stack Exchange Duplicate questions pairs (titles) 304,525
Quora Question Triplets (Question, Duplicate_Question, Hard_Negative) triplets for Quora Questions Pairs dataset 103,663
Natural Questions (NQ) (Question, Paragraph) pairs for 100k real Google queries with relevant Wikipedia paragraph 100,231
SQuAD2.0 (Question, Paragraph) pairs from SQuAD2.0 dataset 87,599
TriviaQA (Question, Evidence) pairs 73,346
Total 214,988,242

Magnet link

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

magnet:?xt=urn:btih:2e6db55f4c8314a54a29cd8a3391603bc28c3068&dn=sentence-transformers_multi-qa-distilbert-dot-v1

Open magnet in torrent client · infohash 2e6db55f4c8314a54a29cd8a3391603bc28c3068

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)da5bfd57e34ca45582e4bdbaa3e6deb9efffa08dc9bef85e8bbf4b2eab4941b3fb62bd33f88686748b478f2e264d256472d9643b
README.md8.3 KB (8,478 B)87a71ee946c205e91729a263340d5444b5db01cb40b7ab620ff319e2305a975f9e15b08a19f964fd180afd610bb9b4470357721b
config.json523 B (523 B)76eedc94d407a8910196d31121672f4878c008f7100c8b48a8c50cd860d16b724c7e5603ae11563ac34ba29493886c31514e319e
config_sentence_transformers.json212 B (212 B)603924ec712207f1bf1635f26ceef820b3bfc4e2a0bd26d1ab4b225b2caefc40bef21c2a6e3e57da466df01a85f56d0dd9acc071
data_config.json24.9 KB (25,457 B)a3294881c9834ac6fb99d420008f30b741fe7e86163295fe27834a12a37d9ef1a6175a6c1c530a48ee42b640149b518e0bedae62
model.safetensors253.2 MB (265,462,608 B)f9337a91343cf55038702d47d487005bdacae8e4797198a5e78bcdf2751972f82237ae754180eac1001c4c565471ac192d7f7914
modules.json229 B (229 B)f7640f94e81bb7f4f04daf1668850b38763a13d98f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
openvino/openvino_model.bin253.2 MB (265,455,736 B)0e3634f3e569ad1378c68372ee820f61b1eb8a5e459f78b39b251de7d852e2782f6bd77ece32d072a14dc25de9ac8cad2abc7fa8
openvino/openvino_model.xml212.5 KB (217,575 B)5be4fa08d09da1e762ff3a1d06c1ca3b2bd54e9906829e1bd2a06488e8a0d38e72cc711498d8d749b4a251b8aeb1c295785f1cfb
openvino/openvino_model_qint8_quantized.bin63.9 MB (66,970,752 B)da2d948423fded8848814b32094810e3b477e3f0c664601a4e976178fc96f4c74d3762106de0bc45dd39b9c3aadd3ca8ebe2b6f1
openvino/openvino_model_qint8_quantized.xml363.6 KB (372,340 B)50e68eb00143b712c728a6d7d15b9b9acbaf51002f1d94c19e19eb790306523ead984813df2dcdea1943e16086bc8b7b246db522
pytorch_model.bin253.2 MB (265,482,105 B)3610626bb1d0b9531369db26203fea6c235f21fd4dba83a656464d6f548b7b08bf55e597d626111f3867b85099d47b0ee9696dd7
sentence_bert_config.json53 B (53 B)f789d99277496b282d19020415c5ba9ca79ac875ec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json455.3 KB (466,247 B)9c190aac0fb9edc2293b69b82c6d5d5d21e67dd97fa9272f7ef1ebd1666bb3bfd9d4707660ff0076ca9d1671cd9a9c6e18e03331
tokenizer_config.json333 B (333 B)4036a93f3f40a3f79923bb26f5e9a13e0b2d168719061b90828c2f97596b3b41f9d3b961cd51619d282aba2856dcb77ac4202a52
train_script.py13.5 KB (13,804 B)9e64333300444e5138b5265a4d63c18025586df597ca9ec6f338426255fc9fe5fb6db7d02f075d5cb85c9b8d4ee8dbbedf44361c
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_multi-qa-distilbert-dot-v1/
Slug
sentence-transformers_multi-qa-distilbert-dot-v1
Infohash
2e6db55f4c8314a54a29cd8a3391603bc28c3068
License
no license recorded
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers_multi-qa-distilbert-dot-v1.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/multi-qa-distilbert-dot-v1
Revision (pinned)af530b176a2172b3aeeb9abc7b9d4e808f2a9477
Fetched at2026-09-02T04:43:55Z
License at fetchno license recorded
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:44:06Z

no license recorded824.7 MB (864,708,262 bytes)sentence-transformerspytorchonnxsafetensorsopenvinodistilbertfill-maskfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible1 language (en)