★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once

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.

7.3B
Parameters
32K
Context, v0.2 and v0.3 (8K in v0.1)
4.4 GB
mistral on Ollama
Apache 2.0
Licence

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.

QuantisationOllama tagDownloadMemory at 4KMemory at 32KFits
q2_Kmistral:7b-instruct-v0.3-q2_K2.7 GB~4.2 GB~8.0 GB6 GB card
q3_K_Mmistral:7b-instruct-v0.3-q3_K_M3.5 GB~5.0 GB~8.8 GB6 GB card
q4_0mistral:7b-instruct-v0.3-q4_04.1 GB~5.6 GB~9.4 GB6 GB card; 8 GB of system RAM on CPU
Q4_K_M (what mistral pulls)mistral:7b-instruct-v0.3-q4_K_M4.4 GB~5.9 GB~9.7 GB8 GB card; a 6 GB card with almost nothing to spare
Q5_K_Mmistral:7b-instruct-v0.3-q5_K_M5.1 GB~6.6 GB~10.4 GB8 GB card
Q6_Kmistral:7b-instruct-v0.3-q6_K5.9 GB~7.4 GB~11.2 GB8 GB card at 4K; 12 GB card at 32K
Q8_0mistral:7b-instruct-v0.3-q8_07.7 GB~9.2 GB~13.0 GB12 GB card at 4K; 16 GB card at 32K
fp16mistral:7b-instruct-v0.3-fp1614 GB~15.5 GB~19.3 GB24 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)ParamsQuantFileMeasured tok/sRun spreadCeilingShareDate
llama3.2:3b3.2BQ4_K_M2.02 GB55.653.4–55.87475%2026-11-02
qwen2.5-coder:3b-base3.1BQ4_K_M1.93 GB55.053.8–56.67871%2026-11-02
qwen3:4b4.0BQ4_K_M2.50 GB44.744.1–44.86075%2026-11-02
phi4-mini3.8BQ4_K_M2.49 GB43.742.8–45.26073%2026-11-02
mistral:7b7.2BQ4_K_M4.37 GB29.029.0–29.03484%2026-11-02
qwen2.5-coder:7b7.6BQ4_K_M4.68 GB29.028.9–29.03290%2026-11-02
llama3.1:8b8.0BQ4_K_M4.92 GB27.226.9–27.43089%2026-11-02
deepseek-r1:8b8.2BQ4_K_M5.23 GB25.425.4–25.52989%2026-11-02
qwen3:8b8.2BQ4_K_M5.23 GB25.325.2–25.32988%2026-11-02
gemma3:12b11.8BQ4_K_M7.31 GB16.716.1–16.82181%2026-11-02
deepseek-r1:14b14.8BQ4_K_M8.99 GB14.714.6–14.81788%2026-11-02
qwen2.5-coder:14b14.8BQ4_K_M8.99 GB14.514.4–14.61787%2026-11-02
qwen3:14b14.8BQ4_K_M9.28 GB14.514.4–14.51690%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.

VersionDate on Ollama's library pageContextChanges (from each model card)
v0.127 September 20238KInitial release. Grouped-query attention, sliding-window attention with a 4,096-token window, byte-fallback BPE tokenizer
v0.223 March 202432K32K context window, rope-theta 1e6, sliding-window attention removed
v0.322 May 202432KVocabulary 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 wantOllama tagDownload
Chat, Q&A, function calling (Instruct v0.3)mistral4.4 GB
Instruct at q4_0, the smaller filemistral:instruct4.1 GB
Raw text completion, or a base for fine-tuningmistral:text4.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.

ParameterValueMeaning
dim4096Hidden (embedding) dimension
n_layers32Transformer layers
head_dim128Dimension of each attention head
hidden_dim14336Feed-forward (FFN) inner dimension
n_heads32Attention (query) heads
n_kv_heads8Key-value heads, shared 4 query heads to 1 (grouped-query attention)
window_size4096Sliding-window attention span, v0.1 only
context_len8192Context length of v0.1; v0.2 and v0.3 are 32,768
vocab_size32000Vocabulary 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.

ModelMMLUHellaSwagARC-cTriviaQAHumanEvalMBPPGSM8K
Mistral 7B60.1%81.3%55.5%69.9%30.5%47.5%52.2%
Llama 2 13B55.6%80.7%48.8%69.6%18.9%35.4%34.3%
Llama 2 7B44.4%77.1%43.2%63.8%11.6%26.1%16.0%
Code Llama 7B36.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.1

Raising 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 ps

v0.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.

ModelLicenceContextOllama downloadNotes from its model card
Mistral 7B v0.3 (this page)Apache 2.032Kmistral, 4.4 GB—
Mistral Nemo 12BApache 2.0128Kmistral-nemo, 7.1 GB“Drop-in replacement of Mistral 7B”; trained with NVIDIA; MMLU 68.0%
Mistral Small 3.2 (24B)Apache 2.0128Kmistral-small3.2, 15 GBMore robust function calling than the previous Small release
Ministral 8BMistral AI Research LicenseSee its pageNot checkedNot 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_M

It 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

Reading now
Join the discussion

Related resources

LLMs you can run locally

Every model page on the site, by family

Browse all models →

AI hardware

What CPU, GPU and RAM a first local setup needs

Hardware guide →

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

🎯
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Barsha Mohapatra

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.

📅 Published: September 25, 2025🔄 Last Updated: November 2, 2026✓ Manually Reviewed
More on AI Models Directory
See the full AI Models Directory guide.
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators