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-1.3b-instruct (BF16) weighs 2.7 GB; the smallest configuration that runs it is 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
VRAM2.7 GB for the weights

What it runs on

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

2.7 GBweights, file size
197 MBcache per 1K tokens
541 MBruntime overhead, at least
16,384 tokenscontext max
CardRequests at onceContext maxMemory
8K each
RTX 3060 12 GB5all 16K11.6 GB
RTX 4060 Ti 16 GB7all 16K15.4 GB
RTX 3090 24 GB12all 16K23.4 GB
RTX 4090 24 GB12all 16K23.4 GB
RTX 5090 32 GB17all 16K31.0 GB
L40S 48 GB25all 16K44.0 GB
A100 80 GB46all 16K78.2 GB
H100 80 GB44all 16K78.1 GB
RTX PRO 6000 Blackwell 96 GB54all 16K93.8 GB
DGX Spark (GB10) 128 GB unified62all 16K107 GB
H200 141 GB81all 16K138 GB
B200 180 GB105all 16K176 GB
2× RTX 3060 12 GB
tensor parallel
12all 16K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
16all 16K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each
14.8 GB
511.3 GB
816.1 GB
1629.0 GB
3254.8 GB
64106 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 ↗ 6.7BBF16 13.5 GB2× RTX 3060 12 GB
deepseek-coder-1.3b-instruct (above) ↗ 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