Sentence Similarity
Transformers
Safetensors
sentence-transformers
English
bert
feature-extraction
retrieval
contrastive-learning
quotes
text-embeddings-inference
Instructions to use otterbox901/philo-minilm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use otterbox901/philo-minilm with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("otterbox901/philo-minilm") model = AutoModel.from_pretrained("otterbox901/philo-minilm", device_map="auto") - sentence-transformers
How to use otterbox901/philo-minilm with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("otterbox901/philo-minilm") 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] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ tags:
|
|
| 16 |
|
| 17 |
# Philo MiniLM (v1)
|
| 18 |
|
| 19 |
-
An embedding model for **replying to a message with a philosopher's quote**. Write a question, a request for advice, some venting, or nonsense, and the nearest quote should be a good *reply*
|
| 20 |
|
| 21 |
Off-the-shelf sentence embeddings match by topic: "I'm nervous about my exam" lands next to quotes about exams and knowledge. This model is [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) fine-tuned so that "close" means "a fitting reply" instead.
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
# Philo MiniLM (v1)
|
| 18 |
|
| 19 |
+
An embedding model for **replying to a message with a philosopher's quote**. Write a question, a request for advice, some venting, or nonsense, and the nearest quote should be a good *reply*.
|
| 20 |
|
| 21 |
Off-the-shelf sentence embeddings match by topic: "I'm nervous about my exam" lands next to quotes about exams and knowledge. This model is [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) fine-tuned so that "close" means "a fitting reply" instead.
|
| 22 |
|