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

  • Log In
  • Sign Up

LLukas22
/
all-MiniLM-L12-v2-embedding-all

Sentence Similarity
sentence-transformers
PyTorch
TensorBoard
Transformers
English
German
bert
feature-extraction
Generated from Trainer
text-embeddings-inference
Model card Files Files and versions
xet
Metrics Training metrics Community
1

Instructions to use LLukas22/all-MiniLM-L12-v2-embedding-all with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use LLukas22/all-MiniLM-L12-v2-embedding-all with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("LLukas22/all-MiniLM-L12-v2-embedding-all")
    
    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 LLukas22/all-MiniLM-L12-v2-embedding-all with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("LLukas22/all-MiniLM-L12-v2-embedding-all")
    model = AutoModel.from_pretrained("LLukas22/all-MiniLM-L12-v2-embedding-all")
  • Notebooks
  • Google Colab
  • Kaggle
all-MiniLM-L12-v2-embedding-all
135 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
LLukas22's picture
LLukas22
Updated License
cdaa411 about 3 years ago
  • 1_Pooling
    Compatability with SentenceTransformers V2.2.2 about 3 years ago
  • lightning_logs
    Auto Upload about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • .gitignore
    33 Bytes
    Added .gitignore over 3 years ago
  • README.md
    3.44 kB
    Updated License about 3 years ago
  • config.json
    680 Bytes
    Auto Upload over 3 years ago
  • config_sentence_transformers.json
    135 Bytes
    Auto Upload about 3 years ago
  • modules.json
    229 Bytes
    Auto Upload over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    134 MB
    xet
    Auto Upload about 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Auto Upload over 3 years ago
  • special_tokens_map.json
    125 Bytes
    Auto Upload over 3 years ago
  • tokenizer.json
    712 kB
    Auto Upload over 3 years ago
  • tokenizer_config.json
    580 Bytes
    Auto Upload over 3 years ago
  • vocab.txt
    232 kB
    Auto Upload over 3 years ago