模型名称: Shadow0482/mythos_fast (VibeThinker-3B)
模型链接: HuggingFace
模型描述: VibeThinker-3B 是一个基于 Qwen2 架构的 3B 参数语言模型,经过强化学习微调,支持对话和工具调用。
模型架构: Qwen2-based Transformer
参数规模: 3B
量化格式: GGUF Q4_K_M (~1.8GB)
输入规格:
输出规格:
| 依赖项 | 版本要求 | 说明 |
|---|---|---|
| Python | >= 3.10 | 推荐 3.11 |
| llama-cpp-python | >= 0.3.0 | GGUF 推理引擎(CPU) |
| torch-npu | >= 2.1.0 | 昇腾 NPU 后端(环境检测用) |
| 昇腾驱动 | CANN 8.0+ | 推荐 CANN 8.5.1 |
安装命令:
pip install llama-cpp-python torch-npu -i https://pypi.tuna.tsinghua.edu.cn/simple注意: 当前 GGUF 格式在 llama-cpp-python 中仅支持 CPU 推理(NEON/ARM_FMA)。NPU 硬件可用但不会被 GGUF 推理引擎使用。
# 检查 NPU 设备
npu-smi info
# 验证 torch_npu
python3 -c "import torch_npu; print(torch.npu.device_count(), torch.npu.get_device_name(0))"# HuggingFace(推荐)
huggingface-cli download Shadow0482/mythos_fast --include "VibeThinker-3B.Q4_K_M.gguf" --local-dir ./weights
# 或使用 AtomGit 镜像
export HF_ENDPOINT="https://hf-mirror.com"
huggingface-cli download Shadow0482/mythos_fast --include "VibeThinker-3B.Q4_K_M.gguf" --local-dir ./weights# 单条推理
python3 inference.py --model-path ./weights/VibeThinker-3B.Q4_K_M.gguf
# 交互模式
python3 inference.py --model-path ./weights/VibeThinker-3B.Q4_K_M.gguf --interactive
# 调整参数
python3 inference.py --model-path ./weights/VibeThinker-3B.Q4_K_M.gguf --n-threads 8 --max-tokens 512 --temperature 0.8| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| --model-path | str | 必填 | GGUF 模型文件路径 |
| --n-ctx | int | 2048 | 上下文窗口大小 |
| --n-threads | int | 4 | CPU 线程数 |
| --max-tokens | int | 256 | 最大生成 token 数 |
| --temperature | float | 0.7 | 采样温度 |
| --top-p | float | 0.9 | Top-p 采样 |
| --interactive | flag | False | 交互对话模式 |
[状态] 加载模型中: ./weights/VibeThinker-3B.Q4_K_M.gguf
[信息] Chat template: default
[信息] 模型加载成功
[输入] What is 2+2?
[输出] 4. 2 + 2 = 4. This is a basic arithmetic operation...
[耗时] 2.35s
[状态] SUCCESS[基准测试] 3次推理统计:
平均: 2.41s
最小: 2.35s
最大: 2.48s
标准差: 0.05s运行命令:
python3 inference.py --model-path ./weights/VibeThinker-3B.Q4_K_M.gguf输出:
[状态] 加载模型中: ./weights/VibeThinker-3B.Q4_K_M.gguf
[信息] Chat template: default
[信息] 模型加载成功
[输入] What is 2+2?
[输出] 4. 2 + 2 = 4. This is a basic arithmetic operation where adding two and two together gives you four. Is there anything else you'd like to know or any other math problem I can help you with?
[耗时] 2.35s
[状态] SUCCESS运行命令:
python3 inference.py --model-path ./weights/VibeThinker-3B.Q4_K_M.gguf --interactive输出:
[状态] 加载模型中: ./weights/VibeThinker-3B.Q4_K_M.gguf
[信息] 模型加载成功
=== 交互模式 ===
用户: Hello!
助手: Hello! How can I help you today?
[耗时] 1.82s


测试数据: 人工构造简单算术和推理题
评测指标:
| 指标 | 结果 | 说明 |
|---|---|---|
| 算术正确率 | 4/4 | 简单加减法 |
| 推理响应质量 | 通过 | 能正确理解问题并给出合理回答 |
| 推理速度 | ~2.4s/token | CPU (ARM NEON) |
评测命令:
python3 inference.py --model-path ./weights/VibeThinker-3B.Q4_K_M.gguf --max-tokens 128