Skip to content
localllm

bartowski

DeepSeek-Coder-V2-Lite-Instruct

Parameters
15.7B
Max context length
163,840
Architecture
deepseek2
License
deepseek-license

About DeepSeek-Coder-V2-Lite-Instruct

DeepSeek-Coder-V2-Lite-Instruct is a model published in GGUF format. GGUF files are published by bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF. It has about 15.7B parameters, the deepseek2 architecture, a maximum context length of 163,840 tokens (values written in the GGUF).

There are 21 quantizations, with file sizes from 5.97 GB (IQ2_XS) to 62.8 GB (F32) (actual sizes on Hugging Face).

Running Q4_K_M (10.4 GB) with an 8,192-token context needs an estimated 13.4 GB of memory, and an estimated 20.2 GB at 32,768 tokens. For 8,192 tokens, a GPU with 16 GB or more of VRAM (such as GeForce RTX 5080, GeForce RTX 5070 Ti), or a Mac with 16 GB or more of unified memory, is a rough guide (macOS caps how much memory the GPU can use, so leave some headroom). The smallest, IQ2_XS (5.97 GB), needs an estimated 8.98 GB at 8,192 tokens.

According to bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF, the license is deepseek-license. Check the original license for the terms of use.

File size and estimated memory per quantization

  • Up to 8 GB
  • Up to 16 GB
  • Up to 24 GB
  • Up to 48 GB
  • Up to 128 GB
  • More

File sizes are the actual values on Hugging Face. Memory is estimated for each context length (KV cache f16). The formula is in How memory is calculated.

All memory figures are Estimated (KV cache f16). It should run on a setup with at least this much VRAM (or Mac unified memory). Click a value to see the devices and models that fit that amount (Find by GPU / Mac).

About the "quality guide" (how far a quantization drifts from the original)

For each quantization type, how far the output drifts from the original model, grouped into six levels from values llama.cpp measured on Llama-3-8B.

The value is mean KLD (the difference between the original and quantized model in next-token probabilities); smaller means closer to the original. Quantizations made with an imatrix (importance data) come out slightly smaller. Levels use the value without an imatrix (or with one, for types that only have that).

These values were not measured on this model. Larger models and MoE models tend to drift less with the same type. Distributor-specific mixed types (such as UD-Q4_K_XL) cannot be matched by type name alone, so they show "-".

Quantization Quality guide KLD (no imatrix) KLD (imatrix) Size (Llama-3-8B)
Q8_0 Nearly identical 0.0014 - 7.96 GiB
Q6_K Very small 0.0055 - 6.14 GiB
Q5_K_M Very small 0.0108 - 5.33 GiB
Q5_K_S Small 0.0166 - 5.21 GiB
Q5_1 Small 0.0180 - 5.65 GiB
Q5_0 Small 0.0222 - 5.21 GiB
Q4_K_M Small 0.0313 0.0282 4.58 GiB
Q4_K_S Medium 0.0431 0.0320 4.37 GiB
IQ4_NL Small - 0.0357 4.35 GiB
IQ4_XS Small - 0.0363 4.14 GiB
Q4_1 Medium 0.0717 - 4.78 GiB
Q4_0 Medium 0.0719 - 4.34 GiB
Q3_K_L Medium 0.0872 0.0731 4.03 GiB
Q3_K_M Medium 0.1019 0.0844 3.74 GiB
IQ3_M Medium - 0.1025 3.53 GiB
IQ3_S Medium - 0.1113 3.42 GiB
IQ3_XS Large - 0.1387 3.28 GiB
IQ3_XXS Large - 0.1836 3.05 GiB
Q3_K_S Large 0.2282 0.1998 3.41 GiB
IQ2_M Large - 0.3260 2.74 GiB
Q2_K Very large 0.4451 0.3322 2.96 GiB
Q2_K_S Very large - 0.4034 2.96 GiB
IQ2_S Very large - 0.4392 2.56 GiB
IQ2_XS Very large - 0.5463 2.43 GiB
IQ2_XXS Very large - 0.8120 2.24 GiB
IQ1_M Very large - 1.3931 2.01 GiB
IQ1_S Very large - 2.2546 1.88 GiB

Source: llama.cpp (MIT), measured on Llama-3-8B against FP16, Wikitext-2, revision f364eb6f. Original table · Reading and choosing quantizations

GGUF source

bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF

Published by the original developer About this label

Last checked: Nov 11, 2026

