Mathstral-7B-v0.1

Mistral AI (France) · Language (text)

🧠 7.3B📄 32K context🔓 Open weights (downloadable)⚖️ apache-2.0

Which way is for me?

💻 On my own computer

  1. Download and install LM Studio (free): lmstudio.ai
  2. In LM Studio open Search (the magnifier) and type exactly:
    lmstudio-community/mathstral-7B-v0.1-GGUF
  3. From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
  4. Press Download, then Load, and start talking in Chat.

Or, if you use Ollama, this one command is enough:

ollama run hf.co/lmstudio-community/mathstral-7B-v0.1-GGUF

🧑‍💻 For developers

vLLM

vllm serve mistralai/Mathstral-7B-v0.1

Transformers (Python)

from transformers import pipeline
pipe = pipeline("text-generation", model="mistralai/Mathstral-7B-v0.1")

llama.cpp

llama-server -hf lmstudio-community/mathstral-7B-v0.1-GGUF
Words used here
GGUF
The file format LM Studio, Ollama and llama.cpp use to run a model.
Quantization (Q4, Q8)
Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
VRAM
The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
Context
The most text the model can see at once in a conversation (questions, answers and files).
Tokens per second
How fast the answer is written; 20 is about reading speed, 5 is slow.

From the Hugging Face model card

Mathstral 7B is a model specializing in mathematical and scientific tasks, based on Mistral 7B. You can read more in the official blog post.

Benchmarks (from the model card)

:---:---::---::---::---::---::---:
Mathstral 7B56.677.137.256.942.42/30
DeepSeek Math 7B44.480.627.644.628.00/30
Llama3 8B28.475.424.026.234.40/30
GLM4 9B50.248.818.946.236.01/30
QWen2 7B56.832.724.858.535.22/30
Gemma2 9B48.369.518.652.331.21/30

Source: Hugging Face · mistralai/Mathstral-7B-v0.1 · License: apache-2.0

Hardware and running it

Local Weights are published and it runs on your own hardware.

Minimum Q4
4.9 GB
Recommended Q8
8.7 GB
Full quality FP16
17.4 GB

On common hardware

RTX 4060 · 8 GBUsableQ4 · ≈ 24–40 tokens/s
RTX 4090 · 24 GBGreatFP16 · ≈ 25–42 tokens/s
RTX 5090 · 32 GBGreatFP16 · ≈ 44–74 tokens/s
Mac M4 Max · 128 GBUsableFP16 · ≈ 14–23 tokens/s
H100 · 80 GBGreatFP16 · ≈ 83–140 tokens/s
8× H100 · 640 GBGreatFP16 · ≈ 670–1,110 tokens/s

Speeds are estimates. estimated speed for one user, from memory bandwidth

Links come from the vendor's official site and the model card the vendor published · Updated: