Sentence Similarity
sentence-transformers
PyTorch
TensorBoard
Safetensors
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use srsawant34/ProTopic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use srsawant34/ProTopic with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("srsawant34/ProTopic") 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 srsawant34/ProTopic with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("srsawant34/ProTopic") model = AutoModel.from_pretrained("srsawant34/ProTopic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download lightning_logs/version_2/hparams.yaml from srsawant34/ProTopic: direct link, hf CLI and curl.
- Browser
- Download file 127 Bytes
-
https://huggingface.co/srsawant34/ProTopic/resolve/main/lightning_logs/version_2/hparams.yaml
- Command line
-
hf download hf://srsawant34/ProTopic/lightning_logs/version_2/hparams.yaml
-
curl -L -o hparams.yaml https://huggingface.co/srsawant34/ProTopic/resolve/main/lightning_logs/version_2/hparams.yaml
127 Bytes
| lr: 0.0005 | |
| max_epochs: 12 | |
| sentence_model: sentence-transformers/paraphrase-MiniLM-L6-v2 | |
| temperature: 0.07 | |
| weight_decay: 0.0001 | |