Model reference · open weights
deepseek-coder is an open-weight language model from DeepSeek. DeepSeek-Coder-V2-Instruct (BF16) weighs 471 GB; the smallest configuration that runs it is 4× H200 141 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 | 471 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … B200 180 GB 12 smaller cards | — | — | — | |
| 4× H200 141 GB tensor parallel | 21 | 5 | all 160K | 138 GB a card |
| 8× H100 80 GB tensor parallel | 20 | 5 | all 160K | 78.1 GB a card |
| 8× A100 80 GB tensor parallel | 31 | 7 | all 160K | 78.2 GB a card |
| 4× B200 180 GB tensor parallel | 82 | 20 | all 160K | 176 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 474 GB | 475 GB |
| 5 | 476 GB | 484 GB |
| 8 | 478 GB | 491 GB |
| 16 | 482 GB | 509 GB |
| 32 | 491 GB | 545 GB |
| 64 | 509 GB | 618 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 ↗ | 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 (above) ↗ | 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.