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

← All models

sentence-transformers_distilbert-base-nli-stsb-mean-tokens

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.


license: apache-2.0 library_name: sentence-transformers tags:

  • sentence-transformers
  • feature-extraction
  • sentence-similarity
  • transformers pipeline_tag: sentence-similarity

⚠️ This model is deprecated. Please don't use it as it produces sentence embeddings of low quality. You can find recommended sentence embedding models here: SBERT.net - Pretrained Models

sentence-transformers/distilbert-base-nli-stsb-mean-tokens

This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or 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
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/distilbert-base-nli-stsb-mean-tokens')
embeddings = model.encode(sentences)
print(embeddings)

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


#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0] #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)


# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/distilbert-base-nli-stsb-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/distilbert-base-nli-stsb-mean-tokens')

# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    model_output = model(**encoded_input)

# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

print("Sentence embeddings:")
print(sentence_embeddings)

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: DistilBertModel 
  (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:0eabd13ccf4ef76397bbb19cc5af05b7971017ca&dn=sentence-transformers_distilbert-base-nli-stsb-mean-tokens

Open magnet in torrent client · infohash 0eabd13ccf4ef76397bbb19cc5af05b7971017ca

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)4e09f293dfe90bba49f87cfe7996271f07be2666a37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.7 KB (3,821 B)b94238bf5c547a122b478c66e23587c457644d668f55c55628e74fe0f32baf470089a418e7c054d9146a1a3ee38e4d0c682e201e
config.json555 B (555 B)db1f7b3d06bef17ffe3ad468b4a67259bfa2dfa81eaca000c072aa95a7b27e583cce0e9bab68dcb4738582a02a4089d017880536
config_sentence_transformers.json122 B (122 B)b974b349cb2d419ada11181750a733ff82f291adb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors253.2 MB (265,462,608 B)3ff775eed34ad536ca254adae59ad16ed6f6459b6e4b1f2701df463d277a95a267de1d2b7e6f7e33d8835627310833b1f1e6dd8b
modules.json229 B (229 B)f7640f94e81bb7f4f04daf1668850b38763a13d98f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
openvino/openvino_model.bin253.2 MB (265,455,736 B)16cda337a1a4bdc76d54478de08f1a867175b5369eec6e64356bf339c486064364dbec545af30d141cdf762d2d8373f86ca1cec7
openvino/openvino_model.xml212.4 KB (217,457 B)789e44861e974901cb3b0b70ab63d70da44067bc71125cb4217ec281fbb284cff43ab2065c4b7d7b922da60c4d89d73606f1fb64
openvino/openvino_model_qint8_quantized.bin63.9 MB (66,970,752 B)8c50c858a580790b94bc881a77429d77a46b5caa20e07265249a9bf79efff99a1cadcbfa913d4ac2cb29b005e33f91515d5730fe
openvino/openvino_model_qint8_quantized.xml363.5 KB (372,222 B)d82a74e901f0ec3c57514e68d357eb393224b25b693b0a9d0942389de1055c3812762c1910a32faba85ceeca3dc3de01723e1a40
pytorch_model.bin253.2 MB (265,486,777 B)59db8fd6b1ae2a0c8fe872d26cef946cc64a0389a07690690f05717a41692ef07ee1e37b9bc52b9dd950ce27969733ea3f0eb474
sentence_bert_config.json53 B (53 B)5fd10429389515d3e5cccdeda08cae5fea1ae82e70f4448f31320443fe3557cacea5abf2dcc4915dda8c80646bec9f3bb0aa5a1f
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json455.2 KB (466,081 B)40c4a0f6c414c8218190234bbce9bf4cc04fa3ac5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json505 B (505 B)46f344a244dd9766c28efa7e46d95b6d65efe2f9444f7f18ba17dee3042f91afcdd85844fb34bb59f67801cb2fca99b0645e28a3
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_distilbert-base-nli-stsb-mean-tokens/
Slug
sentence-transformers_distilbert-base-nli-stsb-mean-tokens
Infohash
0eabd13ccf4ef76397bbb19cc5af05b7971017ca
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers_distilbert-base-nli-stsb-mean-tokens.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/distilbert-base-nli-stsb-mean-tokens
Revision (pinned)84fc3c34014de8c85cde3fece74ab56fbe9d4fce
Fetched at2026-09-02T04:42:12Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:42:22Z

apache-2.0824.6 MB (864,668,728 bytes)sentence-transformerspytorchonnxsafetensorsopenvinodistilbertfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible1 language (tf)paper: 1908.10084