Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use cheongmyeong17/Contrastive-Embedding-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use cheongmyeong17/Contrastive-Embedding-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cheongmyeong17/Contrastive-Embedding-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] - Transformers
How to use cheongmyeong17/Contrastive-Embedding-v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("cheongmyeong17/Contrastive-Embedding-v2") model = AutoModel.from_pretrained("cheongmyeong17/Contrastive-Embedding-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload folder using huggingface_hub
JH Na9ac5656 -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch57b4ab7c -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch5d0c56ea -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch50191919 -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch5be0b0c7 -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch55cb686b -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch5199190b -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch515ee2ba -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch597e5c2b -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch51bacd49 -
Pushing contrastive embedding v2 model
JH NaModel trained on fully inhouse data with epoch5c21a2fb -
initial commit
f4e6562