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

ronanki
/
MiniLM-L12-v2-SEP-token

Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use ronanki/MiniLM-L12-v2-SEP-token with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ronanki/MiniLM-L12-v2-SEP-token with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("ronanki/MiniLM-L12-v2-SEP-token")
    model = AutoModel.from_pretrained("ronanki/MiniLM-L12-v2-SEP-token")
  • Notebooks
  • Google Colab
  • Kaggle
MiniLM-L12-v2-SEP-token
503 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
avinash ronanki
Add new SentenceTransformer model.
cd471bb over 3 years ago
  • 1_Pooling
    Add new SentenceTransformer model. over 3 years ago
  • .gitattributes
    1.54 kB
    Add new SentenceTransformer model. over 3 years ago
  • README.md
    3.9 kB
    Add new SentenceTransformer model. over 3 years ago
  • config.json
    695 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    471 MB
    xet
    Add new SentenceTransformer model. over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • special_tokens_map.json
    280 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model. over 3 years ago
  • tokenizer_config.json
    566 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • unigram.json
    14.8 MB
    xet
    Add new SentenceTransformer model. over 3 years ago