Baltor Get started

Models

DeepSeek V3

By DeepSeek. 684.5 billion parameters, a context window of 163,840 tokens, licence Unknown.

Facts

Released
2024-12-25 the day the repository was first published on Hugging Face Hugging Face, read
Licence
Unknown
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
684.5 billion counted from the safetensors weight files Hugging Face, read
Active parameters
51.1 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
2024-07-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 163,840 tokens the maximum position embeddings in the model configuration model configuration, read
  • 163,840 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 16,384 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • No the chat template in the tokenizer configuration has no place for tool definitions Hugging Face, read
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
Unknown
Inputs and outputs
text in, text out Hugging Face, read
Good for
No source names a use.

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
SiliconFlow direct0.250 USD1.00 USD164,000 older than 30 days; check the providermodels.dev, read
SiliconFlow (China) direct0.250 USD1.00 USD164,000 older than 30 days; check the providermodels.dev, read
StreamLake through OpenRouter0.257 USD1.03 USD128,000OpenRouter endpoints, read
Pioneer direct0.270 USD1.12 USD163,840 older than 30 days; check the providermodels.dev, read
Deep Infra direct0.320 USD0.890 USD163,840 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.320 USD0.890 USD163,840OpenRouter endpoints, read
Hugging Face direct0.400 USD1.30 USD64,000 older than 30 days; check the providermodels.dev, read
Together AI direct1.25 USD1.25 USD131,072 older than 30 days; check the providermodels.dev, read

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
Q2_K206 GiB217 GiB219 GiB
Q2_K_L227 GiB240 GiB241 GiB
Q3_K_M297 GiB313 GiB315 GiB
Q4_K_M377 GiB397 GiB398 GiB
Q5_K_M443 GiB466 GiB468 GiB
Q6_K513 GiB540 GiB541 GiB
Q8_0664 GiB699 GiB700 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/unsloth/DeepSeek-V3-GGUF:Q4_K_M
  • LM Studio
    lms get unsloth/DeepSeek-V3-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf unsloth/DeepSeek-V3-GGUF:Q4_K_M --jinja
  • vLLM
    vllm serve deepseek-ai/DeepSeek-V3
  • SGLang
    sglang serve --model-path deepseek-ai/DeepSeek-V3 --port 30000

Use it from your harness

Set up for DeepInfra with the model deepseek-ai/DeepSeek-V3. 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": {
    "deepinfra": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DeepInfra",
      "options": {
        "baseURL": "https://api.deepinfra.com/v1/openai",
        "apiKey": "{env:DEEPINFRA_TOKEN}"
      },
      "models": {
        "deepseek-ai/DeepSeek-V3": {
          "name": "DeepSeek V3",
          "limit": {
            "context": 163840,
            "output": 16384
          }
        }
      }
    }
  }
}
  • 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": {
    "deepinfra": {
      "baseUrl": "https://api.deepinfra.com/v1/openai",
      "api": "openai-completions",
      "apiKey": "$DEEPINFRA_TOKEN",
      "models": [
        {
          "id": "deepseek-ai/DeepSeek-V3"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and DeepInfra documents no Responses address. A gateway that offers one can sit in between.

  • 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="https://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="deepseek-ai/DeepSeek-V3"
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 .

Other ways to reach it

Published results

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