{
  "schema_version": "1.0",
  "id": "T-7aa0d481cd2b",
  "url": "https://gpuatlas.top/articles/T-7aa0d481cd2b/",
  "title": "DeepSeek R1 0528 Qwen3 8B 想读长文档，上下文开多大才不容易爆显存？",
  "summary": "DeepSeek R1 0528 Qwen3 8B长文可用16bit缓存算例初筛，但需为思考与最终答案留长度。",
  "language": "zh-Hans",
  "category": {
    "id": "c-02",
    "name": "推理与上下文",
    "url": "https://gpuatlas.top/categories/c-02/"
  },
  "topics": [
    {
      "id": "model-3387ea7659",
      "name": "Qwen3",
      "kind": "model",
      "description": "从小模型到更大参数档位，按显卡搭配查看 Qwen3 的运行条件，并查找长文本微调与适配器验证问题。",
      "url": "https://gpuatlas.top/topics/model-3387ea7659/"
    },
    {
      "id": "model-b64bc5faa8",
      "name": "DeepSeek R1",
      "kind": "model",
      "description": "完整版与蒸馏版的硬件需求不能混算。分别查看权重预算、多卡部署、量化运行及微调相关问题。",
      "url": "https://gpuatlas.top/topics/model-b64bc5faa8/"
    }
  ],
  "body_text": "DeepSeek-R1-0528-Qwen3-8B读长文，要同时安排材料和推理输出。模板、历史、思考与最终答案共同占token，不能把配置长度全部分给文档，再期待模型有足够空间完成推理。\n\n配置为36层、8个KV头、头维128。按常规单序列16bit KV计算，8K约1.125GiB、32K约4.5GiB、128K约18GiB；这些数值未包含权重、分页元数据与工作缓冲，用于初筛而非完整显存预测。\n\n配置和分词器应使用DeepSeek仓库版本，结构相同也不能直接混入原版Qwen3文件。先固定文件与单请求，从常见材料逐档增加，分别观察输入处理和生成峰值。\n\n输入阶段失败先看实际token、处理安排和后端预留；生成后段失败再检查总长度与活动状态。权重量化不自动改变缓存位宽，减少回答上限也不能把截断结果当作完成。\n\n128K缓存约18GiB只是一个局部算例，不是这款8B版的可用长度承诺。可用文档前段的条件追问末段结论，查看推理是否用齐中间证据；较短材料也漏证据，就先整理章节。只有扩长后才在思考中截断，则查总token与输出空间，别把两类失败都当成显存不够。",
  "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-0528-8b",
      "url": "https://huggingface.co/deepseek-ai/DeepSeek-R1-0528-Qwen3-8B/raw/main/README.md",
      "retrieved_at": "2026-11-25T11:23:02.755600+00:00"
    },
    {
      "id": "r1-0528-8b-config",
      "url": "https://huggingface.co/deepseek-ai/DeepSeek-R1-0528-Qwen3-8B/resolve/main/config.json",
      "retrieved_at": "2026-11-25T11:23:02.755600+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-7aa0d481cd2b/",
    "json": "https://gpuatlas.top/data/articles/T-7aa0d481cd2b.json",
    "markdown": "https://gpuatlas.top/data/articles/T-7aa0d481cd2b.md"
  }
}
