Sentence Similarity
sentence-transformers
Safetensors
Transformers
Transformers.js
English
nomic_bert
feature-extraction
mteb
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use CAiRE/UniVaR-lambda-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use CAiRE/UniVaR-lambda-5 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("CAiRE/UniVaR-lambda-5", trust_remote_code=True) 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] - Transformers
How to use CAiRE/UniVaR-lambda-5 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("CAiRE/UniVaR-lambda-5", trust_remote_code=True) model = AutoModel.from_pretrained("CAiRE/UniVaR-lambda-5", trust_remote_code=True) - Transformers.js
How to use CAiRE/UniVaR-lambda-5 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('sentence-similarity', 'CAiRE/UniVaR-lambda-5'); - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!