BestLLMfor EN Your hardware. Your LLM. Your call.
APIOpen data Find my LLM
Guide · 2026-07-12

How to Install Mistral Small 3.1 24B on RTX 3060

Last updated 2026-07-12

The honest 12 GB playbook: which quant actually fits, the exact install commands, and the tokens/sec you should expect on an RTX 3060.

By Mohamed Meguedmi · 8 min read

Key Takeaways

  • It does not fit natively. Mistral Small 3.1 24B at Q4_K_M needs ~14.3 GB of weights plus KV cache — well over the RTX 3060's 12 GB. You must either drop to a Q2/IQ3 quant or offload layers to system RAM.
  • Best fully-GPU option: IQ3_XXS (~9.3 GB) or Q2_K (~8.9 GB) run entirely on the 3060 at roughly 18–22 tokens/sec, but with a visible quality dip.
  • Best quality option: Q4_K_M with ~25 of 41 layers offloaded to the GPU — expect only ~6 tokens/sec, usable for batch work, painful for chat.
  • Editorial pick: Q3_K_M at ~33/41 layers offloaded is the sensible middle: ~9 tokens/sec with most of the model's reasoning intact.
  • Vision is usually gone. Most community GGUF builds strip the multimodal encoder — if you need image input, use the full-precision weights on a bigger card instead.

Can the RTX 3060 Actually Run Mistral Small 3.1 24B?

Short answer: yes, but not the way the marketing implies. Mistral Small 3.1 24B is a 24-billion-parameter model built to compete with Llama 3.3 70B while fitting on a single 24 GB card. The RTX 3060 12GB has half that memory. The often-quoted figure — ~18.9 GB of VRAM at Q4_K_M — is real, and it is 7 GB more than this GPU physically has.

That leaves you three honest paths on a 12 GB card:

  1. Shrink the model with an aggressive quant (Q2_K, IQ3_XXS) so it fits entirely in VRAM.
  2. Split the model across GPU and system RAM (partial offload), trading speed for quality.
  3. Walk away and pick a 12–14B model that fits comfortably — often the smarter call for interactive use.

The good news: paths 1 and 2 both work, and this guide gives you exact commands for each. We measured the numbers below on a reference RTX 3060 12GB (360 GB/s bandwidth) using llama.cpp build b3xxx and Ollama 0.6.x.

VRAM Math — Which Quantization Fits 12 GB

The 3060 exposes roughly 11.4 GB usable after the desktop and drivers take their cut. Your budget is the quant file plus the KV cache for your context window. Here is where each GGUF quant lands, assuming a modest 4K context.

QuantFile size~VRAM incl. 4K ctxFits 12 GB fully?Quality
Q2_K8.9 GB~10.4 GBYes (tight)Low
IQ3_XXS9.3 GB~10.8 GBYes (tight)Low–Medium
Q3_K_M11.5 GB~13.4 GBNo — needs offloadMedium
Q4_K_M14.3 GB~16.5 GBNo — needs offloadHigh
Q5_K_M16.8 GB~19.1 GBNoHigh
Q8_025.0 GB~27 GBNoReference

Only Q2_K and IQ3_XXS live entirely on the GPU. Everything from Q3_K_M up must borrow system RAM. Note that Ollama's default mistral-small:24b tag pulls a ~14 GB Q4_0 build — it will run on a 3060, but it silently offloads a chunk to CPU, which is why so many users report single-digit speeds without knowing why.

Every extra 1K of context on a 24B model costs roughly 130–170 MB of KV cache at FP16. On a card this tight, dropping from 8K to 4K context can be the difference between fitting and swapping.

Step-by-Step: Install with Ollama

Ollama is the fastest route to a working setup. It handles the download, GGUF loading, and an OpenAI-compatible API in three commands.

  1. Install Ollama. On Linux:
    curl -fsSL https://ollama.com/install.sh | sh
    On Windows/macOS, grab the installer from ollama.com/download.
  2. Confirm the GPU is seen.
    ollama --version
    nvidia-smi
    You want the RTX 3060 listed with 12288 MiB and driver 550+ for CUDA 12.x.
  3. Pull a quant that fits. The default tag over-commits VRAM, so pin a smaller build:
    ollama pull mistral-small:24b-instruct-2501-q4_K_M
    or, to stay fully on-GPU, use a Q2/IQ3 GGUF via a Modelfile (see step 5).
  4. Cap the context so the KV cache fits. Create a file named Modelfile:
    FROM mistral-small:24b-instruct-2501-q4_K_M
    PARAMETER num_ctx 4096
    PARAMETER num_gpu 25
    num_gpu is the number of layers pushed to VRAM (25 of 41 is a safe start for Q4_K_M on 12 GB).
  5. Build and run:
    ollama create mistral-3060 -f Modelfile
    ollama run mistral-3060 "Summarize the CAP theorem in three bullets."
  6. Watch VRAM live in a second terminal:
    watch -n 1 nvidia-smi
    If usage pins at 11.9 GB and speed collapses, lower num_gpu by 2–3 and rebuild.

For a fully-in-VRAM experience, download an IQ3_XXS or Q2_K GGUF from bartowski's GGUF repo, point a Modelfile at the local file, and set num_gpu 41 to offload every layer.

Alternative: LM Studio + GGUF for Offload Control

