alt.freeweights.embed / distilbert-base-nli-stsb-mean-tokens
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

distilbert-base-nli-stsb-mean-tokens

Date: 2026-11-15Commit: 84fc3c3Signed: 2DC28CC7B26A283B ✓

Sentence similarity model with 66M parameters. Onnx and openvino and safetensors weights, 2.59 GB in all. Published by sentence-transformers under Apache-2.0.

66M params2.59GBdistilbert-base-nli-stsb-mean-tokensonnx openvino safetensorspermissive
FactsParams66MSize2.59 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/distilbert-base-nli-stsb-mean-tokens
# manifest sha256 dadb8e3b1fa2… · 2.59 GB · 27 files
$ fw verify ./distilbert-base-nli-stsb-mean-tokens sentence-transformers/distilbert-base-nli-stsb-mean-tokens
From sourceHosted (signed)sentence-transformers/distilbert-base-nli-stsb-mean-tokensLast check: 2026-11-15 02:29 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Evaluate with

Overview

Size
2.59 GB
Weights
265 MB (safetensors)
Parameters
66M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
27, each with a sha256
Publisher
sentence-transformers
Added
2026-11-15
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:29 UTCpassed

Model card

From the publisher at commit 84fc3c3. Shown as plain text with links; images open at the publisher.

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

Files

27 files · 2.59 GBWeights 265 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes399 Ba368a21c472071feec9095f63d5f7d3433826c1c476a6995f072b6755ccc6f59
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.82 KB8f55c55628e74fe0f32baf470089a418e7c054d9146a1a3ee38e4d0c682e201e
config.json555 B1eaca000c072aa95a7b27e583cce0e9bab68dcb4738582a02a4089d017880536
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors265 MB6e4b1f2701df463d277a95a267de1d2b7e6f7e33d8835627310833b1f1e6dd8b
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx266 MBd4ff3eb03c006dece9a4d426a42566b337d3af824228af3b18ff7ea6d91fc4fe
onnx/model_O1.onnx266 MB39923cf2367ef09b25506e470d1abb35bf13d614105d8a4ecdab8592ebec38c4
onnx/model_O2.onnx265 MB013e57b5d0f07b919349bd5bc6931a737400e49bbe3b59fe5d033bf400ada920
onnx/model_O3.onnx265 MB4e86f1c8cd12e531a2495a992d78ca9f52ac3e5750cf4b5b1eafe85df9fc383f
onnx/model_O4.onnx133 MB565c4362e016efa5f2895e8949d13932ef0dc9c7d2bbe46f5fb0b6558377b170
onnx/model_qint8_arm64.onnx67.0 MB4e1660aedcdd8305d318a9589470a767d8001098b8bde5c9a0ae35cd45fd8012
onnx/model_qint8_avx512.onnx67.0 MB4e1660aedcdd8305d318a9589470a767d8001098b8bde5c9a0ae35cd45fd8012
onnx/model_qint8_avx512_vnni.onnx67.0 MB4e1660aedcdd8305d318a9589470a767d8001098b8bde5c9a0ae35cd45fd8012
onnx/model_quint8_avx2.onnx67.0 MB1738c429771dd9a2153b32b11bd761011b1c17e03421b53402261f3f386efd97
openvino/openvino_model.bin265 MB9eec6e64356bf339c486064364dbec545af30d141cdf762d2d8373f86ca1cec7
openvino/openvino_model.xml217 KB71125cb4217ec281fbb284cff43ab2065c4b7d7b922da60c4d89d73606f1fb64
openvino/openvino_model_qint8_quantized.bin67.0 MB20e07265249a9bf79efff99a1cadcbfa913d4ac2cb29b005e33f91515d5730fe
openvino/openvino_model_qint8_quantized.xml372 KB693b0a9d0942389de1055c3812762c1910a32faba85ceeca3dc3de01723e1a40
pytorch_model.bin265 MBa07690690f05717a41692ef07ee1e37b9bc52b9dd950ce27969733ea3f0eb474
sentence_bert_config.json53 B70f4448f31320443fe3557cacea5abf2dcc4915dda8c80646bec9f3bb0aa5a1f
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h5266 MB6d4882e19d67c90cbe4b6bee7ea6732f35d8ad13cba9c79036279fb411c096a8
tokenizer.json466 KB5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json505 B444f7f18ba17dee3042f91afcdd85844fb34bb59f67801cb2fca99b0645e28a3
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
84fc3c3401 pinned now2026-11-15 02:29 UTC27 files · 2.59 GB

Use it

$ fw get sentence-transformers/distilbert-base-nli-stsb-mean-tokens
# manifest sha256 dadb8e3b1fa2… · 2.59 GB · 27 files
$ fw verify ./distilbert-base-nli-stsb-mean-tokens sentence-transformers/distilbert-base-nli-stsb-mean-tokens
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/sentence-transformers/distilbert-base-nli-stsb-mean-tokens.json --dir ./distilbert-base-nli-stsb-mean-tokens $ python3 fw.py verify ./distilbert-base-nli-stsb-mean-tokens ./sentence-transformers__distilbert-base-nli-stsb-mean-tokens.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/distilbert-base-nli-stsb-mean-tokens --revision 84fc3c34014de8c85cde3fece74ab56fbe9d4fce --local-dir ./distilbert-base-nli-stsb-mean-tokens
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("sentence-transformers/distilbert-base-nli-stsb-mean-tokens", revision="84fc3c34014de8c85cde3fece74ab56fbe9d4fce") model = AutoModel.from_pretrained("sentence-transformers/distilbert-base-nli-stsb-mean-tokens", revision="84fc3c34014de8c85cde3fece74ab56fbe9d4fce", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("sentence-transformers/distilbert-base-nli-stsb-mean-tokens", revision="84fc3c34014de8c85cde3fece74ab56fbe9d4fce") vectors = model.encode(["Hello"])

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
8f55c55628e74fe0f32baf470089a418e7c054d9146a1a3ee38e4d0c682e201e
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject: distilbert-base-nli-stsb-mean-tokensDate: 2026-11-15Commit: 84fc3c3Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/distilbert-base-nli-stsb-mean-tokens
Pinned commit
84fc3c34014de8c85cde3fece74ab56fbe9d4fce
Manifest
distilbert-base-nli-stsb-mean-tokens.json · .minisig
Manifest sha256
dadb8e3b1fa21b1aa5c3803ccfafc6897a0741c27c8657f1c4dd60ee669d5b2b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:29 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/distilbert-base-nli-stsb-mean-tokens.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/distilbert-base-nli-stsb-mean-tokens.json.minisig $ minisign -Vm distilbert-base-nli-stsb-mean-tokens.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/distilbert-base-nli-stsb-mean-tokens
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. distilbert-base-nli-stsb-mean-tokens.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens