Mindket

Qwen2.5-Coder-32B-Instruct

新上架第 1 版 · 更新于

概览

编写、解释和修复代码,是 Qwen2.5-Coder 系列中最大的指令微调模型,32B 参数。适合想在自己硬件上运行强大开源编程模型的开发者。

Qwen2.5-Coder-32B-Instruct 是一款工具包,属于开发类,由 Mindket 上架。可免费获取。当前为第 1 版,最近更新于 。在本页下载,是一个装着它全部文件的 zip 压缩包。这些文件不会自己运行。

速览

你需要
  • 带 pip 的 Python
  • 较新的 transformers 版本,因为 4.37.0 以下的版本会报 qwen2 的 KeyError
  • BF16 权重约 65.5 GB 磁盘空间,4-bit 约 16.4 GB(估算值)
用在
  • 你自己的电脑或服务器,装有 Python 和 transformers 库
  • vLLM,模型卡推荐用它部署
  • Qwen Chat,模型卡链接的托管聊天服务
先运行
pip install -U huggingface_hub
hf download Qwen/Qwen2.5-Coder-32B-Instruct

平台

服务器可在其上运行

关于

它是什么

Qwen2.5-Coder-32B-Instruct 是 Qwen2.5-Coder 系列的 32B 指令微调模型,该系列以前叫 CodeQwen。它面向代码生成、代码推理和代码修复。模型卡称其训练规模增长到 5.5 万亿个 token,包括源代码和文本与代码的配对数据。

适合谁

想自己托管大型开源编程模型,用于补全、评审和智能体类工作的开发者和团队。

IndustryWho uses itHow they use itExample
软件开发者用本地模型生成和修复代码让它写一个快速排序例程
开发工具工具开发者用开源模型驱动代码智能体接入一个会编辑文件的智能体
教育学习者获取代码和算法的讲解问一个函数为什么出错

如果你没有大显存的 GPU,模型卡里更小的 Coder 尺寸可能更适合你。

用在哪里

  • 你自己的电脑或服务器,装有 Python 和 transformers 库
  • vLLM,模型卡推荐用它部署
  • Qwen Chat,模型卡链接的托管聊天服务
Use caseWhoWhat they get back
代码生成开发者根据平实请求写出的可用代码
代码修复开发者出错代码的修正版本
代码智能体工具开发者能驱动智能体工作流的模型

如何设置

  • 带 pip 的 Python
  • 较新的 transformers 版本,因为 4.37.0 以下的版本会报 qwen2 的 KeyError
  • BF16 权重约 65.5 GB 磁盘空间,4-bit 约 16.4 GB(估算值)
  1. 安装 Hugging Face hub 工具。
  2. 下载模型文件。
  3. 运行模型卡里的 Python 代码,它会加载分词器和模型并生成回复。
pip install -U huggingface_hub
hf download Qwen/Qwen2.5-Coder-32B-Instruct

如何使用

用聊天模板格式化 system 和 user 消息,然后生成。这是模型卡里的代码,它请模型写一个快速排序算法。

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Qwen/Qwen2.5-Coder-32B-Instruct"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "write a quick sort algorithm."
messages = [
    {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=512
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]

如果输入超过 32,768 个 token,模型卡说对支持的框架,要在 config.json 里加上 YaRN 设置。

{
  ...,
  "rope_scaling": {
    "factor": 4.0,
    "original_max_position_embeddings": 32768,
    "type": "yarn"
  }
}

示例

你原样运行这段代码,它请模型写一个快速排序算法。变量 response 里是模型给出的代码回答,最多 512 个新 token。

新手与专家

如果你是新手,先运行上面的代码,再把 prompt 换成你自己的小型编程任务。先确认 GPU 显存,因为权重很大。

如果你是专家,模型有 64 层,40 个查询头和 8 个键值头。默认配置处理 32,768 个 token,YaRN 把它向完整的 131,072 拉伸。模型卡指出 vLLM 使用静态 YaRN,可能会损害较短文本的表现。

  1. 你发出一个编程请求
  2. 聊天模板格式化消息
  3. 模型生成代码和说明
  4. 你解码回复并审阅

注意事项

模型卡说,只有在需要处理长输入时才应加上 YaRN 设置。

模型卡中 Qwen2.5-Coder-32B-Instruct 的数据
层数64 层
参数量32.5 十亿
非嵌入参数量31.0 十亿
完整上下文131072 个 token
  • License: Apache 2.0,与 Hugging Face 记录一致。
  • Cost to run: 没有提到 API 密钥或账号。你需要能放下权重的硬件。
  • Data it reaches: 下载会访问 Hugging Face。代码没有说明会访问其他文件或网络。
  • Not for: 模型卡没有列出禁止的用途。静态 YaRN 可能降低短文本的质量,所以只在长输入时启用。

README 和文件

README

Qwen2.5-Coder-32B-Instruct

编写、解释和修复代码,是 Qwen2.5-Coder 系列中最大的指令微调模型,32B 参数。适合想在自己硬件上运行强大开源编程模型的开发者。

由 Qwen 在 Hugging Face 上制作。这些说明是 Mindket 根据它的模型页面和模型卡写的,模型自己的文件和许可证在 Hugging Face 上。

简介

它是什么:Qwen2.5-Coder-32B-Instruct 是 Qwen2.5-Coder 系列的 32B 指令微调模型,该系列以前叫 CodeQwen。它面向代码生成、代码推理和代码修复。模型卡称其训练规模增长到 5.5 万亿个 token,包括源代码和文本与代码的配对数据。

适合谁:想自己托管大型开源编程模型,用于补全、评审和智能体类工作的开发者和团队。

Industry | Who uses it | How they use it | Example
软件 | 开发者 | 用本地模型生成和修复代码 | 让它写一个快速排序例程
开发工具 | 工具开发者 | 用开源模型驱动代码智能体 | 接入一个会编辑文件的智能体
教育 | 学习者 | 获取代码和算法的讲解 | 问一个函数为什么出错

如果你没有大显存的 GPU,模型卡里更小的 Coder 尺寸可能更适合你。

用在哪里:

  • 你自己的电脑或服务器,装有 Python 和 transformers 库
  • vLLM,模型卡推荐用它部署
  • Qwen Chat,模型卡链接的托管聊天服务
Use case | Who | What they get back
代码生成 | 开发者 | 根据平实请求写出的可用代码
代码修复 | 开发者 | 出错代码的修正版本
代码智能体 | 工具开发者 | 能驱动智能体工作流的模型

如何设置:

  • 带 pip 的 Python
  • 较新的 transformers 版本,因为 4.37.0 以下的版本会报 qwen2 的 KeyError
  • BF16 权重约 65.5 GB 磁盘空间,4-bit 约 16.4 GB(估算值)
  1. 安装 Hugging Face hub 工具。
  2. 下载模型文件。
  3. 运行模型卡里的 Python 代码,它会加载分词器和模型并生成回复。
pip install -U huggingface_hub
hf download Qwen/Qwen2.5-Coder-32B-Instruct

如何使用:用聊天模板格式化 system 和 user 消息,然后生成。这是模型卡里的代码,它请模型写一个快速排序算法。

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Qwen/Qwen2.5-Coder-32B-Instruct"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "write a quick sort algorithm."
messages = [
    {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=512
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]

如果输入超过 32,768 个 token,模型卡说对支持的框架,要在 config.json 里加上 YaRN 设置。

{
  ...,
  "rope_scaling": {
    "factor": 4.0,
    "original_max_position_embeddings": 32768,
    "type": "yarn"
  }
}

示例:你原样运行这段代码,它请模型写一个快速排序算法。变量 response 里是模型给出的代码回答,最多 512 个新 token。

新手与专家:如果你是新手,先运行上面的代码,再把 prompt 换成你自己的小型编程任务。先确认 GPU 显存,因为权重很大。

如果你是专家,模型有 64 层,40 个查询头和 8 个键值头。默认配置处理 32,768 个 token,YaRN 把它向完整的 131,072 拉伸。模型卡指出 vLLM 使用静态 YaRN,可能会损害较短文本的表现。

你发出一个编程请求
聊天模板格式化消息
模型生成代码和说明
你解码回复并审阅

注意事项:模型卡说,只有在需要处理长输入时才应加上 YaRN 设置。

Title: 模型卡中 Qwen2.5-Coder-32B-Instruct 的数据
层数: 64 层
参数量: 32.5 十亿
非嵌入参数量: 31.0 十亿
完整上下文: 131072 个 token
  • License: Apache 2.0,与 Hugging Face 记录一致。
  • Cost to run: 没有提到 API 密钥或账号。你需要能放下权重的硬件。
  • Data it reaches: 下载会访问 Hugging Face。代码没有说明会访问其他文件或网络。
  • Not for: 模型卡没有列出禁止的用途。静态 YaRN 可能降低短文本的质量,所以只在长输入时启用。

Hugging Face 上的数据(2026年11月13日)

  • 任务:text generation
  • 框架:transformers
  • 参数量:32.8B
  • Weights: about 65.5 GB in BF16; about 16.4 GB at 4-bit (estimate)
  • Formats: Safetensors
  • 最近 30 天下载:546,583
  • 点赞:2,211
  • 许可证:apache-2.0
  • 语言:en
  • 基于:Qwen/Qwen2.5-Coder-32B
  • Quantized versions: 141
  • Fine-tunes: 156
  • 标签:transformers, safetensors, qwen2, text-generation, code, codeqwen, chat, qwen, qwen-coder, conversational

链接

  • 模型:https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct
  • 文件:https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct/tree/main

获取模型

用 Hugging Face 的命令行下载它的文件:

pip install -U huggingface_hub
hf download Qwen/Qwen2.5-Coder-32B-Instruct

然后按它的模型卡使用它。这个工具包里没有会自己运行的东西。

文件
README.md  6 KB

1 个文件,共 6 KB,以 zip 压缩包下载。

更新内容

  • 第 1 版 · 2026-11-13

同类产品对比

同一分类里与本产品共有标签最多的已上架 Hugging Face 模型。

产品最近 30 天下载点赞参数量许可证最近更新
Qwen2.5-Coder-32B-Instruct 本页546,5832,21132.8Bapache-2.0
Qwen2.5-Coder-14B-Instruct共有 codeqwen · qwen-coder · qwen21,860,32721414.8Bapache-2.0
Qwen2.5-Coder-7B-Instruct共有 codeqwen · qwen-coder · qwen21,505,9998727.6Bapache-2.0
Qwen2.5-Coder-0.5B-Instruct共有 codeqwen · qwen-coder · qwen271,01396494Mapache-2.0
Qwen2.5-Coder-7B共有 codeqwen · qwen-coder · qwen2334,2462007.6Bapache-2.0
Qwen2.5-Coder-7B-Instruct-GGUF共有 codeqwen · qwen-coder · chat375,8606537.6Bapache-2.0
数据为 Mindket 在 2026-11-12 至 2026-11-13 期间读取的数值。

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

victormustarShow HN: Video Composition Tool Powered by Qwen2.5-Coder and FFmpegThis tool allows you to drag and drop your own assets, such as videos, audio, and images, and then use natural language instructions to generate a new video. It uses the Qwen2.5-Coder-32B-Instruct model to process your assets and instructions, to generate a valid FFMPEG command. This command is…4 分sourcecodeplzTry Qwen2.5-Coder-32B on HuggingChat2 分 · 2 条回复geektipsQwen 2.5 Coder: LLM model based on Qwen 2.5 architecture optimised for coding1 分h14hPi – A minimal terminal coding harnessOh dang I had no idea that gpt-oss-120b was that cheap these days. And yeah, given Vultr inference is in beta, their docs ain't great. In addition to kimi-k2-instruct and gpt-oss-120b, they currently offer: deepseek-r1-distill-llama-70b deepseek-r1-distill-qwen-32b qwen2.5-coder-32b-instruct Best…maverick98[dead]I used smolagents and hosted it on hugging face and it runs with Qwen/Qwen2.5-Coder-32B-Instruct. I also simulated it with Ardupilot https://huggingface.co/spaces/evangelosmeklis/deepdroneanotherpaulgThe Llama 4 herdLlama 4 Maverick scored 16% on the aider polyglot coding benchmark [0]. 73% Gemini 2.5 Pro (SOTA) 60% Sonnet 3.7 (no thinking) 55% DeepSeek V3 0324 22% Qwen Max 16% Qwen2.5-Coder-32B-Instruct 16% Llama 4 Maverick [0] https://aider.chat/docs/leaderboards/?highlight=MaverickBadGPTI made an intentionally unhelpful AI chatbotI was experimenting with Deepseek-Coder and other open source LLMs, and had this idea: what if we made an AI that intentionally refuses to help and gives sarcastic responses? Sort of an antidote to all the helpful AI assistants out there. The result is BadGPT - an AI that responds with snark,…coder543Tabby: Self-hosted AI coding assistantgpt-4o-mini might not be the best point of reference for what good LLMs can do with code: https://aider.chat/docs/leaderboards/#aider-polyglot-benchma... A teeny tiny model such as a 1.5B model is really dumb, and not good at interactively generating code in a conversational way, but models in the…

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

Bonsai-27B-GGUF

lmstudio-community · 工具包

面向 LM Studio 的 27B Bonsai 模型 GGUF 转换版,含 3.80 GB 的 Q1_0 语言文件和 0.93 GB 的 BF16 视觉投影器。已测试文本、视觉和并行工具调用。

新上架

以每权重 2.9 位的 EXL3 量化运行 DeepSeek-V4.1-Flash-1017,这是一份 196 GiB 的副本,适合在自己硬件上部署大模型的人。困惑度与原模型相差不大。

新上架

MusicGen Small

facebook · 工具包

根据文字描述或音频提示生成短音乐片段,是 facebook MusicGen 的 small 检查点。适合想在自己电脑上试用文字生成音乐的开发者和音乐爱好者。

新上架

开发类的相似商品

查看开发类的全部商品

Lexnet

alpindale · 工具包

用一个只有约 984 个权重的小型神经网络,为 C 源代码的每个字符打上语法高亮标签,通过一个小小的 C 程序运行。适合对手工设计的网络好奇的开发者和研究者。

新上架

FLUX.2 Klein LoRA Studio

prithivMLmods · 工具包

在浏览器或你自己的电脑上,用一个 Gradio 应用试用 FLUX.2 Klein 图像模型的一组 LoRA。适合制作或测试 AI 图片的人。

新上架

anaksor-ocr

Sokheng · 工具包

这个模型从文档、收据和路牌照片里读取高棉语和英语文字,用一个检测器找文本行,再用识别器读每一行。适合需要在 Python 里做高棉语 OCR 的开发者。

新上架