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 modules.json from ramnathv/clips-mfaq-test: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/ramnathv/clips-mfaq-test/resolve/main/modules.json
- Command line
-
hf download hf://ramnathv/clips-mfaq-test/modules.json
-
curl -L -o modules.json https://huggingface.co/ramnathv/clips-mfaq-test/resolve/main/modules.json
229 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| } | |
| ] |