e5-mistral-7b-instruct
This repository contains
intfloat/e5-mistral-7b-instruct
together with a Furiosa Executable Bundle (FXB) for running it on
FuriosaAI RNGD with
Furiosa-LLM.
The same model also runs on other frameworks (such as Sentence Transformers and
Transformers); for usage with those, see the upstream
intfloat/e5-mistral-7b-instruct
model card.
Overview
E5-Mistral-7B-Instruct is an instruction-aware text-embedding model built by
fine-tuning the dense Mistral-7B-v0.1 decoder backbone. It produces
4,096-dimensional dense embeddings through last-token pooling and L2
normalization for retrieval and semantic similarity tasks. Although it was
fine-tuned on multilingual data, the upstream model card recommends it
primarily for English. Its intended use is the same as the upstream
intfloat/e5-mistral-7b-instruct,
and it is released under the MIT License.
- Architecture: Mistral (dense decoder backbone),
MistralModel
- Input / Output: Text / Dense embeddings (vector)
- Supported Inference Engine: Furiosa LLM
- Supported Hardware: FuriosaAI RNGD
Quantization
No quantization β the model uses its upstream FP16 weights.
Parallelism Strategy
On RNGD, e5-mistral-7b-instruct runs with a tensor-parallel size of 8 PEs,
which maps to a single RNGD card (8 PEs per card).
Usage
To run this model with Furiosa-LLM, follow the examples below after
installing Furiosa-LLM and its prerequisites.
You can use the model either online through the OpenAI-compatible server or
offline through the Furiosa-LLM Python API.
Launch the server
Serve the model by passing its furiosa-ai/<repo> identifier:
When the server is ready, you will see:
Basic Usage
The server exposes an OpenAI-compatible /v1/embeddings endpoint. E5-Mistral
is instruction-aware: prepend a one-sentence task description to each query in
the Instruct: ...\nQuery: ... format, and do not add the instruction to
documents. For more details, see the
upstream model card.
Request embeddings with curl:
Because the endpoint is OpenAI-compatible, you can also use the OpenAI Python
client:
Advanced Usage
For offline use, load the model with the LLM constructor (the FXB shipped in
the repo is discovered automatically) and call embed to obtain L2-normalized
dense vectors. Their dot product is therefore the cosine similarity:
Learn more