AgentQwen编码阿里 开源模型
Qwen3-Coder Qwen3-Coder
Qwen3系列 · 阿里巴巴 · 2025-07发布
模型介绍
阿里 Qwen3 代码专用模型,Agentic 编码能力大幅提升,256K 上下文可处理大仓库,Apache-2.0 开源,是开源编码模型的顶流之一。
模型基础信息
模型系列Qwen3系列
开发机构阿里巴巴
发布时间2025-07
参数规模8B / 32B / 235B
上下文窗口256K
模型类型文本
中文能力优秀
使用方式网页体验 / API调用 / 本地部署
免费额度与收费政策
开源免费
免费规则详情
Apache-2.0 自由商用。
收费标准简介
本地零成本。
模型能力介绍
✅ 核心优势
- 编码强
- gentic
- 256K
- 开源
⚠️ 短板与局限
- 通用对话一般
🎯 适用场景
- 编码
- 代码补全
- 仓库理解
- gent
模型使用教程
本章节整理 Qwen3-Coder 的在线体验、API调用、本地部署全套入门教程,快速上手使用该模型。
- 本地体验:
ollama run qwen3-coder或 Transformers / vLLM 加载。 - 云端:HF 托管模型可在线体验。
ollama run qwen3-coder "用中文介绍一下Qwen3-Coder"
HF_ENDPOINT=https://hf-mirror.com huggingface-cli download 阿里巴巴/Qwen3-Coder --local-dir ./qwen3-coder
或 ModelScope 国内直连下载。
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('阿里巴巴/Qwen3-Coder')
tok = AutoTokenizer.from_pretrained('阿里巴巴/Qwen3-Coder')
code = tok.apply_chat_template([{'role':'user','content':'你好'}], tokenize=False)
print(model.generate(**tok(code, return_tensors='pt')))
Qwen3-Coder 是阿里开源的代码模型(8B/32B/235B),256K 上下文适合大仓库,Agentic 编码能力强。
- Ollama 一键:
ollama pull qwen3-coder
- 交互使用:
ollama run qwen3-coder "用 Python 写一个贪吃蛇游戏"
- vLLM 生产(A3B MoE 版吞吐高):
pip install vllm && vllm serve Qwen/Qwen3-Coder-30B-A3B-Instruct --port 8000
- 接入 Continue / Cline 做 IDE 编码 Agent。
Tips:30B-A3B 是 MoE(激活 3B),单卡 24GB 可跑;8B 量化后 8GB 即可。
💡 使用小技巧
配合 Continue/Cline 体验极佳。
❓ 常见问题 FAQ
Q1:Qwen3-Coder 定位?\nA1:Agentic 代码。
访问备注与注意事项
- 权重可下
Aitishiku.com