Instructions to use mogaio/pr_sa_batch2_alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mogaio/pr_sa_batch2_alpha with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mogaio/pr_sa_batch2_alpha") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use mogaio/pr_sa_batch2_alpha with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mogaio/pr_sa_batch2_alpha") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download config.json from mogaio/pr_sa_batch2_alpha: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/mogaio/pr_sa_batch2_alpha/resolve/main/config.json
- Command line
-
hf download hf://mogaio/pr_sa_batch2_alpha/config.json
-
curl -L -o config.json https://huggingface.co/mogaio/pr_sa_batch2_alpha/resolve/main/config.json
720 Bytes
| { | |
| "_name_or_path": "/root/.cache/torch/sentence_transformers/sentence-transformers_all-MiniLM-L6-v2/", | |
| "architectures": [ | |
| "BertModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 384, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1536, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.34.1", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30522 | |
| } | |