Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

sdadas
/
stella-pl

Sentence Similarity
sentence-transformers
Safetensors
Transformers
Polish
qwen2
text-generation
feature-extraction
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community

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:

    # 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)
  • Notebooks
  • Google Colab
  • Kaggle
stella-pl / 2_Dense
6.3 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
sdadas's picture
sdadas
Upload 18 files
26bd354 verified over 1 year ago
  • config.json
    116 Bytes
    Upload 18 files over 1 year ago
  • model.safetensors
    6.3 MB
    xet
    Upload 18 files over 1 year ago