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
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
lmstudio-community/mathstral-7B-v0.1-GGUF - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- 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.1Transformers (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-GGUFWords 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 7B | 56.6 | 77.1 | 37.2 | 56.9 | 42.4 | 2/30 |
| DeepSeek Math 7B | 44.4 | 80.6 | 27.6 | 44.6 | 28.0 | 0/30 |
| Llama3 8B | 28.4 | 75.4 | 24.0 | 26.2 | 34.4 | 0/30 |
| GLM4 9B | 50.2 | 48.8 | 18.9 | 46.2 | 36.0 | 1/30 |
| QWen2 7B | 56.8 | 32.7 | 24.8 | 58.5 | 35.2 | 2/30 |
| Gemma2 9B | 48.3 | 69.5 | 18.6 | 52.3 | 31.2 | 1/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 GB | Usable | Q4 · ≈ 24–40 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 25–42 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 44–74 tokens/s |
| Mac M4 Max · 128 GB | Usable | FP16 · ≈ 14–23 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 83–140 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 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: