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

aneforge
/
e5-small-v2

Sentence Similarity
ANEForge
Safetensors
sentence-transformers
bert
apple-neural-engine
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • ANEForge

    How to use aneforge/e5-small-v2 with ANEForge:

    # Run this model's encoder on the Apple Neural Engine, without CoreML.
    from aneforge.sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("aneforge/e5-small-v2")
    embeddings = model.encode(["Hello from the Neural Engine"], normalize_embeddings=True)
  • sentence-transformers

    How to use aneforge/e5-small-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("aneforge/e5-small-v2")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
e5-small-v2
134 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
sbryngelson's picture
sbryngelson
card: add the aneforge[models] install line to the snippet
b542b55 verified about 1 month ago
  • 1_Pooling
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • .gitattributes
    1.48 kB
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • README.md
    1.06 kB
    card: add the aneforge[models] install line to the snippet about 1 month ago
  • config.json
    615 Bytes
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • model.safetensors
    133 MB
    xet
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • modules.json
    387 Bytes
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • sentence_bert_config.json
    57 Bytes
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • special_tokens_map.json
    125 Bytes
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • tokenizer.json
    711 kB
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • tokenizer_config.json
    314 Bytes
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago
  • vocab.txt
    232 kB
    duplicate intfloat/e5-small-v2 weights, tagged for ANEForge about 1 month ago