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

bert-large-nli-mean-tokens

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

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

335M params14.4GBbert-large-nli-mean-tokensonnx openvino safetensorspermissive
FactsParams335MSize14.4 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/bert-large-nli-mean-tokens
# manifest sha256 d44ff73867f3… · 14.4 GB · 29 files
$ fw verify ./bert-large-nli-mean-tokens sentence-transformers/bert-large-nli-mean-tokens
From sourceHosted (signed)sentence-transformers/bert-large-nli-mean-tokensLast check: 2026-11-15 03:37 UTC

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

Works with

Evaluate with

Overview

Size
14.4 GB
Weights
1.34 GB (safetensors)
Parameters
335M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
29, 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 03:37 UTCpassed

Model card

From the publisher at commit a85b0d1. 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/bert-large-nli-mean-tokens#

This is a sentence-transformers model: It maps sentences & paragraphs to a 1024 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/bert-large-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/bert-large-nli-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/bert-large-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: BertModel 
  (1): Pooling({'word_embedding_dimension': 1024, '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

29 files · 14.4 GBWeights 1.34 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
1_Pooling/config.json191 Bc3928f93d5602f7c6534731447ed30565c943d1b3a85b2264a32601ad6fbcee3
README.md3.78 KB30e7403a344fb4e109ca6581dc436ddc9851362c350a43f198335b245f859b93
added_tokens.json2 B44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
config.json627 B57824a3ab193fb81fa9cab5de734d05a078704946a8bd6f9b04f6a999f610a28
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
flax_model.msgpack1.34 GB540cf43bb1fc36579fb12ce1c08ffa00a6151f733d9af26b1a79f1a7104c372a
model.safetensors1.34 GB74ac07afeef3769842aa6b850a60d1530b5a980cc3ccee5d46ab80bcfec56cdc
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx1.34 GB49a72ff9b89da8399ba3ab21feb218f22ee98567ff4fe8c74686762db07bfbd4
onnx/model_O1.onnx1.34 GB7350583e57c0dfe2fae5218e1b4e34234afaf548afeb37a77cd7fee4383fea4b
onnx/model_O2.onnx1.34 GBa1d11edd36ea90da08cacdce07788863a61b7b30416a1c98eba08406caa958bb
onnx/model_O3.onnx1.34 GB1e376738a5504b7f43db895b157e70095c9488511c49d0a8db418c45a91e81b8
onnx/model_O4.onnx668 MB7ba380b74ead4cb8ac77949462444453f6430e41e669608e9a478987f0774b3e
onnx/model_qint8_arm64.onnx337 MB614129a950a68b8f4234edac0cc18e93381a361b5c134170a60155a5b6dd0bc0
onnx/model_qint8_avx512.onnx337 MB614129a950a68b8f4234edac0cc18e93381a361b5c134170a60155a5b6dd0bc0
onnx/model_qint8_avx512_vnni.onnx337 MB614129a950a68b8f4234edac0cc18e93381a361b5c134170a60155a5b6dd0bc0
onnx/model_quint8_avx2.onnx337 MB96c56a0a5e205a1e4d53ccfbd21a91a3ac67b0ada0e995bc184ecc8fa9c3510d
openvino/openvino_model.bin1.34 GBeb9732b6a68202bdb82761c5b418c39b9ed4b30f32a1d9bc690be4e108530cc5
openvino/openvino_model.xml777 KBf4b600298791d0a9cc00256ddcebcadc7a7ee3085e7d36867559fd79376bde2b
openvino/openvino_model_qint8_quantized.bin337 MB1280e23b83c8a85ac1d408300cfd6d85b0605875d2995fcb28b27fa17fb10a6b
openvino/openvino_model_qint8_quantized.xml1.40 MBc6decfa95f405d0215aa41262230de51b209b0fcc37103c3c1972674babc5e09
pytorch_model.bin1.34 GBe7277f784e03dd6c3076faf9750dee7faa3ddc6c234023a427f528409615854c
sentence_bert_config.json53 B70f4448f31320443fe3557cacea5abf2dcc4915dda8c80646bec9f3bb0aa5a1f
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h51.34 GBd0f3e444c8983e96cbc2481480f8e16725472475d8d09f4725b86682d86f49ca
tokenizer.json466 KB5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json401 B565ef3965e903e59b44527d48934c492fa4d80763bac36e006765fce3f212573
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a85b0d10e1 pinned now2026-11-15 03:37 UTC29 files · 14.4 GB

Use it

$ fw get sentence-transformers/bert-large-nli-mean-tokens
# manifest sha256 d44ff73867f3… · 14.4 GB · 29 files
$ fw verify ./bert-large-nli-mean-tokens sentence-transformers/bert-large-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/bert-large-nli-mean-tokens.json --dir ./bert-large-nli-mean-tokens $ python3 fw.py verify ./bert-large-nli-mean-tokens ./sentence-transformers__bert-large-nli-mean-tokens.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/bert-large-nli-mean-tokens --revision a85b0d10e16867eb768e411c66f79475505b65dd --local-dir ./bert-large-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/bert-large-nli-mean-tokens", revision="a85b0d10e16867eb768e411c66f79475505b65dd") model = AutoModel.from_pretrained("sentence-transformers/bert-large-nli-mean-tokens", revision="a85b0d10e16867eb768e411c66f79475505b65dd", 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/bert-large-nli-mean-tokens", revision="a85b0d10e16867eb768e411c66f79475505b65dd") 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
30e7403a344fb4e109ca6581dc436ddc9851362c350a43f198335b245f859b93
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: bert-large-nli-mean-tokensDate: 2026-11-15Commit: a85b0d1Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/bert-large-nli-mean-tokens
Pinned commit
a85b0d10e16867eb768e411c66f79475505b65dd
Manifest
bert-large-nli-mean-tokens.json · .minisig
Manifest sha256
d44ff73867f31ac26d7c67a53cd30c1eb7cc9b0a5476350604b73fc7e0bc57a1
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:37 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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