Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Run this model with HF Jobs
Run Collab-uniba/github-issues-preprocessed-mpnet-st-e10 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Collab-uniba/github-issues-preprocessed-mpnet-st-e10. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Collab-uniba/github-issues-preprocessed-mpnet-st-e10 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Collab-uniba/github-issues-preprocessed-mpnet-st-e10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Collab-uniba/github-issues-preprocessed-mpnet-st-e10 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Collab-uniba/github-issues-preprocessed-mpnet-st-e10") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use Collab-uniba/github-issues-preprocessed-mpnet-st-e10 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Collab-uniba/github-issues-preprocessed-mpnet-st-e10") model = AutoModel.from_pretrained("Collab-uniba/github-issues-preprocessed-mpnet-st-e10", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Collab-uniba/github-issues-preprocessed-mpnet-st-e10: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/Collab-uniba/github-issues-preprocessed-mpnet-st-e10/resolve/main/config.json
- Command line
-
hf download hf://Collab-uniba/github-issues-preprocessed-mpnet-st-e10/config.json
-
curl -L -o config.json https://huggingface.co/Collab-uniba/github-issues-preprocessed-mpnet-st-e10/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.27.1", | |
| "vocab_size": 30527 | |
| } | |