Model reference · open weights

deepseek-coder

LLMs deepseek-ai Text gen 6 builds Its own licence terms 822k dl/mo

deepseek-coder is an open-weight language model from DeepSeek. deepseek-coder-6.7b-instruct (BF16) weighs 13.5 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

  • Deepseek-Coder-7B-Instruct-v1.5 is a 6.9B parameter text-generation model developed by DeepSeek.
  • It is designed for coding tasks and supports a context length of 4096 tokens.
  • The model is available under a custom licence that permits commercial use.

Summary of the deepseek-ai/deepseek-coder-7b-instruct-v1.5 model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byDeepSeek
Released2024-01-25
Parameters6.9B
VRAM13.5 GB for the weights

What it runs on

Memory and cards for deepseek-coder-6.7b-instruct (BF16)

13.5 GBweights, file size
524 MBcache per 1K tokens
620 MBruntime overhead, at least
16,384 tokenscontext max
CardRequests at onceContext maxMemory
8K each
RTX 3060 12 GB——11.6 GB
RTX 4060 Ti 16 GB—2K15.4 GB
RTX 3090 24 GB2all 16K23.4 GB
RTX 4090 24 GB2all 16K23.4 GB
RTX 5090 32 GB3all 16K31.0 GB
L40S 48 GB6all 16K44.0 GB
A100 80 GB14all 16K78.2 GB
H100 80 GB14all 16K78.1 GB
RTX PRO 6000 Blackwell 96 GB17all 16K93.8 GB
DGX Spark (GB10) 128 GB unified21all 16K107 GB
H200 141 GB28all 16K138 GB
B200 180 GB36all 16K176 GB
2× RTX 3060 12 GB
tensor parallel
115K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
3all 16K15.4 GB a card
2× RTX 5090 32 GB
tensor parallel
11all 16K31.0 GB a card
2× L40S 48 GB
tensor parallel
17all 16K44.0 GB a card
4× RTX 4090 24 GB
tensor parallel
18all 16K23.4 GB a card
4× RTX 3090 24 GB
tensor parallel
18all 16K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each
118.4 GB
535.6 GB
848.5 GB
1682.8 GB
32152 GB
64289 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
deepseek-coder-7b-instruct-v1.5 ↗ 6.9BBF16 13.8 GB2× RTX 3060 12 GB
deepseek-coder-6.7b-instruct (above) ↗ 6.7BBF16 13.5 GB2× RTX 3060 12 GB
deepseek-coder-1.3b-instruct ↗ 1.3BBF16 2.7 GBRTX 3060 12 GB
deepseek-coder-1.3b-base ↗ —BF16 2.7 GBRTX 3060 12 GB
DeepSeek-Coder-V2-Instruct ↗ 235.7BBF16 471 GB4× H200 141 GB
deepseek-coder-33b-instruct ↗ 33.3BBF16 66.7 GBH100 80 GB

From the model card

What DeepSeek says about deepseek-coder

Read the model card

1. Introduction of Deepseek-Coder-7B-Instruct v1.5

Deepseek-Coder-7B-Instruct-v1.5 is continue pre-trained from Deepseek-LLM 7B on 2T tokens by employing a window size of 4K and next token prediction objective, and then fine-tuned on 2B tokens of instruction data.

2. Evaluation Results

3. How to Use

Here give some examples of how to use our model.

Chat Model Inference
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/deepseek-coder-7b-instruct-v1.5", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-7b-instruct-v1.5", trust_remote_code=True).cuda()
messages=[
    { 'role': 'user', 'content': "write a quick sort algorithm in python."}
]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)

outputs = model.generate(inputs, max_new_tokens=512, do_sample=False, top_k=50, top_p=0.95, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))

4. License

This code repository is licensed under the MIT License. The use of DeepSeek Coder models is subject to the Model License. DeepSeek Coder supports commercial use.

See the LICENSE-MODEL for more details.

5. Contact

If you have any questions, please raise an issue or contact us at service@deepseek.com.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms