Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

sdadas
/
mmlw-e5-small

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Polish
bert
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use sdadas/mmlw-e5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sdadas/mmlw-e5-small with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sdadas/mmlw-e5-small")
    
    sentences = [
        "query: Jak dożyć 100 lat?",
        "passage: Trzeba zdrowo się odżywiać i uprawiać sport.",
        "passage: Trzeba pić alkohol, imprezować i jeździć szybkimi autami.",
        "passage: 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/mmlw-e5-small with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("sdadas/mmlw-e5-small")
    model = AutoModel.from_pretrained("sdadas/mmlw-e5-small")
  • Notebooks
  • Google Colab
  • Kaggle
mmlw-e5-small
964 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 8 commits
sdadas's picture
sdadas
Update README.md
2c03d4d verified 3 months ago
  • 1_Pooling
    Upload 10 files over 2 years ago
  • .gitattributes
    1.57 kB
    Upload 10 files over 2 years ago
  • README.md
    30.9 kB
    Update README.md 3 months ago
  • config.json
    681 Bytes
    Upload 10 files over 2 years ago
  • config_sentence_transformers.json
    127 Bytes
    Upload 10 files over 2 years ago
  • model.safetensors
    471 MB
    xet
    Adding `safetensors` variant of this model (#1) over 1 year ago
  • modules.json
    229 Bytes
    Upload 10 files over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    471 MB
    xet
    Upload 10 files over 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload 10 files over 2 years ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Upload 10 files over 2 years ago
  • special_tokens_map.json
    167 Bytes
    Upload 10 files over 2 years ago
  • tokenizer.json
    17.1 MB
    xet
    Upload 10 files over 2 years ago
  • tokenizer_config.json
    443 Bytes
    Upload 10 files over 2 years ago