Feature Extraction
sentence-transformers
PyTorch
Safetensors
Transformers
English
mistral
mteb
Eval Results (legacy)
Eval Results
text-embeddings-inference
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")# pip install -U transformers accelerate # 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
Upload lora adapter weights
Browse filesFiles changed (2)
- lora/adapter_config.jsonAdded+26
- lora/adapter_model.binAdded+3
1234567891011121314151617181920212223242526{ "auto_mapping": null, "base_model_name_or_path": "mistralai/Mistral-7B-v0.1", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "lora_alpha": 32, "lora_dropout": 0.1, "modules_to_save": null, "peft_type": "LORA", "r": 16, "revision": null, "target_modules": [ "q_proj", "k_proj", "v_proj", "o_proj", "down_proj", "up_proj", "gate_proj" ], "task_type": "FEATURE_EXTRACTION"}123version https://git-lfs.github.com/spec/v1oid sha256:392e207aa4cf17c50ac8f2f50d6ffc6241f8aca5cb2bbdc9611e6786b37ad4cdsize 167924621lora/adapter_config.jsonAdded+26
lora/adapter_model.binAdded+3