Architecture
deepseek2
Supported before llama.cpp b4409
Parameters
15.7B
Max context length
163,840
License
deepseek-license Unverified
File size and memory per quantization for DeepSeek-Coder-V2-Lite-Instruct (bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 163,840 max
IQ2_XS 5.97 GB Very large 7.85 GB 8.98 GB 11.2 GB 15.8 GB 24.8 GB 43.0 GB 52.0 GB
IQ2_S 6.01 GB Very large 7.88 GB 9.02 GB 11.3 GB 15.8 GB 24.9 GB 43.0 GB 52.1 GB
IQ2_M 6.33 GB Large 8.21 GB 9.34 GB 11.6 GB 16.1 GB 25.2 GB 43.3 GB 52.4 GB
Q2_K 6.43 GB Very large 8.31 GB 9.44 GB 11.7 GB 16.2 GB 25.3 GB 43.4 GB 52.5 GB
IQ3_XXS 6.96 GB Large 8.84 GB 9.98 GB 12.2 GB 16.8 GB 25.8 GB 43.9 GB 53.0 GB
IQ3_XS 7.12 GB Large 9.00 GB 10.1 GB 12.4 GB 16.9 GB 26.0 GB 44.1 GB 53.2 GB
Q3_K_S 7.49 GB Large 9.37 GB 10.5 GB 12.8 GB 17.3 GB 26.4 GB 44.5 GB 53.5 GB
IQ3_M 7.55 GB Medium 9.43 GB 10.6 GB 12.8 GB 17.4 GB 26.4 GB 44.5 GB 53.6 GB
Q3_K_M 8.13 GB Medium 10.0 GB 11.1 GB 13.4 GB 17.9 GB 27.0 GB 45.1 GB 54.2 GB
Q3_K_L 8.46 GB Medium 10.3 GB 11.5 GB 13.7 GB 18.3 GB 27.3 GB 45.4 GB 54.5 GB
IQ4_XS 8.57 GB Small 10.5 GB 11.6 GB 13.8 GB 18.4 GB 27.4 GB 45.6 GB 54.6 GB
Q4_K_S 9.53 GB Medium 11.4 GB 12.5 GB 14.8 GB 19.3 GB 28.4 GB 46.5 GB 55.6 GB
Q4_K_M 10.4 GB Small 12.2 GB 13.4 GB 15.6 GB 20.2 GB 29.2 GB 47.3 GB 56.4 GB
Q4_K_L 10.9 GB - 12.8 GB 13.9 GB 16.2 GB 20.7 GB 29.8 GB 47.9 GB 57.0 GB
Q5_K_S 11.1 GB Small 13.0 GB 14.2 GB 16.4 GB 20.9 GB 30.0 GB 48.1 GB 57.2 GB
Q5_K_M 11.9 GB Very small 13.7 GB 14.9 GB 17.1 GB 21.7 GB 30.7 GB 48.8 GB 57.9 GB
Q5_K_L 12.4 GB - 14.3 GB 15.4 GB 17.7 GB 22.2 GB 31.2 GB 49.4 GB 58.4 GB
Q6_K 14.1 GB Very small 15.9 GB 17.1 GB 19.3 GB 23.9 GB 32.9 GB 51.1 GB 60.1 GB
Q6_K_L 14.6 GB - 16.4 GB 17.6 GB 19.8 GB 24.4 GB 33.4 GB 51.5 GB 60.6 GB
Q8_0 DeepSeek-Coder-V2-Lite-Instruct-Q8_0 16.7 GB Nearly identical 18.6 GB 19.7 GB 22.0 GB 26.5 GB 35.6 GB 53.7 GB 62.7 GB
Q8_0 DeepSeek-Coder-V2-Lite-Instruct-Q8_0_L 17.1 GB Nearly identical 19.0 GB 20.1 GB 22.4 GB 26.9 GB 36.0 GB 54.1 GB 63.1 GB
F32 (2 parts) 62.8 GB Original precision 64.7 GB 65.8 GB 68.1 GB 72.6 GB 81.7 GB 99.8 GB 109 GB
Ollama  ollama run hf.co/bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF:Q4_K_M
llama.cpp  llama-server -hf bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF:Q4_K_M

License and commercial use

deepseek-license Unverified

This site has not verified this license text yet. Check the original before commercial use.

The original model's license has not been fetched yet, so this is based on the GGUF repository's label.

The summary states facts this site read from the original text and is not legal advice. Always check the original license and its latest terms before use. All licenses

How to run

Example commands using Q4_K_M. To use another quantization, replace the name with one from the table above. How to run local LLMs

Ollama

Run it by pointing directly at the GGUF on Hugging Face.

ollama run hf.co/bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF:Q4_K_M

llama.cpp

Pass the repository and quantization name to llama-server (or llama-cli) with -hf.

llama-server -hf bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF:Q4_K_M

LM Studio

Paste bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF into the search box, download it, and choose the quantization from the file list.

Frequently asked questions

How much memory do I need to run DeepSeek-Coder-V2-Lite-Instruct (Q4_K_M)?
The file size is 10.4 GB (measured). With a 8,192-token context, the estimated memory including the KV cache is 13.4 GB. The formula is published at https://localllm.az-arte.com/en/guide/memory-calculation.
Can DeepSeek-Coder-V2-Lite-Instruct be used commercially?
The license is deepseek-license (Commercial use not verified). Check the original license text before deciding.
Does DeepSeek-Coder-V2-Lite-Instruct run in 8 GB, 12 GB, 16 GB or 24 GB of VRAM?
8 GB: no quantization fits; 12 GB: up to Q4_K_S (est. 12.5 GB); 16 GB: up to Q6_K (est. 17.1 GB); 24 GB: up to Q8_0 (est. 20.1 GB) (estimated at 8,192 tokens with an f16 KV cache, files from the most-downloaded source).
What is the command to run DeepSeek-Coder-V2-Lite-Instruct with Ollama?
Run "ollama run hf.co/bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF:Q4_K_M" to use the GGUF on Hugging Face directly. To use another quantization, replace the name at the end.