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

mlx-community
/
bge-small-en-v1.5-bf16

Feature Extraction
sentence-transformers
Safetensors
Transformers
MLX
English
bert
sentence-similarity
mteb
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/bge-small-en-v1.5-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use mlx-community/bge-small-en-v1.5-bf16 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("mlx-community/bge-small-en-v1.5-bf16")
    
    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]
  • Transformers

    How to use mlx-community/bge-small-en-v1.5-bf16 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="mlx-community/bge-small-en-v1.5-bf16")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("mlx-community/bge-small-en-v1.5-bf16")
    model = AutoModel.from_pretrained("mlx-community/bge-small-en-v1.5-bf16", device_map="auto")
  • MLX

    How to use mlx-community/bge-small-en-v1.5-bf16 with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir bge-small-en-v1.5-bf16 mlx-community/bge-small-en-v1.5-bf16
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • Atomic Chat
bge-small-en-v1.5-bf16
67.8 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
prince-canuma's picture
prince-canuma
Upload folder using huggingface_hub
0e41503 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    61.2 kB
    Upload folder using huggingface_hub over 1 year ago
  • config.json
    722 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • config_sentence_transformers.json
    124 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • model.safetensors
    66.7 MB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • model.safetensors.index.json
    14.8 kB
    Upload folder using huggingface_hub over 1 year ago
  • modules.json
    349 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • sentence_bert_config.json
    52 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • special_tokens_map.json
    695 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer.json
    711 kB
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer_config.json
    1.27 kB
    Upload folder using huggingface_hub over 1 year ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub over 1 year ago