sentence-transformers-testing_stsb-bert-tiny-safetensors
sentence-transformers-testing · View on Hugging Face ↗
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.
library_name: sentence-transformers pipeline_tag: sentence-similarity tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
sentence-transformers-testing/stsb-bert-tiny-safetensors
This is a sentence-transformers model: It maps sentences & paragraphs to a 128 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-testing/stsb-bert-tiny-safetensors')
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-testing/stsb-bert-tiny-safetensors')
model = AutoModel.from_pretrained('sentence-transformers-testing/stsb-bert-tiny-safetensors')
# 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, mean pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
Evaluation Results
For an automated evaluation of this model, see the Sentence Embeddings Benchmark: https://seb.sbert.net
Training
The model was trained with the parameters:
DataLoader:
torch.utils.data.dataloader.DataLoader of length 360 with parameters:
{'batch_size': 16, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
Loss:
sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss
Parameters of the fit()-Method:
{
"epochs": 10,
"evaluation_steps": 1000,
"evaluator": "NoneType",
"max_grad_norm": 1,
"optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
"optimizer_params": {
"lr": 8e-05
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 36,
"weight_decay": 0.01
}
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 128, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False})
)
Citing & Authors
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:feb740a2f3ec467580af59246143ca975c41f6cd&dn=sentence-transformers-testing_stsb-bert-tiny-safetensorsOpen magnet in torrent client · infohash feb740a2f3ec467580af59246143ca975c41f6cd
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| 1_Pooling/config.json | 270 B (270 B) | 94962f2ca326d0829821e1622e596cc3c78c3851 | 407d76ff399d15353b1135b1aaee4cbff6e7fd580051d842d47482347fcbb79d |
| README.md | 3.9 KB (4,033 B) | cf945d35c75be91270feb7c22690dbefc6a4a8fa | f49058be92fbc0c3e25195868a316431087327cc5156938629f0bb3bb651d6b8 |
| config.json | 622 B (622 B) | c9ce8e3428a6e69a3f014a26fdf812dadbff40c7 | 959c2055d84f60a9d7fa989e1eb28921b739f313e2f76569a74adae6f1c06e08 |
| config_sentence_transformers.json | 123 B (123 B) | 1e4e4eeb5c41b5995518c4df770d1e1635200143 | 91899218af1dd969e85e382b4255cabf191a3e370f59395181423046b4613a77 |
| model.safetensors | 16.7 MB (17,547,912 B) | 1d61ce97fec1b6fa032ead81920f4be3cbc402ba | b57380d8465cb456819716ab92ba12933f8e9142ae5f930ba18ca830e9333af2 |
| modules.json | 229 B (229 B) | f7640f94e81bb7f4f04daf1668850b38763a13d9 | 8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460 |
| pytorch_model.bin | 16.7 MB (17,556,771 B) | 22a3a11cb86154dcc7f268297c21d1a774662677 | dbce579acedc573c994925d2e400357f5b3a5f6b12e1ba019a5afbd6cb73b8a4 |
| sentence_bert_config.json | 53 B (53 B) | f789d99277496b282d19020415c5ba9ca79ac875 | ec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51 |
| special_tokens_map.json | 125 B (125 B) | a8b3208c2884c4efb86e49300fdd3dc877220cdf | b6d346be366a7d1d48332dbc9fdf3bf8960b5d879522b7799ddba59e76237ee3 |
| tokenizer.json | 695.0 KB (711,649 B) | 3c0e6344ec45a9a6e5a621d6711baf109c2d9f87 | 91f1def9b9391fdabe028cd3f3fcc4efd34e5d1f08c3bf2de513ebb5911a1854 |
| tokenizer_config.json | 1.2 KB (1,270 B) | f10ebbb60eb4fd940ceaae54ccc075f2ef009b9f | ae57eda34a3d4e3bbab5edd30c5b7e4ee3c493fa48c2e1af1443b6bd619afc19 |
| vocab.txt | 226.1 KB (231,508 B) | fb140275c155a9c7c5a3b3e0e77a9e839594a938 | 07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/sentence-transformers-testing_stsb-bert-tiny-safetensors/
- Slug
- sentence-transformers-testing_stsb-bert-tiny-safetensors
- Infohash
- feb740a2f3ec467580af59246143ca975c41f6cd
- License
- no license recorded
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers-testing_stsb-bert-tiny-safetensors.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | sentence-transformers-testing/stsb-bert-tiny-safetensors |
|---|---|
| Revision (pinned) | f3cb857cba53019a20df283396bcca179cf051a4 |
| Fetched at | 2026-09-04T05:34:33Z |
| License at fetch | no license recorded |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-04T05:34:35Z
no license recorded34.4 MB (36,054,565 bytes)sentence-transformerspytorchsafetensorsbertfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible