deepseek-coder-7b-instruct-v1.5 needs about 8.7 GB of memory at Q4_K_M (a 4.2 GB file) with an 8K context window, so it fits on a 12 GB GPU. This repository has 13 quants, from 1.7 GB (IQ1_S) to 13.8 GB (BF16).
DeepSeek Coder 7B Instruct v1.5 – a 6.91B parameter coding model
DeepSeek Coder 7B Instruct v1.5 is a 6.91B parameter llama architecture model focused on coding tasks. It supports a 4096 token context window and is available in multiple GGUF quantizations.
Good at
- Code generation
- Debugging assistance
- API integration
Limits
- No vision support
- License type: other
- No mixture of experts
Best for
- Developers writing scripts
- Automating code reviews
- Building coding assistants
Who it’s for. Engineers and developers who need a lightweight coding model for local inference. The model is suitable for projects requiring code generation and debugging within a 4096 token context.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| IQ1_S | 1.7 GB | 4.2 GB | Fits | Get file → | |
| IQ2_XXS | 2.0 GB | 4.6 GB | Fits | Get file → | |
| IQ3_XXS | 2.8 GB | 5.3 GB | Fits | Get file → | |
| IQ4_XS | 3.8 GB | 6.3 GB | Fits | Get file → | |
| Q4_K_M | 4.2 GB | 6.7 GB | Fits | Get file → | |
| Q5_K_M | 4.9 GB | 7.4 GB | Tight | Get file → | |
| Q4_K_L | 5.3 GB | 7.8 GB | Tight | Get file → | |
| Q6_K | 5.7 GB | 8.2 GB | Too big | Get file → | |
| Q5_K_L | 6.0 GB | 8.5 GB | Too big | Get file → | |
| Q6_K_L | 6.7 GB | 9.2 GB | Too big | Get file → | |
| Q8_0 | 7.3 GB | 9.9 GB | Too big | Get file → | |
| Q8_0 | 8.1 GB | 10.6 GB | Too big | Get file → | |
| BF16 | 13.8 GB | 16.3 GB | Too big | Get file → |
For 8 GB VRAM use IQ1_S (1.73 GB, 6.3 GB memory) or IQ2_XXS (2.04 GB, 6.6 GB memory). For 12 GB VRAM use Q4_K_M (4.22 GB, 8.7 GB memory) or Q5_K_M (4.93 GB, 9.5 GB memory). For 16 GB VRAM use Q6_K (5.67 GB, 10.2 GB memory).
What GPU do you need for deepseek-coder-7b-instruct-v1.5?
These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.
- 4 GB VRAM: no quant fits at an 8K context.
- 6 GB VRAM: no quant fits at an 8K context.
- 8 GB VRAM: the best quant that fits is IQ3_XXS (2.8 GB file, about 7.3 GB in use).
- 12 GB VRAM: the best quant that fits is Q8_0 (7.3 GB file, about 11.9 GB in use).
- 16 GB VRAM: the best quant that fits is Q8_0 (8.1 GB file, about 12.7 GB in use).
- 24 GB VRAM: the best quant that fits is BF16 (13.8 GB file, about 18.4 GB in use).
Which deepseek-coder-7b-instruct-v1.5 quant should you choose?
Q4_K_M is the usual starting point for deepseek-coder-7b-instruct-v1.5: it balances file size and quality well. Here it is a 4.2 GB file.
The Q8_0 file is 7.3 GB, about 1.7 times the size of Q4_K_M. It keeps the weights closer to the original, which only matters if you have the memory to spare.
If memory is tight, the smallest file is IQ1_S at 1.7 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Frequently asked questions about deepseek-coder-7b-instruct-v1.5
How much VRAM does deepseek-coder-7b-instruct-v1.5 need?
About 8.7 GB at Q4_K_M with an 8K context window. That is the 4.2 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.
Can I run deepseek-coder-7b-instruct-v1.5 on an 8 GB GPU?
Yes, with IQ3_XXS: the 2.8 GB file needs about 7.3 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of deepseek-coder-7b-instruct-v1.5 GGUF?
It depends on the quant: IQ1_S is 1.7 GB, IQ2_XXS is 2.0 GB, IQ3_XXS is 2.8 GB, IQ4_XS is 3.8 GB, Q4_K_M is 4.2 GB, Q5_K_M is 4.9 GB and 7 more.
What context length does deepseek-coder-7b-instruct-v1.5 support?
The GGUF header lists a trained context length of 4,096 tokens (4K). The KV cache grows with the context you use: about 4.0 GB at 8K and 2.0 GB at 4K.
Where can I download deepseek-coder-7b-instruct-v1.5 GGUF?
The files are on Hugging Face in the qwp4w3hyb/deepseek-coder-7b-instruct-v1.5-iMat-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
What license does deepseek-coder-7b-instruct-v1.5 use?
Hugging Face lists the license as other. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.
Can I run DeepSeek Coder 7B on 8 GB VRAM?
Yes, use IQ1_S or IQ2_XXS quantizations; they require about 6.3–6.6 GB memory at 8k context.
Does the model support image input?
No, the model has no vision capabilities.
What is the maximum context length?
The model supports up to 4096 tokens.