Model reference · open weights
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.
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 by | DeepSeek |
|---|---|
| Released | 2024-01-25 |
| Parameters | 6.9B |
| VRAM | 2.7 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 8K each | |||
| RTX 3060 12 GB | 5 | all 16K | 11.6 GB |
| RTX 4060 Ti 16 GB | 7 | all 16K | 15.4 GB |
| RTX 3090 24 GB | 12 | all 16K | 23.4 GB |
| RTX 4090 24 GB | 12 | all 16K | 23.4 GB |
| RTX 5090 32 GB | 17 | all 16K | 31.0 GB |
| L40S 48 GB | 25 | all 16K | 44.0 GB |
| A100 80 GB | 46 | all 16K | 78.2 GB |
| H100 80 GB | 44 | all 16K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 54 | all 16K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 62 | all 16K | 107 GB |
| H200 141 GB | 81 | all 16K | 138 GB |
| B200 180 GB | 105 | all 16K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 12 | all 16K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 16 | all 16K | 15.4 GB a card |
| Requests at once | 8K tokens each |
|---|---|
| 1 | 4.8 GB |
| 5 | 11.3 GB |
| 8 | 16.1 GB |
| 16 | 29.0 GB |
| 32 | 54.8 GB |
| 64 | 106 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| deepseek-coder-7b-instruct-v1.5 ↗ | 6.9B | BF16 | 13.8 GB | 2× RTX 3060 12 GB |
| deepseek-coder-6.7b-instruct ↗ | 6.7B | BF16 | 13.5 GB | 2× RTX 3060 12 GB |
| deepseek-coder-1.3b-instruct (above) ↗ | 1.3B | BF16 | 2.7 GB | RTX 3060 12 GB |
| deepseek-coder-1.3b-base ↗ | — | BF16 | 2.7 GB | RTX 3060 12 GB |
| DeepSeek-Coder-V2-Instruct ↗ | 235.7B | BF16 | 471 GB | 4× H200 141 GB |
| deepseek-coder-33b-instruct ↗ | 33.3B | BF16 | 66.7 GB | H100 80 GB |
From the model card
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.
Here give some examples of how to use our model.
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))
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.
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.