Sentence Similarity
sentence-transformers
Safetensors
Transformers
Polish
new
feature-extraction
custom_code
text-embeddings-inference
Instructions to use sdadas/stella-pl-retrieval-mini-8k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sdadas/stella-pl-retrieval-mini-8k with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sdadas/stella-pl-retrieval-mini-8k", trust_remote_code=True) sentences = [ "zapytanie: Jak dożyć 100 lat?", "Trzeba zdrowo się odżywiać i uprawiać sport.", "Trzeba pić alkohol, imprezować i jeździć szybkimi autami.", "Gdy trwała kampania politycy zapewniali, że rozprawią się z zakazem niedzielnego handlu." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use sdadas/stella-pl-retrieval-mini-8k with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sdadas/stella-pl-retrieval-mini-8k", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!