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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

haihengh
/
all-MiniLM-L6-v2-coreml

Feature Extraction
Core ML
sentence-transformers
English
coremltools
embeddings
on-device
ios
ane
Model card Files Files and versions
xet
Community

Instructions to use haihengh/all-MiniLM-L6-v2-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use haihengh/all-MiniLM-L6-v2-coreml with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("haihengh/all-MiniLM-L6-v2-coreml")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
all-MiniLM-L6-v2-coreml
91 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
haihengh's picture
haihengh
Add README with usage and accuracy details
c683f20 verified 1 day ago
  • all-minilm-l6-v2.mlmodelc
    Add compiled Core ML model (all-MiniLM-L6-v2, FP16, iOS18+) 1 day ago
  • all-minilm-l6-v2.mlpackage
    Add Core ML mlpackage (portable format) for all-MiniLM-L6-v2 1 day ago
  • tokenizer
    Add BERT WordPiece tokenizer for all-MiniLM-L6-v2 1 day ago
  • .gitattributes
    1.52 kB
    initial commit 1 day ago
  • README.md
    2.52 kB
    Add README with usage and accuracy details 1 day ago