Sentence Similarity
sentence-transformers
English
bert
ctranslate2
int8
float16
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Instructions to use michaelfeil/ct2fast-e5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use michaelfeil/ct2fast-e5-small with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("michaelfeil/ct2fast-e5-small") 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
Commit ·
e717a60
1
Parent(s): 38ad519
Upload intfloat/e5-small ctranslate fp16 weights
Browse files
README.md
CHANGED
|
@@ -2617,7 +2617,7 @@ model_name = "michaelfeil/ct2fast-e5-small"
|
|
| 2617 |
|
| 2618 |
from hf_hub_ctranslate2 import CT2SentenceTransformer
|
| 2619 |
model = CT2SentenceTransformer(
|
| 2620 |
-
model_name, compute_type="int8_float16", device="cuda"
|
| 2621 |
)
|
| 2622 |
embeddings = model.encode(
|
| 2623 |
["I like soccer", "I like tennis", "The eiffel tower is in Paris"],
|
|
|
|
| 2617 |
|
| 2618 |
from hf_hub_ctranslate2 import CT2SentenceTransformer
|
| 2619 |
model = CT2SentenceTransformer(
|
| 2620 |
+
model_name, compute_type="int8_float16", device="cuda", convert_from_huggingface_transformers=False
|
| 2621 |
)
|
| 2622 |
embeddings = model.encode(
|
| 2623 |
["I like soccer", "I like tennis", "The eiffel tower is in Paris"],
|