Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Instructions to use witty-works/test_false_positive_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use witty-works/test_false_positive_2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("witty-works/test_false_positive_2") 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 witty-works/test_false_positive_2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("witty-works/test_false_positive_2") model = AutoModel.from_pretrained("witty-works/test_false_positive_2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from witty-works/test_false_positive_2: direct link, hf CLI and curl.
- Browser
- Download file 712 kB
-
https://huggingface.co/witty-works/test_false_positive_2/resolve/refs%2Fpr%2F1/tokenizer.json
- Command line
-
hf download hf://witty-works/test_false_positive_2@refs/pr/1/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/witty-works/test_false_positive_2/resolve/refs%2Fpr%2F1/tokenizer.json
712 kB
File too large to display, you can check the raw version instead.