Sentence Similarity
sentence-transformers
English
bert
ctranslate2
int8
float16
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Instructions to use michaelfeil/ct2fast-e5-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use michaelfeil/ct2fast-e5-large with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("michaelfeil/ct2fast-e5-large") 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 ·
c0d2c88
1
Parent(s): 24ac540
Upload intfloat/e5-large ctranslate fp16 weights
Browse files2629 unmodified lines2630263126322633263426352636263726382639264026412629 unmodified lines# load in int8 on CUDAmodel_name_or_path=model_name,device="cuda",compute_type="int8_float16",# tokenizer=AutoTokenizer.from_pretrained("{ORG}/{NAME}"))outputs = model.generate(text=["def fibonnaci(", "User: How are you doing? Bot:"],max_length=64,)print(outputs.shape, outputs)```2629 unmodified lines263026312632263326342635263626372638263926402629 unmodified lines# load in int8 on CUDAmodel_name_or_path=model_name,device="cuda",compute_type="float16",# tokenizer=AutoTokenizer.from_pretrained("{ORG}/{NAME}"))outputs = model.generate(text=["I like soccer", "I like tennis", "The eiffel tower is in Paris"],)print(outputs.shape, outputs)```
README.md+2-3