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

BAAI
/
bge-small-en

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

Instructions to use BAAI/bge-small-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use BAAI/bge-small-en with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="BAAI/bge-small-en")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-small-en")
    model = AutoModel.from_pretrained("BAAI/bge-small-en")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
bge-small-en
268 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 23 commits
Shitao's picture
Shitao
Update README.md
2275a7b over 2 years ago
  • 1_Pooling
    upload almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    90.8 kB
    Update README.md over 2 years ago
  • config.json
    684 Bytes
    Update config.json almost 3 years ago
  • config_sentence_transformers.json
    124 Bytes
    upload almost 3 years ago
  • model.safetensors
    133 MB
    xet
    Adding `safetensors` variant of this model (#4) almost 3 years ago
  • modules.json
    349 Bytes
    update over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    134 MB
    xet
    upload almost 3 years ago
  • sentence_bert_config.json
    52 Bytes
    upload almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    upload almost 3 years ago
  • tokenizer.json
    711 kB
    upload almost 3 years ago
  • tokenizer_config.json
    366 Bytes
    Fix `model_max_length` in `tokenizer_config.json` (#5) almost 3 years ago
  • vocab.txt
    232 kB
    upload almost 3 years ago