DeepSeek · Open-Weight Coding Model
DeepSeek Coder V2 16B
Model size, VRAM and Ollama tags
Updated: September 29, 2026
deepseek-coder-v2:16b is DeepSeek-Coder-V2-Lite-Instruct at q4_0. It is an 8.9 GB download and needs about 10.4 GB of VRAM with a 16K context, so it runs on a 12 GB graphics card. The model has 16B total parameters with 2.4B active per token, a 128K context window, and was released in June 2024. It does not support tool calling in Ollama. Figures on this page come from Ollama, Hugging Face and DeepSeek's own documentation; this site has not benchmarked the model.
DeepSeek Coder V2 16B hardware requirements
A 12 GB card runs the default tag. A 16 GB card runs q5_K_M or q6_K. A 24 GB card runs q8_0 with the full 128K context. An 8 GB card holds only the 2-bit file.
“VRAM needed” is the file size, plus the key-value cache for a 16K context, plus 1 GB for compute buffers. The cache is small for this model because it uses multi-head latent attention: from config.json, (512 + 64) cached values × 2 bytes × 27 layers = 31,104 bytes per token, which is 0.5 GB at 16K and 4.1 GB at the full 128K. This is a Mixture-of-Experts model, and only 2.4B parameters are active per token, but all 16B have to be loaded, so memory follows the file size.
| Ollama tag | Ollama download | GGUF file | VRAM needed (16K context) | Fits |
|---|---|---|---|---|
16b-lite-instruct-q2_K | 6.4 GB | 6.43 GB | 7.9 GB | 8 GB card, only with a short context and nothing else using VRAM |
16b-lite-instruct-q3_K_M | 8.1 GB | 8.13 GB | 9.6 GB | 12 GB card |
16b (default, q4_0) | 8.9 GB | not in the GGUF repository | 10.4 GB | 12 GB card |
16b-lite-instruct-q4_K_M | 10 GB | 10.36 GB | 11.9 GB | 12 GB card with no headroom; 16 GB comfortably |
16b-lite-instruct-q5_K_M | 12 GB | 11.85 GB | 13.4 GB | 16 GB card |
16b-lite-instruct-q6_K | 14 GB | 14.07 GB | 15.6 GB | 16 GB card at 16K context or less |
16b-lite-instruct-q8_0 | 17 GB | 16.70 GB | 18.2 GB | 24 GB card; 21.8 GB with the whole 128K context |
16b-lite-instruct-fp16 | 31 GB | not in the GGUF repository | 32.5 GB | 48 GB; over the limit for a 32 GB card |
8 GB cards such as the RTX 3070
The default 8.9 GB tag is larger than the card, so Ollama will place part of the model in system RAM. It runs, but slower than a model that fits. Two alternatives stay entirely on an 8 GB card: the q2_K tag above, at a real cost in output quality, or the older deepseek-coder:6.7b, which is a 3.8 GB download with a 16K context. The Qwen 2.5 Coder 7B page covers a newer model in the same size class.
GGUF sizes are from bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF. For the rows with no GGUF file, the Ollama download size is used in the arithmetic. For any other expert count or context length, the MoE VRAM calculator does the same sum.
Why does deepseek-coder-v2:16b say it does not support tools?
Because the Ollama build of this model has no tool-calling template. When a client sends a tools array to a model without one, Ollama rejects the request with an error ending in “does not support tools”. The deepseek-coder-v2 library page carries no tools badge, which is how Ollama marks models that accept tool calls. Editor agents and frameworks that rely on Ollama's native tool calling are where most people meet this message.
Three ways forward:
- Use it for what it supports. Chat and code completion work normally. Turn off agent or tool mode in your editor extension.
- Switch to a model with the tools badge. The Ollama tool-calling guide lists them, and Devstral Small 2 is a coding model built for agent use.
- Try a community template. MFDoom/deepseek-coder-v2-tool-calling is an 8.9 GB user upload that carries the tools badge. It is not published by DeepSeek or Ollama and this site has not tested it. DeepSeek reports 0.0 on SWE-Bench for the Lite model, so expect limited results from agent work whichever template you use.
Model specifications
| Spec | DeepSeek-Coder-V2-Lite (16B) |
|---|---|
| Total parameters | 16B (15.7B in the weights file) |
| Active parameters per token | 2.4B |
| Architecture | Mixture-of-Experts, 27 layers, 64 routed and 2 shared experts, 6 routed experts chosen per token |
| Context length | 128K |
| Programming languages | 338 |
| Variants | Lite-Base (completion), Lite-Instruct (chat) |
| Released | June 2024 (paper submitted June 17, 2024) |
| Licence | Code under MIT. Weights under the DeepSeek Model Agreement, which the README says “supports commercial use”. |
From the model card, its config.json and the paper. The model licence is a custom agreement, so read it before shipping a product on these weights.
DeepSeek Coder V2 benchmarks, as reported by DeepSeek
The 16B Lite model scores 81.1 on HumanEval. The 90.2 figure often quoted for DeepSeek Coder V2 belongs to the 236B model. Both columns below are copied from the table in the DeepSeek-Coder-V2 README for the Instruct models. They are vendor figures and this site has not reproduced them.
| Benchmark | Lite Instruct (16B) | Instruct (236B), for reference |
|---|---|---|
| HumanEval | 81.1 | 90.2 |
| MBPP+ | 68.8 | 76.2 |
| LiveCodeBench | 24.3 | 43.4 |
| Aider | 44.4 | 73.7 |
| SWE-Bench | 0.0 | 12.7 |
Read together, the numbers describe a model that is good at writing a function from a description and weak at multi-step repository work. The full model and its hardware needs are on the DeepSeek Coder V2 236B page.
Is it still worth running?
This section is opinion. DeepSeek Coder V2 dates from June 2024 and newer open coding models have been released since, several of which support tool calling. If you are choosing a model today, start with the Ollama coding-model guide or the best local coding models list. For DeepSeek's current generation see DeepSeek V4.
The reasons to keep the 16B Lite are practical ones: it is an 8.9 GB download that fits a 12 GB card, its key-value cache is small enough that long contexts stay affordable, and the weights allow commercial use. For chat-style help and completion on modest hardware it remains usable. For agents it is the wrong tool.
Frequently asked questions
How big is deepseek-coder-v2:16b on Ollama?
8.9 GB for the default q4_0 tag. The other 16B tags range from 6.4 GB (q2_K) to 31 GB (fp16).
Will it run on 16 GB of VRAM?
Yes. The default tag needs about 10.4 GB, and a 16 GB card also holds q5_K_M (13.4 GB) or q6_K (15.6 GB) at a 16K context.
Is 16B the same as DeepSeek Coder V2 Lite?
Yes. DeepSeek names the model DeepSeek-Coder-V2-Lite; Ollama labels it by parameter count. The other size in the family is the 236B.
Can I run it without a GPU?
Ollama will load it into system RAM if there is no suitable GPU, so a machine with 16 GB of RAM can hold the 8.9 GB tag. Speed depends on your processor and memory, and this site has not measured it.
Sources
- Ollama tag list for deepseek-coder-v2: every tag with its download size
- DeepSeek-Coder-V2-Lite-Instruct model card: parameters, context, licence
- DeepSeek-Coder-V2 on GitHub: benchmark tables and licence section
- DeepSeek-Coder-V2 paper (arXiv:2406.11931)
- bartowski GGUF files: the file sizes in the hardware table
Related coding models
DeepSeek Coder V2 236B
The full-size model in the same family, with its multi-GPU hardware table.
StarCoder2 15B
BigCode's completion model from the same period, at a similar download size.
CodeLlama Python 7B
Meta's Python-specialised model for smaller cards.
Build Real AI on Your Machine
RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.
Go from reading about AI to building with AI
25 structured courses. Hands-on projects. Runs on your machine. Start free.

Written by
Barsha Mohapatra
Founder and Editor, Local AI Master · Founder, Little AI Master
Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.
Related Guides
Continue your local AI journey with these comprehensive guides
- PILLARLocal AI Hardware Requirements (2026): Complete Guide
- AI Hardware Requirements: CPU, GPU and RAM for Beginners
- AI RAM Requirements 2026: How Much for 7B, 13B, 70B Models?
- AI Server Build Under $1,500: Parts List and What Fits
- AMD GPU Not Supported by ROCm? HSA_OVERRIDE Values
- AMD MI50 32GB for Local LLMs: The Used VRAM King, Honestly
- AMD Ryzen AI Max+ 395 (Strix Halo) for Local AI 2026
- Apple M4 for Local AI: Mac Studio + MacBook Guide (2026)
- Benchmark Your Local AI Setup: tok/s, TTFT, VRAM
- Best GPU for AI Video Generation: By VRAM Tier (2026)
Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide
No spam. Unsubscribe with one click.
Found your model? Now build something with it.
25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.