Mistral 7B: Open Source Language Model
Updated: November 2, 2026
Mistral 7B is the first model Mistral AI released, on 27 September 2023, under the Apache 2.0 licence. It has 7.3 billion parameters, and the current v0.3 build is a 4.4 GB download with ollama run mistral that runs on an 8 GB graphics card or a CPU-only machine with 8 GB of RAM. It is an older model now: Mistral's own Nemo model card calls Nemo a drop-in replacement. This page gives the hardware it needs, its exact architecture, the dates and licence, and the numbers Mistral AI published for it.
Mistral 7B system requirements
The default Mistral 7B download is a 4.4 GB Q4_K_M file that needs about 5.9 GB of memory with a 4K context: an 8 GB graphics card runs it comfortably, a 6 GB card only just, and a CPU-only machine needs 8 GB of RAM. Using the full 32K context adds about 3.8 GB, which moves the same file onto a 12 GB card. Q8_0 (7.7 GB) wants a 12 GB card and the unquantised fp16 file (14 GB) wants a 24 GB card.
Sizes are the download sizes on Ollama's mistral tag list. The memory columns are arithmetic, not measurements: file size, plus the key-value cache, plus a 1 GB allowance for compute buffers. With 32 layers and 8 key-value heads of dimension 128, the cache costs 2 × 32 × 1,024 × 2 bytes = 131 KB per token, which is 0.5 GB at 4,096 tokens and 4.3 GB at 32,768. Grouped-query attention is why that figure is a quarter of what a 32-head cache would cost.
| Quantisation | Ollama tag | Download | Memory at 4K | Memory at 32K | Fits |
|---|---|---|---|---|---|
| q2_K | mistral:7b-instruct-v0.3-q2_K | 2.7 GB | ~4.2 GB | ~8.0 GB | 6 GB card |
| q3_K_M | mistral:7b-instruct-v0.3-q3_K_M | 3.5 GB | ~5.0 GB | ~8.8 GB | 6 GB card |
| q4_0 | mistral:7b-instruct-v0.3-q4_0 | 4.1 GB | ~5.6 GB | ~9.4 GB | 6 GB card; 8 GB of system RAM on CPU |
| Q4_K_M (what mistral pulls) | mistral:7b-instruct-v0.3-q4_K_M | 4.4 GB | ~5.9 GB | ~9.7 GB | 8 GB card; a 6 GB card with almost nothing to spare |
| Q5_K_M | mistral:7b-instruct-v0.3-q5_K_M | 5.1 GB | ~6.6 GB | ~10.4 GB | 8 GB card |
| Q6_K | mistral:7b-instruct-v0.3-q6_K | 5.9 GB | ~7.4 GB | ~11.2 GB | 8 GB card at 4K; 12 GB card at 32K |
| Q8_0 | mistral:7b-instruct-v0.3-q8_0 | 7.7 GB | ~9.2 GB | ~13.0 GB | 12 GB card at 4K; 16 GB card at 32K |
| fp16 | mistral:7b-instruct-v0.3-fp16 | 14 GB | ~15.5 GB | ~19.3 GB | 24 GB card (16 GB is too tight) |
By graphics card
- 8 GB card: Q4_K_M, Q5_K_M or Q6_K at a 4K context. This is the natural home for Mistral 7B.
- 12 GB card: Q8_0 at 4K, or Q4_K_M through Q6_K with the full 32K context.
- 16 GB card: Q8_0 with the full 32K context (about 13 GB needed).
- 24 GB card: fp16 fits, but a 24 GB card holds much larger models; see the successors section below.
- No GPU: 8 GB of system RAM covers q4_0 and Q4_K_M at 4K; 16 GB covers everything up to Q8_0.
Measured on an Apple M3 Pro (18 GB): 2 November 2026
mistral:7b generated 29.0 tokens per second on the one machine we own, an Apple M3 Pro (18 GB). The rest of the table is the same run, so you can see where it sits against the other small models.
| Model (Ollama tag) | Params | Quant | File | Measured tok/s | Run spread | Ceiling | Share | Date |
|---|---|---|---|---|---|---|---|---|
llama3.2:3b | 3.2B | Q4_K_M | 2.02 GB | 55.6 | 53.4–55.8 | 74 | 75% | 2026-11-02 |
qwen2.5-coder:3b-base | 3.1B | Q4_K_M | 1.93 GB | 55.0 | 53.8–56.6 | 78 | 71% | 2026-11-02 |
qwen3:4b | 4.0B | Q4_K_M | 2.50 GB | 44.7 | 44.1–44.8 | 60 | 75% | 2026-11-02 |
phi4-mini | 3.8B | Q4_K_M | 2.49 GB | 43.7 | 42.8–45.2 | 60 | 73% | 2026-11-02 |
mistral:7b | 7.2B | Q4_K_M | 4.37 GB | 29.0 | 29.0–29.0 | 34 | 84% | 2026-11-02 |
qwen2.5-coder:7b | 7.6B | Q4_K_M | 4.68 GB | 29.0 | 28.9–29.0 | 32 | 90% | 2026-11-02 |
llama3.1:8b | 8.0B | Q4_K_M | 4.92 GB | 27.2 | 26.9–27.4 | 30 | 89% | 2026-11-02 |
deepseek-r1:8b | 8.2B | Q4_K_M | 5.23 GB | 25.4 | 25.4–25.5 | 29 | 89% | 2026-11-02 |
qwen3:8b | 8.2B | Q4_K_M | 5.23 GB | 25.3 | 25.2–25.3 | 29 | 88% | 2026-11-02 |
gemma3:12b | 11.8B | Q4_K_M | 7.31 GB | 16.7 | 16.1–16.8 | 21 | 81% | 2026-11-02 |
deepseek-r1:14b | 14.8B | Q4_K_M | 8.99 GB | 14.7 | 14.6–14.8 | 17 | 88% | 2026-11-02 |
qwen2.5-coder:14b | 14.8B | Q4_K_M | 8.99 GB | 14.5 | 14.4–14.6 | 17 | 87% | 2026-11-02 |
qwen3:14b | 14.8B | Q4_K_M | 9.28 GB | 14.5 | 14.4–14.5 | 16 | 90% | 2026-11-02 |
Also measured: mistral:7b 53.2 tok/s on the NVIDIA L4 (24 GB) (rented cloud VM, Ollama 0.40.13, 2026-11-03).
Apple M3 Pro, 18 GB unified memory, Ollama 0.40.13, macOS 27.0.1 (Darwin 27.0.0, arm64), Metal. Median generation rate of 6 runs after a discarded warm-up, computed from Ollama's raw eval_count and eval_duration over its HTTP API (not scraped from the terminal); any run that produced fewer than 30 tokens is thrown out rather than averaged. The same prompt, 7 runs, for every model. Ceiling = 150 GB/s (Apple's figure for the M3 Pro) ÷ the file size Ollama downloaded. One machine is a data point, not a survey; download the script (MIT) if you want the same table for yours. Thinking models (qwen3, deepseek-r1) are timed over every token they emit, reasoning included. Every row is in the open benchmark dataset, with how each row is measured.
Ollama's context-length documentation gives a 4K default below 24 GiB of VRAM, so the “Memory at 4K” column is what a default session uses. The Ollama system requirements guide covers the runtime itself, the VRAM calculator does this sum for other models, and quantization explained covers what each quantisation level gives up.
Mistral 7B release date, versions and licence
Mistral 7B was released on 27 September 2023. It is open-weight under the Apache 2.0 licence, which permits commercial use, modification and redistribution. Mistral AI's announcement post puts it this way: “We're releasing Mistral 7B under the Apache 2.0 license, it can be used without restrictions.” The paper followed on arXiv on 10 October 2023.
| Version | Date on Ollama's library page | Context | Changes (from each model card) |
|---|---|---|---|
| v0.1 | 27 September 2023 | 8K | Initial release. Grouped-query attention, sliding-window attention with a 4,096-token window, byte-fallback BPE tokenizer |
| v0.2 | 23 March 2024 | 32K | 32K context window, rope-theta 1e6, sliding-window attention removed |
| v0.3 | 22 May 2024 | 32K | Vocabulary extended to 32,768, v3 tokenizer, function calling |
Is Mistral 7B open source? The weights and the reference inference code are Apache 2.0, which is an OSI-approved licence. The training data and training code were not published, so “open-weight” is the more precise description. Each version exists as a base (text completion) model and an Instruct model; the Instruct vs base section below explains which one you are getting. Note that the base model card states it “does not have any moderation mechanisms”.
Mistral 7B Instruct vs the base model
If you want to chat with Mistral 7B, you want the Instruct model, and that is what ollama run mistral gives you. The base model only continues text; it is the starting point for your own fine-tune or for plain completion tasks.
- What Instruct is: the v0.1 Instruct model card describes it as an instruct fine-tune of the base model “using a variety of publicly available conversation datasets”. The architecture and the memory it needs are the same as the base model, so the hardware table above applies to both.
- Prompt format: Instruct expects each user turn wrapped in
[INST]and[/INST]tokens. Ollama applies this template for you; you only need it when you call the raw model through Transformers or llama.cpp. - Moderation: neither variant has a built-in safety layer. Both model cards say the model “does not have any moderation mechanisms”, so add your own filtering if the output reaches end users.
- Reported chat score: the paper gives Mistral 7B Instruct an MT-Bench score of 6.84. The benchmark table further down is for the base model.
| You want | Ollama tag | Download |
|---|---|---|
| Chat, Q&A, function calling (Instruct v0.3) | mistral | 4.4 GB |
| Instruct at q4_0, the smaller file | mistral:instruct | 4.1 GB |
| Raw text completion, or a base for fine-tuning | mistral:text | 4.1 GB |
Mistral 7B architecture: exact specifications
Mistral 7B is a decoder-only transformer. The table is Table 1 of the Mistral 7B paper (Jiang et al., 2023), which describes v0.1; the last column notes where later versions differ, from their config.json files and model cards. The published weights hold 7,241,732,096 parameters, which Mistral AI rounds to 7.3B in the announcement.
| Parameter | Value | Meaning |
|---|---|---|
dim | 4096 | Hidden (embedding) dimension |
n_layers | 32 | Transformer layers |
head_dim | 128 | Dimension of each attention head |
hidden_dim | 14336 | Feed-forward (FFN) inner dimension |
n_heads | 32 | Attention (query) heads |
n_kv_heads | 8 | Key-value heads, shared 4 query heads to 1 (grouped-query attention) |
window_size | 4096 | Sliding-window attention span, v0.1 only |
context_len | 8192 | Context length of v0.1; v0.2 and v0.3 are 32,768 |
vocab_size | 32000 | Vocabulary of v0.1 and v0.2; v0.3 extends it to 32,768 |
Grouped-query attention (GQA)
The model has 32 query heads but only 8 key-value heads, so every four query heads share one set of keys and values. The announcement lists this as the change made “for faster inference”. For anyone running the model locally the practical effect is the smaller cache worked out in the hardware section above.
Sliding-window attention (SWA)
In v0.1, each layer attends only to the previous 4,096 hidden states rather than to the whole sequence. Because layers are stacked, information still travels further back than one window: a token at layer k attends to tokens within the window at layer k−1, which themselves attended to earlier tokens. The announcement gives the motivation as a compute cost that is linear in sequence length, and reports “a 2x speed improvement for sequence length of 16k with a window of 4k” from the matching changes to FlashAttention and xFormers.
Sliding-window attention is not in the version most people run today. The v0.2 model card lists “No Sliding-Window Attention” among its changes, and the v0.2 and v0.3 configuration files set sliding_window to null with a 32,768-token position limit. If you pull mistral from Ollama you get v0.3, which uses ordinary full attention over a 32K context.
Reported benchmarks
These are Mistral AI's own figures from Table 2 of the paper, for the v0.1 base model. Mistral AI re-evaluated every model in the table with its own pipeline; this site has not run them. The paper also reports an MT-Bench score of 6.84 for Mistral 7B Instruct against 6.65 for Llama 2 13B Chat.
| Model | MMLU | HellaSwag | ARC-c | TriviaQA | HumanEval | MBPP | GSM8K |
|---|---|---|---|---|---|---|---|
| Mistral 7B | 60.1% | 81.3% | 55.5% | 69.9% | 30.5% | 47.5% | 52.2% |
| Llama 2 13B | 55.6% | 80.7% | 48.8% | 69.6% | 18.9% | 35.4% | 34.3% |
| Llama 2 7B | 44.4% | 77.1% | 43.2% | 63.8% | 11.6% | 26.1% | 16.0% |
| Code Llama 7B | 36.9% | 62.9% | 34.5% | 34.9% | 31.1% | 52.5% | 20.8% |
The headline claim in 2023 was that a 7B model beat Llama 2 13B, a model nearly twice its size, on every benchmark in the table. That comparison is against 2023 models. Microsoft's later evaluation on the Phi-3 Mini model card scores Mistral 7B v0.1 at 61.7 on MMLU against 70.9 for the 3.8B Phi-3 Mini, so smaller models have since passed it on reasoning benchmarks.
Run Mistral 7B locally
Ollama is the shortest route. Every tag below was checked against the tag list on 29 September 2026. mistral, mistral:latest, mistral:7b and mistral:v0.3 are the same 4.4 GB build.
# Install Ollama (Linux; macOS and Windows use the installer from ollama.com)
curl -fsSL https://ollama.com/install.sh | sh
# Mistral 7B Instruct v0.3, Q4_K_M, 4.4 GB
ollama pull mistral
ollama run mistral
# Higher precision for a 12 GB card, 7.7 GB
ollama pull mistral:7b-instruct-v0.3-q8_0
# The base text-completion model rather than the chat model, 4.1 GB
ollama pull mistral:text
# The original September 2023 release, 4.1 GB
ollama pull mistral:v0.1Raising the context above 4K
Ollama documents one environment variable for this. Check the memory column in the hardware table first, because the cache grows with the context you allocate.
# Serve with a 32K context (the maximum for v0.2 and v0.3)
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
# Confirm the allocated context and the GPU/CPU split
ollama psv0.3 supports function calling; the model card documents it for mistral_inference and for Transformers 4.42 or newer, and Ollama's library page shows the raw-mode prompt format. The Ollama function calling guide covers tool use across models.
What replaced Mistral 7B
Mistral AI has released several small open-weight models since. Licences differ between them, which matters if Apache 2.0 was the reason you chose Mistral 7B.
| Model | Licence | Context | Ollama download | Notes from its model card |
|---|---|---|---|---|
| Mistral 7B v0.3 (this page) | Apache 2.0 | 32K | mistral, 4.4 GB | — |
| Mistral Nemo 12B | Apache 2.0 | 128K | mistral-nemo, 7.1 GB | “Drop-in replacement of Mistral 7B”; trained with NVIDIA; MMLU 68.0% |
| Mistral Small 3.2 (24B) | Apache 2.0 | 128K | mistral-small3.2, 15 GB | More robust function calling than the previous Small release |
| Ministral 8B | Mistral AI Research License | See its page | Not checked | Not Apache 2.0: uses outside the research licence need a separate licence from Mistral AI |
On a 12 GB card, Mistral Nemo is the direct upgrade: same licence, four times the context, and a 7.1 GB download. On a 24 GB card, Mistral Small 3.2 at 15 GB is the current Apache-licensed choice. Mistral 7B still makes sense on a 6 GB or 8 GB card, on CPU-only machines, and as a base for the many community fine-tunes built on it, such as OpenHermes 2.5 (below). For how it sits against Meta's models of the same period, see Llama vs Mistral vs CodeLlama.
OpenHermes 2.5: the best-known Mistral 7B fine-tune
OpenHermes 2.5 is a community fine-tune of Mistral 7B by Teknium, released under Apache 2.0. Its model card says it was trained on 1,000,000 entries of mostly GPT-4-generated data plus filtered open datasets, with extra code data; the card reports HumanEval at 50.7% pass@1 (testing by the Glaive team, a different harness from the paper's). It uses the ChatML prompt format (<|im_start|> / <|im_end|>) rather than [INST], which Ollama handles for you. Memory needs are the same as Mistral 7B at the same quantisation.
# OpenHermes 2.5 Mistral 7B, q4_0, 4.1 GB
ollama run openhermes
# The same model at Q4_K_M, 4.4 GB
ollama run openhermes:7b-mistral-v2.5-q4_K_MIt dates from late 2023, so the newer Mistral releases in the table above are the better choice for most new projects; OpenHermes is still worth a try if you prefer ChatML or its writing style.
Frequently asked questions
Is the context window 8K or 32K?
Both figures are correct for different versions. The paper's architecture table gives v0.1 a context length of 8,192 with a 4,096-token sliding window. The v0.2 model card lists a “32k context window (vs 8k context in v0.1)”, and v0.3 keeps it. Ollama's default mistral tag is v0.3.
Is Mistral 7B the model in NVIDIA's Chat with RTX download?
Yes, it was one of the two. NVIDIA's February 2024 announcement names Mistral and Llama 2 as the models the demo connects to your files, and sets the requirement at a GeForce RTX 30 Series GPU or higher with at least 8 GB of VRAM on Windows 10 or 11. Tom's Hardware reported the installer at about 35 GB; NVIDIA's post does not state a size. That package bundles both models with a retrieval pipeline, which is why it is so much larger than the 4.4 GB Ollama download.
Which version should I pull: v0.1, v0.2 or v0.3?
v0.3 unless you have a reason not to. It has the 32K context and function calling, and it is what the untagged mistral resolves to. Pull v0.1 only to reproduce the paper's setup or to study sliding-window attention.
Can I use Mistral 7B in a commercial product?
Apache 2.0 allows it, including modified and fine-tuned versions, provided you keep the licence and notices. Community fine-tunes can carry their own terms, so check the card of any derivative you download.
How fast is it?
This page does not quote a tokens-per-second figure because none has been measured here, and speed depends on the card, the quantisation and the context length. The reliable rule is that the model must sit entirely in VRAM to run at GPU speed; run ollama ps and check that the processor column reads 100% GPU.
Sources
- Mistral 7B announcement, 27 September 2023Release date, licence statement, GQA and sliding-window attention
- Mistral 7B paper (arXiv:2310.06825)Architecture table and benchmark table
- Mistral-7B-v0.1 model cardBase model, licence, architecture choices
- Mistral-7B-Instruct-v0.2 model cardThe move to a 32K context and the removal of sliding-window attention
- Mistral-7B-Instruct-v0.3 model cardExtended vocabulary, v3 tokenizer, function calling
- Ollama mistral tag listEvery tag and its download size
- Mistral-Nemo-Instruct-2407 model cardThe “drop-in replacement” statement and Nemo's reported scores
Related resources
Build Real AI on Your Machine
RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.
Explore other models
Go from reading about AI to building with AI
25 structured courses. Hands-on projects. Runs on your machine. Start free.

Written by
Barsha Mohapatra
Founder and Editor, Local AI Master · Founder, Little AI Master
Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.
Related Guides
Continue your local AI journey with these comprehensive guides
Llama vs Mistral vs CodeLlama: Complete Comparison
Detailed comparison of popular model families including performance benchmarks.
Best Local AI Models for Programming
Programming-focused models including Mistral 7B and alternatives.
How Much RAM Do You Need for Local AI?
Hardware requirements guide for running Mistral 7B and similar models.
Best Local AI Models for 8GB RAM
Memory-efficient models including Mistral 7B optimizations.
Continue learning
Two hands-on tutorials that work with a model of this size.
- PILLARLocal AI Models Directory: Every Model Compared
- DeepSeek V4 Local Setup: 1M Context, MIT (2026)
- models/llama-3-1-8b
- models/deepseek-coder-v2-236b
- Nemotron 3.5 Lightning: 30B Agent Model on 32GB of RAM
- models/codellama-7b
- Bark by Suno AI: Open-Source Text-to-Audio Generation Guide
- models/llama-3-8b
- models/qwen-2-5-3b
- Gemma 3 270M: Run AI in 125MB - Google's Tiniest Model (2025)
Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide
No spam. Unsubscribe with one click.
Found your model? Now build something with it.
25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.