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
# 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:
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:
{
"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"
}
}
Paste any huggingface.co model, GGUF, or dataset URL into our converter to generate ready-to-run huggingface-cli, cURL, Wget, and Python commands.
π Related Engineering Guides
Optimize Alibaba Qwen 2.5 (7B to 72B) with vLLM PagedAttention, Chunked Prefill, FP8 KV cache tuning, and resumable HF-Mirror downloads for 3x throughput.
Tested Qwen3-14B and Qwen3-30B-A3B on a single 24GB GPU. Selective HF-Mirror GGUF pulls, toggling /think mode in vLLM, and avoiding greedy-decoding loops.
Run SmolLM2 (135M/360M/1.7B) and LLaMA 3.2 on smartphones, Raspberry Pi, and browsers with MLC-LLM, llama.cpp quantization, and zero-server WebGPU.
Run Zhipu CogVideoX-5B text-to-video locally with Diffusers, 3D VAE tiling, CPU VRAM offloading on 24GB GPUs, and fast Hugging Face mirror downloads.