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

intfloat
/
e5-mistral-7b-instruct

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

Instructions to use intfloat/e5-mistral-7b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use intfloat/e5-mistral-7b-instruct with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("intfloat/e5-mistral-7b-instruct")
    
    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 intfloat/e5-mistral-7b-instruct with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="intfloat/e5-mistral-7b-instruct")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("intfloat/e5-mistral-7b-instruct")
    model = AutoModel.from_pretrained("intfloat/e5-mistral-7b-instruct", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
e5-mistral-7b-instruct
28.8 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 12 commits
ktgiahieu's picture
ktgiahieu
Adding `safetensors` variant of this model
def1bc1 verified over 2 years ago
  • lora
    Adding `safetensors` variant of this model over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    176 kB
    Update README.md over 2 years ago
  • added_tokens.json
    42 Bytes
    upload model weights over 2 years ago
  • config.json
    629 Bytes
    upload model weights over 2 years ago
  • model-00001-of-00002.safetensors
    9.94 GB
    xet
    Adding `safetensors` variant of this model (#5) over 2 years ago
  • model-00002-of-00002.safetensors
    4.28 GB
    xet
    Adding `safetensors` variant of this model (#5) over 2 years ago
  • model.safetensors.index.json
    23.3 kB
    Adding `safetensors` variant of this model (#5) over 2 years ago
  • pytorch_model-00001-of-00002.bin
    9.94 GB
    xet
    upload model weights over 2 years ago
  • pytorch_model-00002-of-00002.bin
    4.28 GB
    xet
    upload model weights over 2 years ago
  • pytorch_model.bin.index.json
    22.2 kB
    upload model weights over 2 years ago
  • special_tokens_map.json
    168 Bytes
    upload model weights over 2 years ago
  • tokenizer.json
    1.8 MB
    upload model weights over 2 years ago
  • tokenizer.model
    493 kB
    xet
    upload model weights over 2 years ago
  • tokenizer_config.json
    956 Bytes
    upload model weights over 2 years ago