Running DeepSeek-R1 Locally: Quantization & VRAM Math Guide

Tutorial · 9 min read · Updated July 2026

DeepSeek-R1 has revolutionized open-weights reasoning. This hands-on guide details hardware VRAM formulas, GGUF quantization tradeoffs (Q4_K_M vs Q8_0), and one-command local deployments with Ollama.

1. VRAM Requirements & Hardware Formula

Calculate required VRAM using the standard formula:

Required VRAM (GB) = (Params in Billions * Bits per Weight / 8) * 1.20 (KV-Cache Overhead)

2. Quickstart Ollama Commands

# Run 14B distilled reasoning model
ollama run deepseek-r1:14b

# Run 32B model for software engineering tasks
ollama run deepseek-r1:32b