Free tools / LLM memory calculator / DeepSeek R1 32B

DeepSeek R1 32B VRAM and RAM requirements

DeepSeek R1 32B needs about 22 GB of VRAM in Q4_K_M, the quantization Ollama downloads by default, at a 4K context, and about 55 GB at its full 128K context. The weights take about 20 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 22 GB of RAM at 4K.

DeepSeek R1 32B is a reasoning model that writes out its chain of thought before the answer. It is a distill: DeepSeek trained Qwen 2.5 32B on reasoning output from the full DeepSeek R1, so the memory follows the architecture of Qwen 2.5 32B.

Open DeepSeek R1 32B in the calculator

DeepSeek R1 32B memory by quantization and context

Memory DeepSeek R1 32B 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.

QuantizationContextWeightsKV cacheVRAM totalRAM total (CPU)
Q4_K_M4K20 GB1.1 GB22 GB22 GB
32K20 GB8.6 GB29 GB30 GB
128K20 GB34 GB55 GB56 GB
Q5_K_M4K23 GB1.1 GB25 GB26 GB
32K23 GB8.6 GB33 GB33 GB
128K23 GB34 GB59 GB59 GB
Q6_K4K27 GB1.1 GB29 GB29 GB
32K27 GB8.6 GB36 GB37 GB
128K27 GB34 GB62 GB63 GB
Q8_04K35 GB1.1 GB37 GB37 GB
32K35 GB8.6 GB44 GB45 GB
128K35 GB34 GB70 GB71 GB
FP164K66 GB1.1 GB68 GB68 GB
32K66 GB8.6 GB75 GB76 GB
128K66 GB34 GB101 GB101 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 32B

In Q4_K_M at 4K, the cheapest GPU server that holds DeepSeek R1 32B is the L4 (24 GB) at about $1.16 an hour, generating about 13 tokens per second. A 24 GB card such as the L4 or A10 holds it in Q4_K_M up to about 8K tokens of context. Unquantized FP16 needs about 68 GB, which starts at the 4× RTX 4000 Ada (80 GB).

DeepSeek R1 32B setupVRAM neededCheapest GPU servers that fit
Q4_K_M at 4K22 GB
  • L4 24 GB, $1.16/hr, about 13 tok/s
  • A10 24 GB, $1.17/hr, about 21 tok/s
  • 2× A16 32 GB, $1.32/hr, about 8.5 tok/s
Q4_K_M at 128K55 GB
  • 4× RTX 4000 Ada 80 GB, $4.14/hr, about 15 tok/s
  • A100 80 GB, $4.23/hr, about 42 tok/s
  • H100 80 GB, $4.32/hr, about 43 tok/s
Q8_0 at 4K37 GB
  • 2× RTX 4000 Ada 40 GB, $1.47/hr, about 9 tok/s
  • L40S 48 GB, $2.16/hr, about 15 tok/s
  • A40 48 GB, $2.40/hr, about 13 tok/s
FP16 at 4K68 GB
  • 4× RTX 4000 Ada 80 GB, $4.14/hr, about 4.5 tok/s
  • A100 80 GB, $4.23/hr, about 13 tok/s
  • H100 80 GB, $4.32/hr, about 13 tok/s

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 32B on a CPU server

Yes, a CPU-only server with 24 GB of RAM holds DeepSeek R1 32B in Q4_K_M at 4K, since it needs about 22.4 GB. On 16 shared vCPU expect about 1.5 tokens per second, suited to batch jobs that can wait. At the full 128K context the RAM need grows to about 56 GB.

CPU serverRAMTokens/s in Q4_K_MPrice
16 shared vCPUHetzner32 GBabout 1.5$120/mo$0.164/hr
2 dedicated vCPULinode24 GBunder 1$93/mo$0.127/hr

DeepSeek R1 32B in Ollama

ollama run deepseek-r1:32b downloads the Q4_K_M build. Every quantization in the table has its own tag, listed next to its row.

  • Q4_K_Mollama run deepseek-r1:32b
  • Q5_K_Mollama run deepseek-r1:32b-qwen-distill-q5_K_M
  • Q6_Kollama run deepseek-r1:32b-qwen-distill-q6_K
  • Q8_0ollama run deepseek-r1:32b-qwen-distill-q8_0
  • FP16ollama run deepseek-r1:32b-qwen-distill-fp16

What to know about DeepSeek R1 32B

  • At 128K the context cache (about 34 GB) outgrows the Q4_K_M weights (about 20 GB). Raise num_ctx only as far as your prompts need.
  • DeepSeek R1 32B 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 32B need?

About 22 GB in Q4_K_M at a 4K context, about 37 GB in Q8_0 and about 68 GB in FP16. The cheapest GPU that holds it in Q4_K_M is the L4 (24 GB). A longer context adds more: about 55 GB in Q4_K_M at 128K.

Can DeepSeek R1 32B run on a CPU without a GPU?

Yes, a CPU-only server with 24 GB of RAM holds DeepSeek R1 32B in Q4_K_M at 4K, since it needs about 22.4 GB. On 16 shared vCPU expect about 1.5 tokens per second, suited to batch jobs that can wait. At the full 128K context the RAM need grows to about 56 GB.

How much memory does DeepSeek R1 32B need for a 128K context?

About 55 GB of VRAM or 56 GB of RAM in Q4_K_M. The context cache alone takes about 34 GB at 128K tokens, next to about 20 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

Another model, quantization or context? Use the LLM VRAM and RAM calculator