Baltor Get started

Models

Qwen2.5 Coder 32B Instruct

By Qwen. 32.8 billion parameters, a context window of 32,768 tokens and the licence apache-2.0.

Facts

Released
2024-11-06 the day the repository was first published on Hugging Face Hugging Face, read
Licence
apache-2.0 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
32.8 billion counted from the safetensors weight files Hugging Face, read
Active parameters
Unknown
Knowledge cutoff
2024-06-30 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 32,768 tokens the maximum position embeddings in the model configuration model configuration, read
  • 32,768 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 29,491 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes the chat template in the tokenizer configuration accepts tool definitions Hugging Face, read
  • No OpenRouter does not list tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists response_format, a JSON mode, among the supported parameters OpenRouter, read
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

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Nvidia direct0 USD0 USD128,000 older than 30 days; check the providermodels.dev, read
Hugging Face direct0.060 USD0.200 USD131,072 older than 30 days; check the providermodels.dev, read
NanoGPT direct0.201 USD0.201 USD32,000 older than 30 days; check the providermodels.dev, read
Cloudflare through OpenRouter0.660 USD1.00 USD32,768OpenRouter endpoints, 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
F16 estimate61.0 GiB66.6 GiB72.6 GiB
Q8_0 estimate32.4 GiB36.5 GiB42.5 GiB
Q4_0 estimate17.2 GiB20.5 GiB26.5 GiB

Start it with a local runtime

  • vLLM
    vllm serve Qwen/Qwen2.5-Coder-32B-Instruct
  • SGLang
    sglang serve --model-path Qwen/Qwen2.5-Coder-32B-Instruct --port 30000

Use it from your harness

Set up for Hugging Face with the model Qwen/Qwen2.5-Coder-32B-Instruct. 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": {
    "huggingface": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Hugging Face",
      "options": {
        "baseURL": "https://router.huggingface.co/v1",
        "apiKey": "{env:HF_TOKEN}"
      },
      "models": {
        "Qwen/Qwen2.5-Coder-32B-Instruct": {
          "name": "Qwen2.5 Coder 32B Instruct",
          "limit": {
            "context": 32768,
            "output": 29491
          }
        }
      }
    }
  }
}
  • 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": {
    "huggingface": {
      "baseUrl": "https://router.huggingface.co/v1",
      "api": "openai-completions",
      "apiKey": "$HF_TOKEN",
      "models": [
        {
          "id": "Qwen/Qwen2.5-Coder-32B-Instruct"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Hugging Face 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

Claude Code sends Anthropic Messages requests, and Hugging Face documents no such address. A gateway that translates to that API can sit in between.

  • 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

  • NanoGPT, model qwen/qwen2.5-coder-32b-instruct
  • Nvidia, model qwen/qwen2.5-coder-32b-instruct
  • OpenRouter, model qwen/qwen-2.5-coder-32b-instruct

Published results

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