MR-Eder/embedding-pairs
Viewer โข Updated โข 1.04M โข 7
Run MR-Eder/GRAG-BGE-M3-Pairs-Basic-Autotrain-v5 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/MR-Eder/GRAG-BGE-M3-Pairs-Basic-Autotrain-v5. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/MR-Eder/GRAG-BGE-M3-Pairs-Basic-Autotrain-v5 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use MR-Eder/GRAG-BGE-M3-Pairs-Basic-Autotrain-v5 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("MR-Eder/GRAG-BGE-M3-Pairs-Basic-Autotrain-v5")
sentences = [
"search_query: i love autotrain",
"search_query: huggingface auto train",
"search_query: hugging face auto train",
"search_query: i love autotrain"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]No validation metrics available
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the Hugging Face Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'search_query: autotrain',
'search_query: auto train',
'search_query: i love autotrain',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
Base model
BAAI/bge-m3