Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

intfloat
/
e5-base-v2

Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
English
bert
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
17

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

  • Libraries
  • sentence-transformers

    How to use intfloat/e5-base-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("intfloat/e5-base-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]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
e5-base-v2
2.19 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 14 commits
intfloat's picture
intfloat
tomaarsen's picture
tomaarsen HF Staff
Add exported openvino model 'openvino_model_qint8_quantized.xml' (#15)
f52bf8e verified about 1 year ago
  • 1_Pooling
    sentence_transformers (#5) almost 3 years ago
  • onnx
    Add exported onnx model 'model_O4.onnx' (#13) about 1 year ago
  • openvino
    Add exported openvino model 'openvino_model_qint8_quantized.xml' (#15) about 1 year ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    67.6 kB
    Update README.md over 2 years ago
  • config.json
    650 Bytes
    upload model weights almost 3 years ago
  • model.safetensors
    438 MB
    xet
    Adding `safetensors` variant of this model (#7) almost 3 years ago
  • modules.json
    387 Bytes
    sentence_transformers (#5) almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    upload model weights almost 3 years ago
  • sentence_bert_config.json
    57 Bytes
    sentence_transformers (#5) almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    upload model weights almost 3 years ago
  • tokenizer.json
    711 kB
    upload model weights almost 3 years ago
  • tokenizer_config.json
    314 Bytes
    upload model weights almost 3 years ago
  • vocab.txt
    232 kB
    upload model weights almost 3 years ago