Sentence Similarity
sentence-transformers
Safetensors
Transformers
xlm-roberta
feature-extraction
text-embeddings-inference
Instructions to use ramnathv/clips-mfaq-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ramnathv/clips-mfaq-test with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ramnathv/clips-mfaq-test") sentences = [ "<Q>How many models can I host on HuggingFace?", "<A>All plans come with unlimited private models and datasets.", "<A>AutoNLP is an automatic way to train and deploy state-of-the-art NLP models, seamlessly integrated with the Hugging Face ecosystem.", "<A>Based on how much training data and model variants are created, we send you a compute cost and payment link - as low as $10 per job." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use ramnathv/clips-mfaq-test with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ramnathv/clips-mfaq-test") model = AutoModel.from_pretrained("ramnathv/clips-mfaq-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download 1_Pooling/config.json from ramnathv/clips-mfaq-test: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/ramnathv/clips-mfaq-test/resolve/main/1_Pooling/config.json
- Command line
-
hf download hf://ramnathv/clips-mfaq-test/1_Pooling/config.json
-
curl -L -o config.json https://huggingface.co/ramnathv/clips-mfaq-test/resolve/main/1_Pooling/config.json
270 Bytes
| { | |
| "word_embedding_dimension": 768, | |
| "pooling_mode_cls_token": false, | |
| "pooling_mode_mean_tokens": true, | |
| "pooling_mode_max_tokens": false, | |
| "pooling_mode_mean_sqrt_len_tokens": false, | |
| "pooling_mode_weightedmean_tokens": false, | |
| "pooling_mode_lasttoken": false | |
| } |