{
  "schema_version": "1.0",
  "id": "T-ee0525fce7a4",
  "url": "https://gpuatlas.top/articles/T-ee0525fce7a4/",
  "title": "vLLM 和原来脚本的输出不一样，要检查哪些默认参数？",
  "summary": "vLLM与原脚本输出不同先对齐真实模板、生成默认和停止条件，再检查量化与内核差异。",
  "language": "zh-Hans",
  "category": {
    "id": "c-09",
    "name": "框架配置与故障",
    "url": "https://gpuatlas.top/categories/c-09/"
  },
  "topics": [
    {
      "id": "framework-87185e8f7f",
      "name": "vLLM",
      "kind": "framework",
      "description": "准备提供模型 API，或遇到张量并行和加载报错？从服务配置、量化支持与运行环境逐项检查。",
      "url": "https://gpuatlas.top/topics/framework-87185e8f7f/"
    }
  ],
  "body_text": "vLLM与原脚本输出不同，先比较完整输入与生成设置，不能只核对模型名称。模板、采样默认、思考模式和停止条件变化，都可能改变答案，不必然是计算错误。\n\n先固定权重修订与格式，查看generation_config、服务启动和请求层分别设置了什么。默认来源可能随版本变化，一边显式设置、另一边省略参数，不是公平对照。\n\n对齐temperature、top_p、top_k、输出上限和停止标记，保存实际渲染提示。聊天接口可能重新包装角色，重复加入特殊标记或脚本直接拼接文本，都会改变模型看到的token。\n\n支持思考的模型固定模式，明确思考与最终答案怎样统计。相同种子不能保证跨实现逐字一致，应围绕任务正确率、完整性和重复情况比较，而非仅看文本是否相同。\n\n挑出原脚本中确实答对、迁到vLLM后发生变化的几道题，保留渲染提示和完整输出；有采样时重复几次，看看差异是否稳定出现。输入与生成设置对齐后，才继续查量化和实际内核。这样能把角色包装造成的答案变化，与跨实现无法逐字一致的情况分开。",
  "published_at": null,
  "modified_at": "2026-11-26T15:17:38.690397+00:00",
  "evidence": {
    "type": "documentation_and_conditional_estimates",
    "hardware_tested": false,
    "note": "资料解释与条件估算，非硬件实测。"
  },
  "sources": [
    {
      "id": "vllm-troubleshooting",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/usage/troubleshooting.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "transformers-chat-template",
      "url": "https://raw.githubusercontent.com/huggingface/transformers/main/docs/source/en/chat_templating.md",
      "retrieved_at": "2026-11-25T10:11:32.915597+00:00"
    },
    {
      "id": "qwen3-8b",
      "url": "https://huggingface.co/Qwen/Qwen3-8B/raw/main/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-ee0525fce7a4/",
    "json": "https://gpuatlas.top/data/articles/T-ee0525fce7a4.json",
    "markdown": "https://gpuatlas.top/data/articles/T-ee0525fce7a4.md"
  }
}
