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-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use michaelfeil/ct2fast-e5-small-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("michaelfeil/ct2fast-e5-small-v2") 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 ·
a682aed
1
Parent(s): 0249feb
Upload intfloat/e5-small-v2 ctranslate fp16 weights
Browse files
README.md
CHANGED
|
@@ -2608,7 +2608,7 @@ Speedup inference while reducing memory by 2x-4x using int8 inference in C++ on
|
|
| 2608 |
|
| 2609 |
quantized version of [intfloat/e5-small-v2](https://huggingface.co/intfloat/e5-small-v2)
|
| 2610 |
```bash
|
| 2611 |
-
pip install hf-hub-ctranslate2>=
|
| 2612 |
```
|
| 2613 |
|
| 2614 |
```python
|
|
@@ -2631,7 +2631,7 @@ scores = (embeddings @ embeddings.T) * 100
|
|
| 2631 |
```
|
| 2632 |
|
| 2633 |
Checkpoint compatible to [ctranslate2>=3.16.0](https://github.com/OpenNMT/CTranslate2)
|
| 2634 |
-
and [hf-hub-ctranslate2>=
|
| 2635 |
- `compute_type=int8_float16` for `device="cuda"`
|
| 2636 |
- `compute_type=int8` for `device="cpu"`
|
| 2637 |
|
|
|
|
| 2608 |
|
| 2609 |
quantized version of [intfloat/e5-small-v2](https://huggingface.co/intfloat/e5-small-v2)
|
| 2610 |
```bash
|
| 2611 |
+
pip install hf-hub-ctranslate2>=3.0.0 ctranslate2>=3.16.0
|
| 2612 |
```
|
| 2613 |
|
| 2614 |
```python
|
|
|
|
| 2631 |
```
|
| 2632 |
|
| 2633 |
Checkpoint compatible to [ctranslate2>=3.16.0](https://github.com/OpenNMT/CTranslate2)
|
| 2634 |
+
and [hf-hub-ctranslate2>=3.0.0](https://github.com/michaelfeil/hf-hub-ctranslate2)
|
| 2635 |
- `compute_type=int8_float16` for `device="cuda"`
|
| 2636 |
- `compute_type=int8` for `device="cpu"`
|
| 2637 |
|