Baltor Get started

Models

DeepSeek-Coder-V2-Instruct

By deepseek-ai. 235.7 billion parameters, a context window of 163,840 tokens and the licence other.

Facts

Released
2024-06-14 the day the repository was first published on Hugging Face Hugging Face, read
Licence
other the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
235.7 billion counted from the safetensors weight files Hugging Face, read
Active parameters
21.4 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
Unknown
Context window
  • 163,840 tokens the maximum position embeddings in the model configuration model configuration, read
Longest output
Unknown
Tool calling
  • No the chat template in the tokenizer configuration has no place for tool definitions Hugging Face, read
Structured output
Unknown
Reasoning controls
Unknown
Inputs and outputs
text in, text out Hugging Face, read
Good for
  • Coding: the maker's name for the model marks it for code Hugging Face, read

Prices

No source lists a price for this model. It may only run on your own hardware.

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
IQ1_S44.1 GiB47.4 GiB49.0 GiB
IQ1_M49.1 GiB52.5 GiB54.1 GiB
IQ2_XXS57.3 GiB61.2 GiB62.7 GiB
IQ2_XS64.0 GiB68.2 GiB69.8 GiB
IQ2_S65.1 GiB69.3 GiB70.9 GiB
IQ2_M71.6 GiB76.2 GiB77.8 GiB
Q2_K_S74.1 GiB78.9 GiB80.5 GiB
Q2_K80.0 GiB85.1 GiB86.7 GiB
IQ3_XXS84.6 GiB89.9 GiB91.4 GiB
IQ3_XS89.7 GiB95.2 GiB96.8 GiB
IQ3_S94.7 GiB100 GiB102 GiB
Q3_K_S94.7 GiB100 GiB102 GiB
IQ3_M96.3 GiB102 GiB104 GiB
Q3_K105 GiB111 GiB113 GiB
Q3_K_L114 GiB121 GiB122 GiB
IQ4_XS117 GiB124 GiB125 GiB
IQ4_NL124 GiB131 GiB133 GiB
Q4_K_S125 GiB132 GiB134 GiB
Q4_K133 GiB140 GiB142 GiB
Q5_K_S151 GiB160 GiB161 GiB
Q5_K156 GiB165 GiB166 GiB
Q6_K180 GiB190 GiB192 GiB
Q8_0233 GiB246 GiB248 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S
  • LM Studio
    lms get legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S --jinja
  • vLLM
    vllm serve deepseek-ai/DeepSeek-Coder-V2-Instruct
  • SGLang
    sglang serve --model-path deepseek-ai/DeepSeek-Coder-V2-Instruct --port 30000

Use it from your harness

Set up for Ollama with the model hf.co/legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "hf.co/legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S": {
          "name": "DeepSeek-Coder-V2-Instruct"
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "ollama": {
      "baseUrl": "http://localhost:11434/v1",
      "api": "openai-completions",
      "apiKey": "ollama",
      "models": [
        {
          "id": "hf.co/legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Put this in a terminal:

codex --oss --local-provider ollama -m hf.co/legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S
  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Put this in ~/.claude/settings.json, or variables in your shell:

export ANTHROPIC_BASE_URL="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export ANTHROPIC_MODEL="hf.co/legraphista/DeepSeek-Coder-V2-Instruct-IMat-GGUF:Q4_K_S"
claude
  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Published results

These are results other people published. Baltor did not run them and does not rank models by them.