Free tools / LLM memory calculator / DeepSeek R1 14B
DeepSeek R1 14B VRAM and RAM requirements
DeepSeek R1 14B needs about 11 GB of VRAM in Q4_K_M, the quantization Ollama downloads by default, at a 4K context, and about 36 GB at its full 128K context. The weights take about 9.0 GB and the rest is the context cache plus about 1 GB for the GPU runtime. On a CPU server without a GPU it needs about 11 GB of RAM at 4K.
DeepSeek R1 14B is a reasoning model that writes out its chain of thought before the answer. It is a distill: DeepSeek trained Qwen 2.5 14B on reasoning output from the full DeepSeek R1, so the memory follows the architecture of Qwen 2.5 14B.
DeepSeek R1 14B memory by quantization and context
Memory DeepSeek R1 14B needs for each quantization at 4K, 32K, 128K tokens of context. VRAM total adds about 1 GB for the GPU runtime, RAM total about 1.5 GB for the system and Ollama on a CPU server.
| Quantization | Context | Weights | KV cache | VRAM total | RAM total (CPU) |
|---|---|---|---|---|---|
| Q4_K_M | 4K | 9.0 GB | 0.8 GB | 11 GB | 11 GB |
| 32K | 9.0 GB | 6.4 GB | 16 GB | 17 GB | |
| 128K | 9.0 GB | 26 GB | 36 GB | 36 GB | |
| Q5_K_M | 4K | 11 GB | 0.8 GB | 12 GB | 13 GB |
| 32K | 11 GB | 6.4 GB | 18 GB | 18 GB | |
| 128K | 11 GB | 26 GB | 37 GB | 38 GB | |
| Q6_K | 4K | 12 GB | 0.8 GB | 14 GB | 14 GB |
| 32K | 12 GB | 6.4 GB | 20 GB | 20 GB | |
| 128K | 12 GB | 26 GB | 39 GB | 39 GB | |
| Q8_0 | 4K | 16 GB | 0.8 GB | 17 GB | 18 GB |
| 32K | 16 GB | 6.4 GB | 23 GB | 24 GB | |
| 128K | 16 GB | 26 GB | 42 GB | 43 GB | |
| FP16 | 4K | 30 GB | 0.8 GB | 31 GB | 32 GB |
| 32K | 30 GB | 6.4 GB | 37 GB | 37 GB | |
| 128K | 30 GB | 26 GB | 56 GB | 57 GB |
Weights are the parameter count times the bits per weight of each quantization, the KV cache comes from the layer and attention head counts in the model config at FP16, as Ollama stores it by default. The sizes match Ollama downloads within a few percent.
GPUs that fit DeepSeek R1 14B
In Q4_K_M at 4K, the cheapest GPU server that holds DeepSeek R1 14B is the A16 (16 GB) at about $0.658 an hour, generating about 19 tokens per second. A 24 GB card such as the L4 or A10 holds it in Q4_K_M up to about 64K tokens of context. Unquantized FP16 needs about 31 GB, which starts at the 2× A16 (32 GB).
| DeepSeek R1 14B setup | VRAM needed | Cheapest GPU servers that fit |
|---|---|---|
| Q4_K_M at 4K | 11 GB |
|
| Q4_K_M at 128K | 36 GB |
|
| Q8_0 at 4K | 17 GB |
|
| FP16 at 4K | 31 GB |
|
Prices are for the cheapest city of each card, billed by the hour. Speed is generation with Ollama, estimated from memory bandwidth and our runs on the LLM speed benchmark. All cards are on the GPU servers page.
Running DeepSeek R1 14B on a CPU server
Yes, a CPU-only server with 12 GB of RAM holds DeepSeek R1 14B in Q4_K_M at 4K, since it needs about 11.3 GB. On 8 shared vCPU expect about 3 tokens per second, slower than reading speed, fine for short answers and batch jobs. At the full 128K context the RAM need grows to about 36 GB.
| CPU server | RAM | Tokens/s in Q4_K_M | Price |
|---|---|---|---|
| 8 shared vCPUHetzner | 16 GB | about 3 | $62/mo$0.085/hr |
| 2 dedicated vCPUOVHcloud | 16 GB | about 2 | $83/mo$0.114/hr |
DeepSeek R1 14B in Ollama
ollama run deepseek-r1:14b downloads the Q4_K_M build. Every quantization in the table has its own tag, listed next to its row.
- Q4_K_M
ollama run deepseek-r1:14b - Q5_K_M
ollama run deepseek-r1:14b-qwen-distill-q5_K_M - Q6_K
ollama run deepseek-r1:14b-qwen-distill-q6_K - Q8_0
ollama run deepseek-r1:14b-qwen-distill-q8_0 - FP16
ollama run deepseek-r1:14b-qwen-distill-fp16
What to know about DeepSeek R1 14B
- At 128K the context cache (about 26 GB) outgrows the Q4_K_M weights (about 9.0 GB). Raise num_ctx only as far as your prompts need.
- DeepSeek R1 14B writes its reasoning into the context before the answer, so plan for a longer context than a plain chat model needs and raise num_ctx above the 4K default for multi step problems.
Frequently asked questions
How much VRAM does DeepSeek R1 14B need?
About 11 GB in Q4_K_M at a 4K context, about 17 GB in Q8_0 and about 31 GB in FP16. The cheapest GPU that holds it in Q4_K_M is the A16 (16 GB). A longer context adds more: about 36 GB in Q4_K_M at 128K.
Can DeepSeek R1 14B run on a CPU without a GPU?
Yes, a CPU-only server with 12 GB of RAM holds DeepSeek R1 14B in Q4_K_M at 4K, since it needs about 11.3 GB. On 8 shared vCPU expect about 3 tokens per second, slower than reading speed, fine for short answers and batch jobs. At the full 128K context the RAM need grows to about 36 GB.
How much memory does DeepSeek R1 14B need for a 128K context?
About 36 GB of VRAM or 36 GB of RAM in Q4_K_M. The context cache alone takes about 26 GB at 128K tokens, next to about 9.0 GB of weights. Ollama uses a 4K context unless you raise num_ctx, so the cache stays small by default.
Similar models
Further reading
VRAM and RAM for other models
- Llama 3.2 3B
- Qwen 2.5 7B
- DeepSeek R1 7B
- Llama 3.1 8B
- Qwen3 8B
- Qwen 2.5 14B
- Phi-4 14B
- Qwen3 14B
- Mistral Small 3 24B
- Qwen 2.5 32B
- DeepSeek R1 32B
- Qwen3 32B
- Llama 3.3 70B
- DeepSeek R1 70B
Another model, quantization or context? Use the LLM VRAM and RAM calculator