❌ INSUFFICIENT VRAM ON SINGLE NVIDIA RTX 3060 12GB

Codestral-22B on NVIDIA RTX 3060 12GB (12GB VRAM)

Even in 4-bit Q4_K_M, Codestral-22B requires 16.27 GB VRAM (2x NVIDIA RTX 3060 12GB GPUs needed for full VRAM execution, or heavy CPU RAM offloading at ~2.1 tok/s).

🎛️ Interactive VRAM & KV-Cache Tuner

📊 Real-Time Memory Footprint

16.27 GB / 12 GB
🟦 Weights (13.86 GB) 🟪 KV Cache (1.75 GB) 🟨 Activation Buffer (0.66 GB)
Total Required VRAM16.27 GB
Available Hardware VRAM12 GB (NVIDIA RTX 3060 12GB)
VRAM Headroom / Overflow-4.27 GB
Estimated Generation Speed~2.1 tokens/sec
Architecture & AttentionDense-GQA (56L, 8 KV heads)

🚀 Ready-to-Run Launch Command

ollama run codestral:22b
# Or with llama.cpp server (8K context, Flash Attention):
llama-server -hf mistralai/Codestral-22B-v0.1-GGUF -c 8192 -ngl 99 -fa
CLOUD GPU ALTERNATIVE

Need 16.27 GB+ VRAM to run Codestral-22B?

Recommended cloud setup for 4-bit: RTX 4090 (24GB) (or 48.14 GB for full FP16). Spin up a pre-configured vLLM / Ollama instance in 60 seconds:

Provider Best For RTX 4090 (24GB) A100 (80GB) H100 (80GB) Bonus / Trial Action
RunPod 1-Click vLLM / Ollama Pods $0.44 / hr $1.39 / hr $2.39 / hr Instant PyTorch / vLLM Pods + Serverless GPU Deploy on RunPod →
Vast.ai Cheapest Spot GPU Market $0.29 / hr $0.95 / hr $1.79 / hr Save 50–70% on RTX 4090 / 5090 / A100 rentals Check Spot GPUs →
Vultr Cloud GPU Enterprise SLA & Bare Metal — $1.79 / hr $2.69 / hr $300 Free Credit for New Users Claim $300 Credit →
DigitalOcean GPU Droplets Managed H100 Droplets — — $2.99 / hr $200 Free Trial (60 Days) Get $200 Free →

All Quantization Formats: Codestral-22B on NVIDIA RTX 3060 12GB

Quantization Format Bits/Weight Weights VRAM KV Cache (8K) Total VRAM Fits on 1x NVIDIA RTX 3060 12GB (12GB)? Est. Speed GPUs Needed
FP16 / BF16 (Unquantized) 16 bpw 45.73 GB 1.75 GB 48.14 GB No (Over by 36.1GB) ~1.2 tok/s 5x NVIDIA RTX 3060 12GB
FP8 (W8A8 / E4M3) 8.5 bpw 24.3 GB 1.75 GB 26.71 GB No (Over by 14.7GB) ~1.2 tok/s 3x NVIDIA RTX 3060 12GB
GGUF Q8_0 (8-bit) 8.5 bpw 24.3 GB 1.75 GB 26.71 GB No (Over by 14.7GB) ~1.2 tok/s 3x NVIDIA RTX 3060 12GB
GGUF Q6_K (6-bit) 6.56 bpw 18.75 GB 1.75 GB 21.16 GB No (Over by 9.2GB) ~1.6 tok/s 2x NVIDIA RTX 3060 12GB
GGUF Q5_K_M (5-bit) 5.69 bpw 16.26 GB 1.75 GB 18.67 GB No (Over by 6.7GB) ~1.8 tok/s 2x NVIDIA RTX 3060 12GB
GGUF Q4_K_M / AWQ (4-bit) 4.85 bpw 13.86 GB 1.75 GB 16.27 GB No (Over by 4.3GB) ~2.1 tok/s 2x NVIDIA RTX 3060 12GB
GGUF IQ4_XS (4.25 bpw) 4.25 bpw 12.15 GB 1.75 GB 14.56 GB No (Over by 2.6GB) ~2.4 tok/s 2x NVIDIA RTX 3060 12GB
GGUF Q3_K_M (3-bit) 3.91 bpw 11.18 GB 1.75 GB 13.59 GB No (Over by 1.6GB) ~2.7 tok/s 2x NVIDIA RTX 3060 12GB

Frequently Asked Questions (Codestral-22B + NVIDIA RTX 3060 12GB)

Can NVIDIA RTX 3060 12GB (12GB) run Codestral-22B locally?

No — A single NVIDIA RTX 3060 12GB (12GB) cannot fit Codestral-22B in VRAM. Even in 4-bit Q4_K_M, Codestral-22B requires 16.27 GB VRAM (2x NVIDIA RTX 3060 12GB GPUs needed for full VRAM execution, or heavy CPU RAM offloading at ~2.1 tok/s).

How is KV Cache calculated for Codestral-22B?

Codestral-22B uses Dense-GQA with 56 transformer layers, 48 attention heads, and 8 KV heads (head dimension 128). At 8,192 tokens in FP16, KV cache consumes 1.75 GB. Enabling 8-bit KV cache (-ctk q8_0 -ctv q8_0 in llama.cpp or --kv-cache-dtype fp8 in vLLM) cuts this in half to 0.88 GB.

Compare Codestral-22B on Other GPUs

Codestral-22B on NVIDIA RTX 5090 (32GB)Codestral-22B on NVIDIA RTX 4090 (24GB)Codestral-22B on NVIDIA RTX 5080 (16GB)Codestral-22B on NVIDIA RTX 4080 Super (16GB)Codestral-22B on NVIDIA RTX 4070 Ti Super (16GB)Codestral-22B on NVIDIA RTX 3090 (24GB)Codestral-22B on NVIDIA RTX 4060 Ti 16GB (16GB)Codestral-22B on NVIDIA RTX 6000 Ada (48GB)Codestral-22B on NVIDIA RTX A6000 (48GB)Codestral-22B on NVIDIA L40S 48GB (48GB)

Other Models on NVIDIA RTX 3060 12GB (12GB)

DeepSeek-R1 671B (MoE) on NVIDIA RTX 3060 12GBDeepSeek-V3 671B (MoE) on NVIDIA RTX 3060 12GBDeepSeek-R1-Distill-Llama-70B on NVIDIA RTX 3060 12GBDeepSeek-R1-Distill-Qwen-32B on NVIDIA RTX 3060 12GBDeepSeek-R1-Distill-Qwen-14B on NVIDIA RTX 3060 12GBDeepSeek-R1-Distill-Llama-8B on NVIDIA RTX 3060 12GBDeepSeek-R1-Distill-Qwen-7B on NVIDIA RTX 3060 12GBQwen3-235B-A22B (MoE) on NVIDIA RTX 3060 12GBQwen3-30B-A3B (MoE) on NVIDIA RTX 3060 12GBQwen3-32B on NVIDIA RTX 3060 12GB