{
  "schema_version": "1.0",
  "id": "T-6dcef50112eb",
  "url": "https://gpuatlas.top/articles/T-6dcef50112eb/",
  "title": "DeepSeek R1 蒸馏版 14B 想读长文档，上下文开多大才不容易爆显存？",
  "summary": "DeepSeek R1蒸馏14B长文按48层缓存估算，并为思考和最终答案预留完整输出空间。",
  "language": "zh-Hans",
  "category": {
    "id": "c-02",
    "name": "推理与上下文",
    "url": "https://gpuatlas.top/categories/c-02/"
  },
  "topics": [
    {
      "id": "model-b64bc5faa8",
      "name": "DeepSeek R1",
      "kind": "model",
      "description": "完整版与蒸馏版的硬件需求不能混算。分别查看权重预算、多卡部署、量化运行及微调相关问题。",
      "url": "https://gpuatlas.top/topics/model-b64bc5faa8/"
    }
  ],
  "body_text": "DeepSeek-R1-Distill-Qwen-14B读长文，先把材料、模板、历史与预期输出共同计入token。推理可能持续较久，输入被接收以后仍需留空间给思考和最终答案，不能把整个上下文预算用来放文档。\n\n官方配置48层、8个KV头、头维128。常规单序列16bit KV在8K约1.5GiB、16K约3GiB、32K约6GiB，权重、分页和工作缓冲尚未包含。这里不能套40层Qwen3 14B的缓存数值。\n\n固定文件与单请求，从常见材料逐档增加到日常最长输入，分别观察输入处理与生成峰值。输入阶段失败时，先检查实际token、预留和处理安排；生成后段失败，再检查总长度与活动状态。\n\n容量紧张时，减少无关历史，或分别比较后端支持的量化与缓存策略。权重位宽不会自动改变缓存精度，减少输出也不能把截断后的答案算作正常完成。每次改一项并重跑原题。\n\n文档前段的约束与后段的例外需要一起使用，答对这类问题才说明长输入有价值。14B模型若完成推理却漏掉例外，先整理材料或检索；若总在给出结论前耗尽空间，则减去无关历史并保留输出余量。两种失败各有调整方向，不能仅凭一次最大输入被接受就确定日常长度。",
  "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": "r1-distill-14b",
      "url": "https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B/raw/main/README.md",
      "retrieved_at": "2026-11-25T11:23:02.755600+00:00"
    },
    {
      "id": "r1-distill-14b-config",
      "url": "https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B/resolve/main/config.json",
      "retrieved_at": "2026-11-25T11:23:43.185064+00:00"
    },
    {
      "id": "vllm-memory",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/configuration/conserving_memory.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-6dcef50112eb/",
    "json": "https://gpuatlas.top/data/articles/T-6dcef50112eb.json",
    "markdown": "https://gpuatlas.top/data/articles/T-6dcef50112eb.md"
  }
}
