Model reference · open weights
SGPT-weightedmean-msmarco-specb-bitfit is an open-weight embedding model from Muennighoff. SGPT-125M-weightedmean-msmarco-specb-bitfit (BF16) weighs 551 MB; the smallest configuration that runs it is RTX 3060 12 GB.
What it is
| Released by | Muennighoff |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Context | 2,048 tokens |
| Runs with | sentence-transformers |
| Released | 2022-03-02 |
| Popularity | 879 downloads / month |
| Weights | 551 MB (SGPT-125M-weightedmean-msmarco-specb-bitfit (BF16), file size) |
| Licence | Licence not stated |
What it runs on
Weights 551 MB (file size) · overhead about 1.1 GB.
| Card | Runs | Counted memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
Estimates, not measurements: the weights are the build's file size. No cache grows with use; a batch of inputs needs working memory of its own. Counted memory is 92 % of what CUDA reports for the card.
From the model card
For usage instructions, refer to our codebase: https://github.com/Muennighoff/sgpt
For eval results, refer to the eval folder or our paper: https://arxiv.org/abs/2202.08904
The model was trained with the parameters:
DataLoader:
torch.utils.data.dataloader.DataLoader of length 15600 with parameters:
{'batch_size': 32, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
Loss:
sentence_transformers.losses.MultipleNegativesRankingLoss.MultipleNegativesRankingLoss with parameters:
{'scale': 20.0, 'similarity_fct': 'cos_sim'}
Parameters of the fit()-Method:
{
"epochs": 10,
"evaluation_steps": 0,
"evaluator": "NoneType",
"max_grad_norm": 1,
"optimizer_class": "",
"optimizer_params": {
"lr": 0.0002
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 1000,
"weight_decay": 0.01
}
SentenceTransformer(
(0): Transformer({'max_seq_length': 300, 'do_lower_case': False}) with Transformer model: GPTNeoModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': True, 'pooling_mode_lasttoken': False})
)
@article{muennighoff2022sgpt,
title={SGPT: GPT Sentence Embeddings for Semantic Search},
author={Muennighoff, Niklas},
journal={arXiv preprint arXiv:2202.08904},
year={2022}
}
Quoted from the model card on Hugging Face — the full card is behind the Hugging Face link above.
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Classification | MTEB AmazonCounterfactualClassification (en) | accuracy | 61.239 |
| Classification | MTEB AmazonCounterfactualClassification (en) | ap | 25.854 |
| Classification | MTEB AmazonCounterfactualClassification (en) | f1 | 55.752 |
| Classification | MTEB AmazonCounterfactualClassification (de) | accuracy | 56.884 |
| Classification | MTEB AmazonCounterfactualClassification (de) | ap | 72.673 |
| Classification | MTEB AmazonCounterfactualClassification (de) | f1 | 54.450 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | accuracy | 58.276 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | ap | 14.067 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | f1 | 48.172 |
| Classification | MTEB AmazonCounterfactualClassification (ja) | accuracy | 54.647 |
| Classification | MTEB AmazonCounterfactualClassification (ja) | ap | 11.777 |
| Classification | MTEB AmazonCounterfactualClassification (ja) | f1 | 44.527 |
| Classification | MTEB AmazonPolarityClassification | accuracy | 65.401 |
| Classification | MTEB AmazonPolarityClassification | ap | 60.228 |
| Classification | MTEB AmazonPolarityClassification | f1 | 65.025 |
| Classification | MTEB AmazonReviewsClassification (en) | accuracy | 31.166 |
| Classification | MTEB AmazonReviewsClassification (en) | f1 | 30.909 |
| Classification | MTEB AmazonReviewsClassification (de) | accuracy | 24.790 |
| Classification | MTEB AmazonReviewsClassification (de) | f1 | 24.583 |
| Classification | MTEB AmazonReviewsClassification (es) | accuracy | 26.644 |
| Classification | MTEB AmazonReviewsClassification (es) | f1 | 26.390 |
| Classification | MTEB AmazonReviewsClassification (fr) | accuracy | 26.386 |
| Classification | MTEB AmazonReviewsClassification (fr) | f1 | 26.277 |
| Classification | MTEB AmazonReviewsClassification (ja) | accuracy | 22.078 |