SAVRN
Search Contact SAVRN

Open-weight model · Text generation

Mistral-7B-Instruct-v0.2

by Mistral AI_ mistralai/Mistral-7B-Instruct-v0.2

The Mistral-7B-Instruct-v0.2 Large Language Model (LLM) is an instruct fine-tuned version of the Mistral-7B-v0.2.

Parameters7.2B
Context32,768
Weights29.5 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads1.8M

Runs On

What it takes to serve Mistral-7B-Instruct-v0.2 (7.2B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 14.5 GB 17.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 7.2 GB 8.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 3.6 GB 4.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on Mistral-7B-Instruct-v0.2

Pick this version over its predecessor for the window: 32,768 tokens of context against 8k in v0.1, with the RoPE base raised to 1e6, on a 7.2 billion parameter instruct model. At 16-bit the bfloat16 weights are 14.5 GB and the memory need is 17.4 GB. At $1.85 per hour on demand, the cheapest card we list, a single 192 GB MI300X, leaves most of its memory free for long prompts and batch. Quantized to 8-bit it needs 8.7 GB.

Apache 2.0 covers it, so commercial use, modification and redistribution are all on the table as long as the notices stay and significant changes are stated. Two things to check. Prompts must be wrapped in [INST] and [/INST] tokens, so your serving layer has to apply that template. And the one benchmark on file, 30.84 on MMLU-Pro, is third-party reported by EvalEval, not the publisher's number.

Model Card

By Mistral AI_, published under apache-2.0, revision 63a8b0818953.

Model Card for Mistral-7B-Instruct-v0.2

Encode and Decode with mistral_common

from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
from mistral_common.protocol.instruct.messages import UserMessage
from mistral_common.protocol.instruct.request import ChatCompletionRequest

mistral_models_path = "MISTRAL_MODELS_PATH"

tokenizer = MistralTokenizer.v1()

completion_request = ChatCompletionRequest(messages=[UserMessage(content="Explain Machine Learning to me in a nutshell.")])

tokens = tokenizer.encode_chat_completion(completion_request).tokens

Inference with mistral_inference

```py from mistral_inference.transformer import Transformer from mistral_inference.generate import generate

model = Transformer.from_folder(mistral_models_path) out_tokens, _ = generate([tokens], model, max_tokens=64, temperature=0.0, eos_id=tokenizer.instruct_tokenizer.tokenizer.eos_id)

result = tokenizer.decode(out_tokens[0])

print(result)


## Inference with hugging face `transformers`

```py
from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
model.to("cuda")

generated_ids = model.generate(tokens, max_new_tokens=1000, do_sample=True)

# decode with mistral tokenizer
result = tokenizer.decode(generated_ids[0].tolist())
print(result)

[!TIP] PRs to correct the transformers tokenizer so that it gives 1-to-1 the same results as the mistral_common reference implementation are very welcome!

The Mistral-7B-Instruct-v0.2 Large Language Model (LLM) is an instruct fine-tuned version of the Mistral-7B-v0.2.

Mistral-7B-v0.2 has the following changes compared to Mistral-7B-v0.1 - 32k context window (vs 8k context in v0.1) - Rope-theta = 1e6 - No Sliding-Window Attention

Read the full model card (544 words)

Configuration

Architecture
MistralForCausalLM
Context length (tokens)
32,768
Layers
32
Hidden size
4,096
Feed-forward size
14,336
Attention heads
32
Key/value heads
8
Vocabulary size
32,000
RoPE base
1e+06
Stored precision
bfloat16
Model type
mistral

Identity and Version

Repository
mistralai/Mistral-7B-Instruct-v0.2
Publisher
Mistral AI_
Task
Text generation
Modality
Text
Library
transformers
Parameters
7.2B parameters
Languages
Not stated by the source
Revision
63a8b081895390a26e140280378bc85ec8bce07a
First published
2023-12-11
Last updated
2025-07-24

Files and Weights

16 files, 29.5 GB in total. The weights are 6 files totalling 29.5 GB in bin, safetensors.

Weights6 files · 29.5 GB
Configuration5 files · 50.2 KB
Tokenizer3 files · 2.3 MB
Documentation1 file · 5.5 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00003.safetensorsWeights4.9 GB 63654d601820
model-00002-of-00003.safetensorsWeights5.0 GB a42716540ecb
model-00003-of-00003.safetensorsWeights4.5 GB 5f86e15cb3ed
pytorch_model-00001-of-00003.binWeights4.9 GB d8836f675fe1
pytorch_model-00002-of-00003.binWeights5.0 GB 58a7ddffb463
pytorch_model-00003-of-00003.binWeights5.1 GB 75824d68dcf8
config.jsonConfiguration596 B
generation_config.jsonConfiguration111 B
model.safetensors.index.jsonConfiguration25.1 KB
pytorch_model.bin.index.jsonConfiguration23.9 KB
special_tokens_map.jsonConfiguration414 B
README.mdDocumentation5.5 KB
.gitattributesRepository1.5 KB
tokenizer.jsonTokenizer1.8 MB
tokenizer.modelTokenizer493.4 KB dadfd56d7667
tokenizer_config.jsonTokenizer2.1 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
29.5 GB
Download from Mistral AI_

Released by Mistral AI_ through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2310.06825

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
TIGER-Lab/MMLU-Pro Task mmlu_proMetric mmlu_proComparison conditions not established 30.84 EvalEval
Reported by a third party
Evaluated revision not stated 2026-06-30

Memory Requirements

PrecisionWeights in memory
As published29.5 GB
16-bit14.5 GB
8-bit7.2 GB
4-bit3.6 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Compare Mistral-7B-Instruct-v0.2

Questions About Mistral-7B-Instruct-v0.2

How much GPU memory does Mistral-7B-Instruct-v0.2 need?

About 17.4 GB at 16-bit and 4.3 GB at 4-bit: the weights (7.2B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Mistral-7B-Instruct-v0.2 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Mistral-7B-Instruct-v0.2 commercially?

Yes. Mistral-7B-Instruct-v0.2 is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Mistral-7B-Instruct-v0.2's context length?

32,768 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

pythia-6.9b

EleutherAI

The Pythia Scaling Suite is a collection of models developed to facilitate interpretability research (see paper). It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. We also provide 154 intermediate checkpoints per model, hosted on Hugging Face as branches. The Pythia model suite was deliberately designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream…

Open weights apache-2.0 7B parameters 2,048 tokens transformers

Model · Text generation

granite-4.0-h-tiny-w8a8-llmcompressor

AMD

ZenDNN v6.1.0 - ZenTorch v2.13.0.0 - PyTorch v2.13.0.0 - LLM Compressor v0.13.0 - vLLM v0.29.0 This is a quantized version of granite-4.0-h-tiny created by AMD using LLM Compressor (compressed-tensors) for ZenDNN-optimized CPU inference. The model was quantized from granite-4.0-h-tiny using LLM Compressor via the Round-to-Nearest (RTN) algorithm. This reduces the model weights from 12.9 GiB to 6.6 GiB on disk (~49% reduction). granite-4.0-h-tiny is a hybrid Mamba-MoE model: of its 40 layers, 4 are full-attention blocks and the other 36 are Mamba (linear-attention) blocks, and every layer carries a 64-expert MoE block alongside a shared MLP. The recipe only needs two ignore entries. lmhead…

Open weights apache-2.0 6.9B parameters 131,072 tokens transformers

Model · Text generation

deepseek-coder-7b-instruct-v1.5

DeepSeek

Deepseek-Coder-7B-Instruct-v1.5 is continue pre-trained from Deepseek-LLM 7B on 2T tokens by employing a window size of 4K and next token prediction objective, and then fine-tuned on 2B tokens of instruction data. Here give some examples of how to use our model. This code repository is licensed under the MIT License. The use of DeepSeek Coder models is subject to the Model License. DeepSeek Coder supports commercial use. See the LICENSE-MODEL for more details. If you have any questions, please raise an issue or contact us at [email protected].

Open weights other 6.9B parameters 4,096 tokens transformers

Model · Text generation

Qwen2.5-7B-Instruct

Qwen

Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters. Qwen2.5 brings the following improvements upon Qwen2: - Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains. - Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and…

Open weights apache-2.0 7.6B parameters 32,768 tokens transformers

Model · Text generation

Qwen2.5-7B-Instruct-AWQ

Qwen

Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters. Qwen2.5 brings the following improvements upon Qwen2: - Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains. - Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and…

Open weights apache-2.0 7.6B parameters 32,768 tokens transformers

Model · Text generation

Qwen2.5-Coder-7B-Instruct

Qwen

Qwen2.5-Coder is the latest series of Code-Specific Qwen large language models (formerly known as CodeQwen). As of now, Qwen2.5-Coder has covered six mainstream model sizes, 0.5, 1.5, 3, 7, 14, 32 billion parameters, to meet the needs of different developers. Qwen2.5-Coder brings the following improvements upon CodeQwen1.5: - Significantly improvements in code generation, code reasoning and code fixing. Base on the strong Qwen2.5, we scale up the training tokens into 5.5 trillion including source code, text-code grounding, Synthetic data, etc. Qwen2.5-Coder-32B has become the current state-of-the-art open-source codeLLM, with its coding abilities matching those of GPT-4o. - A more…

Open weights apache-2.0 7.6B parameters 32,768 tokens transformers