{
  "schema_version": "1.0",
  "id": "T-d5cf3f233bf1",
  "url": "https://gpuatlas.top/articles/T-d5cf3f233bf1/",
  "title": "模型一直重复一句话，是参数问题还是模板错了？",
  "summary": "模型重复先核对匹配模板、真实历史和停止设置，再有限调整采样，不能用惩罚参数掩盖调用错误。",
  "language": "zh-Hans",
  "category": {
    "id": "c-06",
    "name": "部署与故障",
    "url": "https://gpuatlas.top/categories/c-06/"
  },
  "topics": [],
  "body_text": "模型一直重复一句话，模板与生成参数都可能影响，先核对精确模型和调用。不要一开始大幅提高重复惩罚，可能掩盖角色或停止错误，也破坏正常术语和代码。\n\n新会话提交简单明确问题，若正常，检查原应用发送的历史是否循环、重复角色或异常长。界面看到的文字不一定等于真实提示，保存格式化输入再对照模型支持的最小示例。\n\n核对消息结束、助手起点和特殊token是否重复或缺失，Base与Instruct也不能混用。接着查看输出上限、停止标记与思考设置，参数省略不代表后端默认相同。\n\n调用正确后再逐项调整采样或重复控制，保持原题和输出预算，检查事实、数字、格式及完整结论。减少重复却丢关键信息不算任务修复，重复思考与最后答案截断也要分别记录。\n\n模板和采样已对齐，仍只在某份量化或某框架重复时，再用另一条明确支持路径对照，保留完整输出而非只截重复句。定位后要回到原客户端及长历史重试，确认循环消息或停止问题已消失。短问题恢复正常是排查线索，原来的会话任务能够完整结束才是修复结果。",
  "published_at": null,
  "modified_at": "2026-11-26T15:00:32.276655+00:00",
  "evidence": {
    "type": "documentation_and_conditional_estimates",
    "hardware_tested": false,
    "note": "资料解释与条件估算，非硬件实测。"
  },
  "sources": [
    {
      "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"
    },
    {
      "id": "llamacpp-server",
      "url": "https://raw.githubusercontent.com/ggml-org/llama.cpp/master/tools/server/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "更新使用说明与操作示例；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-d5cf3f233bf1/",
    "json": "https://gpuatlas.top/data/articles/T-d5cf3f233bf1.json",
    "markdown": "https://gpuatlas.top/data/articles/T-d5cf3f233bf1.md"
  }
}
