Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
English
bert
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Instructions to use thenlper/gte-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thenlper/gte-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("thenlper/gte-base") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
Code Search Support
#1
by kevinlu1248 - opened
Has this model been trained on any code? I see Stack Overflow in the list of evaluations though.
Yes, the training data includes some code/text relevance pairs
Thanks! How much did you guys train on and is it as much as all of CodeSearchNet? We're wondering because we're considering migrating from MPNet since the scores are way better.