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

← All models

sentence-transformers_multi-qa-MiniLM-L6-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-MiniLM-L6-dot-v1

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 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-MiniLM-L6-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-MiniLM-L6-dot-v1")
model = AutoModel.from_pretrained("sentence-transformers/multi-qa-MiniLM-L6-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 384
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 nreimers/MiniLM-L6-H384-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:a66574815d4bf5c94cae1f0cd82ac9307f5e0b95&dn=sentence-transformers_multi-qa-MiniLM-L6-dot-v1

Open magnet in torrent client · infohash a66574815d4bf5c94cae1f0cd82ac9307f5e0b95

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)1da070f0993788c8851a652170ff013aa54dd519d1caf60c96f5fba2157c0c26b76d80818fad6cf0b8eb5e73ec372ff9818eba5c
README.md8.3 KB (8,490 B)f037d3e817cd82428ce5e5fb53592fdf12e36763488ee3925c0ca7950646d11eaba167053e96a4173204ab118251cd65e3d30250
config.json612 B (612 B)72b987fd805cfa2b58c4c8c952b274a11bfd5a00953f9c0d463486b10a6871cc2fd59f223b2c70184f49815e7efbcab5d8908b41
config_sentence_transformers.json212 B (212 B)603924ec712207f1bf1635f26ceef820b3bfc4e2a0bd26d1ab4b225b2caefc40bef21c2a6e3e57da466df01a85f56d0dd9acc071
data_config.json24.9 KB (25,457 B)a3294881c9834ac6fb99d420008f30b741fe7e86163295fe27834a12a37d9ef1a6175a6c1c530a48ee42b640149b518e0bedae62
model.safetensors86.7 MB (90,868,376 B)618b329fc9387b86f2cdaab912190400c826e82ae848b03575b1f65e0d1ad7bb4142359ebc8eeba60d17cf5b3e9165cb0c72af46
modules.json229 B (229 B)f7640f94e81bb7f4f04daf1668850b38763a13d98f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
openvino/openvino_model.bin86.1 MB (90,265,744 B)3512932f65f4fa9aeb8f47b1a53ee6f78ec642fe4418d42011ad56f7750b60b8d5d31da72de4e5c8f8b62ab3dfbe66abadfbbdd7
openvino/openvino_model.xml206.6 KB (211,560 B)a5daf1607f84dbd42f62cb5b524b2b4176081ea5a7264281b4494d2da1795e21b9d81aaae48f85bb481f8d685780a813f755a244
openvino/openvino_model_qint8_quantized.bin21.9 MB (22,933,664 B)e2df874729b6f29287ebb42e5b19ba0a887663d9cc23c5df56b122014c0af898704537135c7467c6946d4cd8fd1779115d2b054a
openvino/openvino_model_qint8_quantized.xml359.8 KB (368,485 B)6294ed69827c1501209dd13bd831f59d76a066c35e5a4d6c51fd62e5bb88d095b6aec58175b6446e9ef9ef0aa37cb193e348aded
pytorch_model.bin86.7 MB (90,888,945 B)2157fd2c4002cc8d198b019c728685d287691b9222e95efafbb3f10b927a619a54ba41603f7e8dc40c1ea54739b80b9a7592d8e5
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.json383 B (383 B)d50701956f8e35e7507e6b74547a71e62ca39cad857c5db35e9664bd0ea1db3a5ee62c0ce86d79e3ec85861ca1680bd7aaff12f8
train_script.py14.6 KB (14,922 B)ae0469b736d036f754500224a48f62a689a44b76f0c6598bcd80cd73206d25b5a50c2369f46ebf4efd797a939e0a86f7742bf0b4
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_multi-qa-MiniLM-L6-dot-v1/
Slug
sentence-transformers_multi-qa-MiniLM-L6-dot-v1
Infohash
a66574815d4bf5c94cae1f0cd82ac9307f5e0b95
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-MiniLM-L6-dot-v1.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/multi-qa-MiniLM-L6-dot-v1
Revision (pinned)4151c507ffb0f2fcd311cf431f54b5fc7d097851
Fetched at2026-09-02T04:43:50Z
License at fetchno license recorded
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

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

no license recorded282.6 MB (296,285,189 bytes)sentence-transformerspytorchonnxsafetensorsopenvinobertfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible2 languages (tf, en)