Run this model with HF Jobs

Run intfloat/e5-small-v2 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/intfloat/e5-small-v2. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/intfloat/e5-small-v2 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.

Add exported openvino model 'openvino_model.xml'

#14
by tomaarsen HF Staff - opened

Hello!

This pull request has been automatically generated from the Sentence Transformers backend-export Space.

Pull Request overview

  • Add exported OpenVINO model openvino_model.xml.

Tip:

Consider testing this pull request before merging by loading the model from this PR with the revision argument:

from sentence_transformers import SentenceTransformer

# TODO: Fill in the PR number
pr_number = 2
model = SentenceTransformer(
    "intfloat/e5-small-v2",
    revision=f"refs/pr/{pr_number}",
    backend="openvino",
)

# Verify that everything works as expected
embeddings = model.encode(["The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium."])
print(embeddings.shape)

similarities = model.similarity(embeddings, embeddings)
print(similarities)
intfloat changed pull request status to merged

Sign up or log in to comment