Model reference · open weights
SGPT-weightedmean-msmarco-specb-bitf is an open-weight embedding model from Muennighoff. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | Muennighoff |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Context | 2k tokens |
| Runs with | sentence-transformers |
| Released | 2022-03-02 |
| Popularity | 879 downloads / month |
| Licence | Unknown |
About
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}
}
From the published model card. Full card on the HuggingFace links in the sidebar.
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 |
Using it via the API
Once AxForge deploys sgpt-weightedmean-msmarco-specb-bitf for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (sgpt-weightedmean-msmarco-specb-bitf below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"sgpt-weightedmean-msmarco-specb-bitf","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.