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

distilbert-base-nli-mean-tokens

Date: 2026-11-15Commit: b404353Signed: 2DC28CC7B26A283B ✓

Feature extraction 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-mean-tokensonnx openvino safetensorspermissive
FactsParams66MSize2.59 GBFormatsonnx, openvino, safetensorsTaskfeature extractionLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/distilbert-base-nli-mean-tokens
# manifest sha256 96b91aa72d2f… · 2.59 GB · 27 files
$ fw verify ./distilbert-base-nli-mean-tokens sentence-transformers/distilbert-base-nli-mean-tokens
From sourceHosted (signed)sentence-transformers/distilbert-base-nli-mean-tokensLast check: 2026-11-15 02:32 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
feature extraction
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:32 UTCpassed

Model card

From the publisher at commit b404353. 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-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-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-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/distilbert-base-nli-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
.gitattributes744 Bf888dc7c230287cd68af7034aa9fc2e2d6663fb7b3e70faa153caf93877914c3
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.80 KB803d2be89c44c9484e6bc5234f6a0e31be42558e81eeeb571bd06ddc99eeb0c7
config.json550 B4b1d4534ba86169d4b6a01ff02f11f930ae5834cd250bcb2a4c178dba2e948e6
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors265 MB3d58b7cb2697fad5b606046557e98380a868824a4d8a508bd04e97b2fb1559b8
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx266 MBd0dd98ded4bc95ac6beb241506e54aac663aa7cd66cebab7b72ba6389d826472
onnx/model_O1.onnx266 MBf0dcf069425435cdb5c57f99dc58198bb2062089b3f687db531fb1167f12000d
onnx/model_O2.onnx265 MB978109ca8829b1bedd740d7a881ff4e10c2637cdc77a7a2720789485003288f0
onnx/model_O3.onnx265 MB139ae9e9d3924191c2c65f0f7d592cb383811b3f01c9fd0b790100a881945343
onnx/model_O4.onnx133 MB443c917f3a42d85d5252d105aed4c3eb29f15e34511e3dce0995dcd97eb41d1e
onnx/model_qint8_arm64.onnx67.0 MBabf05fef65324a56715c24b42ae634578d7224c97b91e4ee04a7db7150bd3b83
onnx/model_qint8_avx512.onnx67.0 MBabf05fef65324a56715c24b42ae634578d7224c97b91e4ee04a7db7150bd3b83
onnx/model_qint8_avx512_vnni.onnx67.0 MBabf05fef65324a56715c24b42ae634578d7224c97b91e4ee04a7db7150bd3b83
onnx/model_quint8_avx2.onnx67.0 MB93c5a4659a36cba8f9141b4a6203366b14d9b6e9231c24c271b96b9f5e98afb5
openvino/openvino_model.bin265 MBe39054817911955484ff883fec5046e874c43105638b82ff49336e8b03d1902f
openvino/openvino_model.xml217 KBc1c8932a11d60875e32e72d6a3cc2530967f0a99924751c1786db972d5f86d05
openvino/openvino_model_qint8_quantized.bin67.0 MBedf89be8db7006a9fb45d286e183c567ab5bb8ead854d1da479e585808707596
openvino/openvino_model_qint8_quantized.xml372 KB698f41e7be8f3cc17cf42678ed0e28891c7c114bc74ccbfb0d925650a3bf52f1
pytorch_model.bin265 MB5d4551851fc88a3b212a38316b255c3c160b768c167a982e9570fd2e482fe10e
sentence_bert_config.json53 B70f4448f31320443fe3557cacea5abf2dcc4915dda8c80646bec9f3bb0aa5a1f
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h5266 MBe3f510cd1e83ea13ad4937702dc252a5c24ab94a3b45829d3b65c411ff0bea0f
tokenizer.json466 KB5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json450 B6fab0c4cf48ec08ef47ef64db73ef6ccf05f868f69355098427ff86de0074910
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b404353e5a pinned now2026-11-15 02:32 UTC27 files · 2.59 GB

Use it

$ fw get sentence-transformers/distilbert-base-nli-mean-tokens
# manifest sha256 96b91aa72d2f… · 2.59 GB · 27 files
$ fw verify ./distilbert-base-nli-mean-tokens sentence-transformers/distilbert-base-nli-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-mean-tokens.json --dir ./distilbert-base-nli-mean-tokens $ python3 fw.py verify ./distilbert-base-nli-mean-tokens ./sentence-transformers__distilbert-base-nli-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-mean-tokens --revision b404353e5a0ef9cdf6a4500baa81aaec875d4db0 --local-dir ./distilbert-base-nli-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-mean-tokens", revision="b404353e5a0ef9cdf6a4500baa81aaec875d4db0") model = AutoModel.from_pretrained("sentence-transformers/distilbert-base-nli-mean-tokens", revision="b404353e5a0ef9cdf6a4500baa81aaec875d4db0", 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-mean-tokens", revision="b404353e5a0ef9cdf6a4500baa81aaec875d4db0") 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
803d2be89c44c9484e6bc5234f6a0e31be42558e81eeeb571bd06ddc99eeb0c7
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-mean-tokensDate: 2026-11-15Commit: b404353Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/distilbert-base-nli-mean-tokens
Pinned commit
b404353e5a0ef9cdf6a4500baa81aaec875d4db0
Manifest
distilbert-base-nli-mean-tokens.json · .minisig
Manifest sha256
96b91aa72d2f117d953eb098c48f62d3a2ae21dbe872ba4a7cfc9aa4e39833ee
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:32 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/distilbert-base-nli-mean-tokens.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/distilbert-base-nli-mean-tokens.json.minisig $ minisign -Vm distilbert-base-nli-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-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-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