Sentence Similarity
sentence-transformers
Safetensors
English
mpnet
feature-extraction
generated
Eval Results (legacy)
text-embeddings-inference
Instructions to use tomaarsen/st-v3-test-mpnet-base-allnli-stsb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/st-v3-test-mpnet-base-allnli-stsb with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/st-v3-test-mpnet-base-allnli-stsb") sentences = [ "Really? No kidding! ", "yeah really no kidding", "At the end of the fourth century was when baked goods flourished.", "The campaigns seem to reach a new pool of contributors." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from tomaarsen/st-v3-test-mpnet-base-allnli-stsb: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/tomaarsen/st-v3-test-mpnet-base-allnli-stsb/resolve/main/config.json
- Command line
-
hf download hf://tomaarsen/st-v3-test-mpnet-base-allnli-stsb/config.json
-
curl -L -o config.json https://huggingface.co/tomaarsen/st-v3-test-mpnet-base-allnli-stsb/resolve/main/config.json
594 Bytes
| { | |
| "_name_or_path": "microsoft/mpnet-base", | |
| "architectures": [ | |
| "MPNetModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "mpnet", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "relative_attention_num_buckets": 32, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.3", | |
| "vocab_size": 30527 | |
| } | |