Mistral-7B-Instruct-v0.3

mistralai

The Mistral-7B-Instruct-v0.3 Large Language Model is an instruct fine-tuned version of the Mistral-7B-v0.3.

Perfomance

Latency Benchmarks

We measured TPS (tokens per second) for each model size using 100 input tokens and 300 output tokens.

Latency Benchmarking

Latency Benchmark Results

Tokens per second for different model sizes on various GPUs.

GPU/Model SizeSMLXLOriginal
H10021319718014960
L40s7868614839
B200289287276256104
GeForce RTX 5090162N/AN/AN/A74

Benchmarking Methodology

The benchmarking was performed on a single GPU with a batch size of 1. Each model was run for 10 iterations, and the average latency was calculated.

Algorithm summary:
Load the Mistral-7B-Instruct-v0.3 model with the specified size (S, M, L, XL, original).
Move the model to the GPU.
Prepare a sample prompt for text generation.
Run the model for a number of iterations (e.g., 10) and measure the time taken for each iteration. On each iteration:
Synchronize the GPU to flush any previous operations.
Record the start time.
Generate the text using the model.
Synchronize the GPU again.
Record the end time and calculate the TTFT and TPS for that iteration.
Calculate the average TTFT and TPS over all iterations.