LibreAI / Local LLM / DeepSeek-Coder-V2
// local-llm · deepseek-ai/DeepSeek-Coder-V2

DeepSeek-Coder-V2

DeepSeek-Coder-V2 — DeepSeek's open code model family that challenged closed-source code models.

★ 7.0k stars⑂ 1.1k forksMITupdated 2025-11
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

DeepSeek-Coder-V2 is an open-source local llm project by deepseek-ai (deepseek-ai/DeepSeek-Coder-V2 on GitHub). It has 7,014 GitHub stars and 1,108 forks, is released under the MIT license, and was last updated on GitHub on 11 November 2025.

GitHub stars
7,014
Forks
1,108
License
MIT
Last updated on GitHub
11 November 2025
Category
Local LLM
Listing
Full install guide
// how it works

How it works

  1. Clarify your goal

    Choose the variant that fits your hardware — a Lite model for a single workstation GPU, or the full model only if you have a multi-GPU server — and your inference stack (Transformers or SGLang).

  2. Get the project

    Clone deepseek-ai/DeepSeek-Coder-V2 from GitHub (or use the install path in the run steps below) and skim its README for the parts relevant to your goal.

  3. Install and configure

    There is nothing to build: download the weights from the model's Hugging Face page and load them with Transformers or SGLang using the README's examples.

  4. Run your first task

    Run the code-completion example with DeepSeek-Coder-V2-Lite-Base on a short Python snippet, then try the chat example with the Instruct variant.

// features

Why people love it

Code generation strength

Evaluated extensively on code generation benchmarks in the repo, positioning it against leading closed models.

Code completion and insertion

Supports fill-in-the-middle style code insertion as well as plain completion, with worked examples for both.

Code fixing

Evaluated on code-fixing tasks, so it can be used to repair broken code, not just write new code.

Chat and base variants

Instruct (chat) and Base variants, in full and Lite sizes, cover assistant use and raw completion/fine-tuning bases.

Mathematical and general ability

The repo also reports mathematical-reasoning and general natural-language evaluations, beyond pure code tasks.

Two inference paths

Run with Hugging Face Transformers for simplicity, or SGLang (the recommended path) for efficient serving.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source from the official GitHub repository for DeepSeek-Coder-V2.

    git clone https://github.com/deepseek-ai/DeepSeek-Coder-V2.git
    cd DeepSeek-Coder-V2
  2. Load with Transformers

    Use the README's Hugging Face example to load the Lite base model for code completion.

    python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; m='deepseek-ai/DeepSeek-Coder-V2-Lite-Base'; tok=AutoTokenizer.from_pretrained(m, trust_remote_code=True)"  # full example in README
  3. Or serve with SGLang

    For the full model, follow the README's SGLang section (BF16, tensor parallelism) to serve it efficiently.

    # See README 'Inference with SGLang (recommended)' for the exact serve command and settings
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains DeepSeek-Coder-V2?

deepseek-ai (DeepSeek), through the deepseek-ai/DeepSeek-Coder-V2 repository, with models on Hugging Face and an API platform documented in the repo.

Is DeepSeek-Coder-V2 free to use?

Yes — the project is open source under the MIT license as recorded for this listing. You can use, modify and distribute it under the MIT terms.

Does DeepSeek-Coder-V2 need a paid API key?

Running locally needs no API key — just hardware. DeepSeek also offers a hosted API platform if you prefer not to run the weights yourself.

How does DeepSeek-Coder-V2 compare to a hosted code assistant API?

A hosted API is instant and scales for you, billed per token. DeepSeek-Coder-V2 gives you open weights to run, inspect and fine-tune on your own GPUs — full control and no per-token bill, with real hardware requirements, especially for the full model.

How do I get started with DeepSeek-Coder-V2?

Clone the repository (or use the documented installer), follow the install and configure steps on this page, and run the smallest real task first — run the code-completion example with DeepSeek-Coder-V2-Lite-Base on a short Python snippet, then try the chat example with the Instruct variant.

// keep exploring

Similar tools

Local LLM

Qwen3-Coder

Qwen3-Coder - Alibaba's open code model series for agentic coding, up to 1M tokens of context

★ 16.8k starsNOASSERTION
View guide →
Local LLM

maid

Maid is a free and open source application for interfacing with llama.cpp models locally, and with Anthropic, DeepSeek, Ollama, Mistral and OpenAI models rem…

★ 2.7k starsMIT
View guide →
Local LLM

node-llama-cpp

Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level

★ 2.2k starsMIT
View guide →
Local LLM

ChatLLM-Web

Private AI chat and model studio that runs in your browser via WebGPU.

★ 636 starsMIT
View guide →
Local LLM

vllm-omni

vLLM-Omni — efficient inference for omni-modality models: image, audio, video, diffusion and policies.

★ 7.1k starsApache-2.0
View guide →
Local LLM

ComfyUI-GGUF

GGUF Quantization support for native ComfyUI models

★ 4.1k starsApache-2.0
View guide →
// alternatives

Alternatives in Local LLM

The most-starred other Local LLM projects in the LibreAI catalogue — the realistic shortlist if DeepSeek-Coder-V2 is not the right fit.

Get DeepSeek-Coder-V2

Free and open — grab the source, star the repo, and start creating.