Sentence Similarity
sentence-transformers
Safetensors
Transformers
Polish
qwen2
text-generation
feature-extraction
custom_code
text-embeddings-inference
Instructions to use sdadas/stella-pl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sdadas/stella-pl with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sdadas/stella-pl", 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 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sdadas/stella-pl", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("sdadas/stella-pl", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from sdadas/stella-pl: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/sdadas/stella-pl/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://sdadas/stella-pl/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/sdadas/stella-pl/resolve/main/special_tokens_map.json
390 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>" | |
| ], | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |