Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Spanish
bert
feature-extraction
text-embeddings-inference
Instructions to use hiiamsid/sentence_similarity_spanish_es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hiiamsid/sentence_similarity_spanish_es with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hiiamsid/sentence_similarity_spanish_es") sentences = [ "Esa es una persona feliz", "Ese es un perro feliz", "Esa es una persona muy feliz", "Hoy es un día soleado" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use hiiamsid/sentence_similarity_spanish_es with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hiiamsid/sentence_similarity_spanish_es") model = AutoModel.from_pretrained("hiiamsid/sentence_similarity_spanish_es", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Adding ONNX file of this model
#5
by CamiloGato - opened
Beep boop I am the ONNX export bot 🤖🏎️. On behalf of CamiloGato, I would like to add to this repository the model converted to ONNX.
What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at onnx.ai!
The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how here!