Sentence Similarity
sentence-transformers
Safetensors
new
feature-extraction
Generated from Trainer
dataset_size:170845
loss:BatchHardTripletLoss
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use philmas/cese5020-contrastive-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use philmas/cese5020-contrastive-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("philmas/cese5020-contrastive-model", trust_remote_code=True) sentences = [ "Radionuclide therapy for targeted cancer treatment", "Reinforced fish plates with a zinc coating for tropical climates", "Tantalum alloy powders for hardened steel production.", "Kraft pulp used extensively in the production of kraft paper and bags." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!