★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once

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 tagOllama downloadGGUF fileVRAM needed (16K context)Fits
16b-lite-instruct-q2_K6.4 GB6.43 GB7.9 GB8 GB card, only with a short context and nothing else using VRAM
16b-lite-instruct-q3_K_M8.1 GB8.13 GB9.6 GB12 GB card
16b (default, q4_0)8.9 GBnot in the GGUF repository10.4 GB12 GB card
16b-lite-instruct-q4_K_M10 GB10.36 GB11.9 GB12 GB card with no headroom; 16 GB comfortably
16b-lite-instruct-q5_K_M12 GB11.85 GB13.4 GB16 GB card
16b-lite-instruct-q6_K14 GB14.07 GB15.6 GB16 GB card at 16K context or less
16b-lite-instruct-q8_017 GB16.70 GB18.2 GB24 GB card; 21.8 GB with the whole 128K context
16b-lite-instruct-fp1631 GBnot in the GGUF repository32.5 GB48 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.

Ollama tags: which one is the 16B?

Four names point at the same 8.9 GB file: deepseek-coder-v2, deepseek-coder-v2:latest, deepseek-coder-v2:lite and deepseek-coder-v2:16b. The explicit name for it is 16b-lite-instruct-q4_0.

# 8.9 GB, Lite Instruct at q4_0
ollama pull deepseek-coder-v2:16b
ollama run deepseek-coder-v2:16b

# 17 GB, Lite Instruct at q8_0, for a 24 GB card
ollama pull deepseek-coder-v2:16b-lite-instruct-q8_0
  • Instruct or base: tags containing lite-instruct are the chat model. Tags containing lite-base are the raw completion weights, at the same sizes.
  • Context: Ollama lists 160K for the default tag, which matches the 163,840 positions in the model's config. DeepSeek documents the model as 128K. Ollama loads a much shorter context unless you set one, so raise num_ctx if you need more.
  • A tag that does not exist: deepseek-coder:16b-v2. The 16B model is only under deepseek-coder-v2. The separate deepseek-coder library holds the first-generation 1.3b, 6.7b and 33b models.

Source: ollama.com/library/deepseek-coder-v2/tags.

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

SpecDeepSeek-Coder-V2-Lite (16B)
Total parameters16B (15.7B in the weights file)
Active parameters per token2.4B
ArchitectureMixture-of-Experts, 27 layers, 64 routed and 2 shared experts, 6 routed experts chosen per token
Context length128K
Programming languages338
VariantsLite-Base (completion), Lite-Instruct (chat)
ReleasedJune 2024 (paper submitted June 17, 2024)
LicenceCode 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.

BenchmarkLite Instruct (16B)Instruct (236B), for reference
HumanEval81.190.2
MBPP+68.876.2
LiveCodeBench24.343.4
Aider44.473.7
SWE-Bench0.012.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

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.

Reading now
Join the discussion

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.

🎯
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Barsha Mohapatra

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.

📅 Published: October 28, 2025🔄 Last Updated: September 29, 2026✓ Manually Reviewed

Related Guides

Continue your local AI journey with these comprehensive guides

More on Local AI Hardware
See the full AI Hardware Guide 2026 guide.
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators