---
title: qwen2_5_32b_instruct_wenzhi
canonical_url: "https://www.modelscope.cn/models/xinsiwei/qwen2_5_32b_instruct_wenzhi"
md_url: "https://www.modelscope.cn/models/xinsiwei/qwen2_5_32b_instruct_wenzhi.md"
repository: xinsiwei/qwen2_5_32b_instruct_wenzhi
chinese_name: InsightMatrix
last_updated: 2025-12-03
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - qwen2
architectures:
  - Qwen2ForCausalLM
parameters: 32.8B
tensor_type:
  - BF16
library_name:
  - pytorch
  - transformer
  - safetensors
frameworks:
  - Pytorch
downloads: 7
stars: 1
---

# qwen2_5_32b_instruct_wenzhi

> qwen2_5_32b_instruct_wenzhi - xinsiwei 在 ModelScope 开源的模型。InsightMatrix 是基于 Qwen2.5‑32B‑Instruct 深度定制的 SFT + DPO 对齐模型，是问知AI平台的核心大模型底座。在保留原始 Qwen2.5‑32B 强大通用能力的基础上，InsightMatrix…

- **Repository**: xinsiwei/qwen2_5_32b_instruct_wenzhi
- **Tasks**: text-generation
- **Parameters**: 32.8B
- **Downloads**: 7
- **Stars**: 1
- **Last updated**: 2025-12-03

Source: https://www.modelscope.cn/models/xinsiwei/qwen2_5_32b_instruct_wenzhi

---

# InsightMatrix v1.0.0

**模型名称**：InsightMatrix  
**基座模型**：Qwen2.5-32B-Instruct  
**微调方式**：SFT + DPO（LoRA，已合并）  
**框架**：PyTorch / Transformers

InsightMatrix 是问知AI自研的企业级私有大模型，基于 Qwen2.5‑32B‑Instruct 进行 SFT + DPO 精调与偏好对齐，是问知AI平台的核心模型底座。

在保留原始 Qwen2.5 系列强大通用能力的前提下，InsightMatrix 结合真实业务数据，重点优化了以下能力：

- 企业级 **知识与内容管理**
- **内容合规与风控审核**
- **音频内容风险识别** 
- 面向业务场景的 **智能体编排** 
- 品牌化回复风格（问知AI 语气、礼貌程度与安全策略）

---

## 1. 模型文件结构说明

本仓库包含：

- `config.json`：模型配置（Qwen2.5-32B 架构信息）
- `generation_config.json`：推理默认超参
- `tokenizer.json`、`vocab.json`、`merges.txt`：分词器相关文件
- `chat_template.jinja`：对话模板，兼容 Qwen 聊天格式
- `model-00001-of-00014.safetensors` ~ `model-00014-of-00014.safetensors`：权重分片
- `model.safetensors.index.json`：权重索引文件
- `special_tokens_map.json`、`tokenizer_config.json`、`added_tokens.json`

这些文件可直接通过 `transformers` 或 `modelscope` 加载使用。

---

## 2. 使用方式

### 2.1 使用 Transformers 本地加载

```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_dir = "xinsiwei/qwen2_5_32b_instruct_wenzhi"  # 请替换为本仓库 ID 或本地路径

tokenizer = AutoTokenizer.from_pretrained(
    model_dir,
    trust_remote_code=True,
)

model = AutoModelForCausalLM.from_pretrained(
    model_dir,
    torch_dtype=torch.bfloat16,
    device_map="auto",          # 单机多卡/单卡按需调整
    trust_remote_code=True,
)

prompt = "用户：什么是人工智能？\n助手："
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=120,
        do_sample=True,
        temperature=0.3,
        top_p=0.8,
        repetition_penalty=1.25,
    )

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```**
