HF-Mirror Logo
HF-Mirror Mirror Gateway
🌐 δΈ­ζ–‡
Coding Assistant πŸ•’ Reading Time: ~15 min read πŸ“… Updated 2026-11

Qwen2.5-Coder: Local Setup with Continue & Cline Plugins for Private Code Intelligence

Run Qwen2.5-Coder-32B-Instruct locally with Ollama or vLLM via HF-Mirror, then connect VS Code Continue and Cline plugins for private AI coding.

πŸ’» Why choose Qwen2.5-Coder as the main local code model?

Qwen2.5-Coder is a large code model specially designed for program design fine-tuning by Tongyi Lab, covering full sizes from 0.5B to 32B. The 32B version has scored higher than many 100-billion-level universal models on core lists such as EvalPlus, Aider, and HumanEval. Its core advantages are:

  • 128K ultra-long context window: Ability to feed the entire project's code repository directory, multi-file dependencies, and API specifications into the model at once.
  • Fill-in-the-Middle (FIM) support: Perfectly matches IDE inline code completion (Tab Autocomplete) scenarios.

⚑ Download 32B Weights via Mirror & Local vLLM / Ollama Setup

Download and launch commands
# Configure HF-Mirror endpoint
export HF_ENDPOINT="https://hf-mirror.net"
#
# Download the 32B Instruct weights
huggingface-cli download Qwen/Qwen2.5-Coder-32B-Instruct \
  --local-dir /data/models/Qwen2.5-Coder-32B-Instruct \
  --local-dir-use-symlinks False
#
# Start vLLM OpenAI compatible interface (single card or dual card 24G running AWQ quantized version)
vllm serve /data/models/Qwen2.5-Coder-32B-Instruct \
  --tensor-parallel-size 2 \
  --max-model-len 32768 \
  --port 8000

πŸ–₯️ Single-GPU 24GB Local Setup (Ollama + GGUF via HF-Mirror)

If you want to run Qwen2.5-Coder-32B-Instruct locally on a single RTX 3090/4090 (24GB VRAM) or 32GB+ Apple Silicon Mac without dual-GPU vLLM, download the Q4_K_M GGUF weight (~19.9GB) via HF-Mirror and register it with Ollama:

Qwen2.5-Coder-32B-Instruct Q4_K_M Local Ollama Setup
export HF_ENDPOINT="https://hf-mirror.net"
huggingface-cli download Qwen/Qwen2.5-Coder-32B-Instruct-GGUF \
  --include "*q4_k_m.gguf" \
  --local-dir ./qwen25-coder-32b
#
# Create Modelfile with 32K context for multi-file Cline / Continue editing
cat <<'EOF' > Modelfile
FROM ./qwen25-coder-32b/qwen2.5-coder-32b-instruct-q4_k_m.gguf
PARAMETER num_ctx 32768
PARAMETER temperature 0.2
EOF
#
ollama create qwen25-coder-32b-local -f Modelfile
ollama run qwen25-coder-32b-local

πŸ”Œ Configuring Continue and Cline plugins

Append the local interface in ~/.continue/config.json of the VS Code plug-in Continue:

Continue configuration example
{
  "models": [
    {
      "title": "Qwen2.5-Coder-32B (Local)",
      "provider": "openai",
      "model": "Qwen2.5-Coder-32B-Instruct",
      "apiBase": "http://localhost:8000/v1",
      "apiKey": "EMPTY"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Qwen2.5-Coder-1.5B (FIM)",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b-base"
  }
}
⚑ Need Instant Mirror Download Commands for This Model?

Paste any huggingface.co model, GGUF, or dataset URL into our converter to generate ready-to-run huggingface-cli, cURL, Wget, and Python commands.

Open HF Link Converter β†’

πŸ”— Related Engineering Guides

← Articles Index Explore All 39 Open-Source AI Engineering Guides Quick Start &rarr; 5-Minute Zero-Friction Setup Tutorial