Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
new
feature-extraction
mteb
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use NovaSearch/stella_en_400M_v5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NovaSearch/stella_en_400M_v5 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NovaSearch/stella_en_400M_v5", 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 NovaSearch/stella_en_400M_v5 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NovaSearch/stella_en_400M_v5", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Generate ONNX
#12
by masdeval - opened
Hi. I am trying to generate the ONNX version using the command: python -m optimum.exporters.onnx --model=/home/ubuntu/sentence_transformer/stella_en_400M_v5 --feature_size 1024 --task feature-extraction --trust-remote-code --device cuda .
But getting the error: RuntimeError: Found an unsupported argument type c10::SymInt in the JIT tracer. File a bug report.
Can someone help on this?
any update to this?
Unfortunately not