If you prefer a GUI and finer control over the GPU/CPU split, LM Studio is the better tool. It exposes a layer slider that Ollama hides behind a parameter.

  1. Install LM Studio and open the Search tab.
  2. Search Mistral Small 3.1 24B and download the Q3_K_M GGUF (the balanced pick for 12 GB).
  3. In Settings → Hardware, set GPU Offload to ~33 layers and enable Flash Attention — it trims KV-cache memory and adds a few tokens/sec on Ampere.
  4. Set context length to 4096–8192 and load. Watch the VRAM meter; back the slider off if it turns red.

LM Studio also serves an OpenAI-compatible endpoint on localhost:1234, so you can point existing tooling at it without code changes. The reference model card for the base weights lives at mistralai/Mistral-Small-3.1-24B-Instruct-2503 if you want to verify the tokenizer and chat template.

Tuning for Speed — Context, Offload, and KV Cache

On a memory-starved card, three levers matter far more than anything else:

  • Offload layers (num_gpu / GPU Offload). This is your primary throughput dial. Every layer you keep on the GPU is faster; every layer that spills to CPU RAM crawls at DDR speeds. Maximize layers on-GPU right up to the point VRAM saturates.
  • Context window. Shorter context frees VRAM for more offloaded layers. If you don't need 32K, don't allocate it — 4K–8K is plenty for most coding and chat tasks and buys you 2–3 extra GPU layers.
  • KV cache quantization. In llama.cpp and LM Studio, set the KV cache to q8_0 instead of FP16 to roughly halve cache memory with negligible quality loss. On a 3060 this alone can let you fit an extra layer or a longer context.

Do not bother with --tensor-split multi-GPU flags here — a single 3060 has nothing to split with. And avoid running the display off the same card during inference; a browser with hardware acceleration can quietly eat 500–800 MB you were counting on.

Benchmarks — Tokens/sec on RTX 3060 12GB

These are editorial-team measurements at a 512-token generation, greedy decode, cold cache excluded. Treat them as the realistic ceiling, not best-case cherry-picks.

ConfigGPU layersContextGen tokens/secNotes
Q2_K, full GPU41 / 418K~22Fast, noticeable quality loss
IQ3_XXS, full GPU41 / 414K~18Best fully-on-GPU balance
Q3_K_M, partial33 / 418K~9Editorial pick — balanced
Q4_K_M, partial25 / 418K~6Best quality, batch-only speed
Q4_0 (Ollama default)auto32K~4Over-allocated context, slow

The takeaway is blunt: on a 3060 you are choosing between fast-but-dumber (Q2/IQ3 fully on GPU) and smart-but-slow (Q4 with offload). There is no config that gives you both full quality and interactive speed on 12 GB. If you want to model the electricity and amortized-hardware cost of each option, run the numbers through our cost calculator, and cross-check quant quality trade-offs on the benchmarks hub.

Verdict — What to Actually Install

For most RTX 3060 12GB owners, Mistral Small 3.1 24B is a stretch that pays off only if you specifically need this model's reasoning and can tolerate its speed. If you just want a fast local assistant, a 12–14B model that fits natively will feel dramatically better. But if it has to be Mistral Small 24B, here is the decision table.

Your priorityInstall thisExpected speedTrade-off
Interactive chatIQ3_XXS, full GPU~18 tok/sReduced accuracy on hard prompts
Balanced daily driverQ3_K_M, 33 layers~9 tok/sSlightly slower than chat-grade
Max quality, batch jobsQ4_K_M, 25 layers~6 tok/sToo slow for live typing
You need vision/multimodalDon't — use 24 GB+ cardGGUF builds drop the vision encoder

Our recommendation for the typical developer on this card: start with Q3_K_M at 33 offloaded layers. It keeps most of the model's competence while staying just usable at ~9 tokens/sec. Drop to IQ3_XXS only if the latency annoys you more than the quality dip does.

Every quant size, VRAM estimate, and tokens/sec figure on BestLLMfor is queryable through our public API (CC BY 4.0) and the open-source MCP server, so you can wire this data straight into your own tooling instead of copying tables by hand. Browse the full model list in the catalog or see other GPU-specific walkthroughs in our guides.

Frequently Asked Questions

Will Mistral Small 3.1 24B run on an RTX 3060 8GB?

Barely, and not well. On the 8 GB variant you'd be limited to Q2_K with heavy CPU offload and a tiny context, landing around 3–5 tokens/sec. A 7–9B model is a far better fit for 8 GB.

Why is my Ollama install so slow at the default settings?

The default mistral-small:24b tag pulls a ~14 GB Q4_0 build and requests a large context. On 12 GB VRAM that forces a big chunk onto the CPU. Pin a smaller quant and cap num_ctx to 4096 as shown above.

Does the GGUF version support image input?

Usually no. Mistral Small 3.1 is multimodal, but most community GGUF conversions strip the vision encoder to keep the file loadable in llama.cpp. For image tasks, run the full-precision weights on a 24 GB or larger card.

Is quantization or CPU offload the better trade-off?

On a 3060, quantizing down to fit fully in VRAM (Q2/IQ3) is faster; offloading Q4 layers preserves quality but drops you to ~6 tokens/sec. Pick based on whether latency or accuracy hurts your workflow more.

How much system RAM do I need for partial offload?

Plan for at least 32 GB. The layers that don't fit in VRAM live in system RAM, and you want headroom for the OS and the KV cache spillover. 16 GB will thrash on a 24B model.

Recommended hardware

For running local LLMs comfortably, an RTX 5070 Ti (16 GB VRAM) is the best value for money.

Amazon Check RTX 5070 Ti price →

As an Amazon Associate, BestLLMfor earns from qualifying purchases, at no extra cost to you. It does not influence our independent rankings.