- Libraries
- Transformers
How to use KrishnaIndukuri/IRMSEmbeddingsV4 with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("KrishnaIndukuri/IRMSEmbeddingsV4", dtype="auto") - ColPali
How to use KrishnaIndukuri/IRMSEmbeddingsV4 with ColPali:
# No code snippets available yet for this library.
# To use this model, check the repository files and the library's documentation.
# Want to help? PRs adding snippets are welcome at:
# https://github.com/huggingface/huggingface.js
- sentence-transformers
How to use KrishnaIndukuri/IRMSEmbeddingsV4 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("KrishnaIndukuri/IRMSEmbeddingsV4")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3] - Notebooks
- Google Colab
- Kaggle