{
  "schema_version": "1.0",
  "id": "T-3152c33b96c9",
  "url": "https://gpuatlas.top/articles/T-3152c33b96c9/",
  "title": "Qwen3 32B 想读长文档，上下文开多大才不容易爆显存？",
  "summary": "Qwen3 32B长文先按实际权重和64层缓存预算，原生与扩展长度及设备承载能力分别确认。",
  "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/"
    }
  ],
  "body_text": "Qwen3 32B读长文，先看权重精度与实际余量。模型约32.8B参数，16bit原始数据约65.6GB、理想4bit约16.4GB，量化元数据和执行开销另计，文件能加载不代表还有足够长文空间。\n\n官方64层、8个KV头、头维128，常规单序列16bit KV在8192 token约2GiB、16384约4GiB、32768约8GiB，分页和临时张量未计。权重与缓存精度分别记录，多活动序列状态还要增加。\n\n模型卡区分原生32768与扩展范围，先按日常任务验证原生配置，再核对扩展与后端支持，不能把可配置最大长度直接当设备保证。\n\n固定模板、思考、采样和输出预算，从短材料逐档增加，输入、历史与答案共同统计token。分别记录启动、输入处理和生成峰值，保留最早失败，缩短输出不一定解决预填充压力。\n\n32B长文方案的取舍，应同时回答“多装下多少材料”和“证据是否用对”。缓存量化、CPU卸载或多卡逐项确认支持后，用原文前、中、后的已知事实核对引用、遗漏及截断，再看完整等待。只改善显存占用却漏了必要证据，就不能作为成功方案；正确答案也须能对应到实际长度和缓存精度。",
  "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": "qwen3-32b",
      "url": "https://huggingface.co/Qwen/Qwen3-32B/raw/main/README.md",
      "retrieved_at": "2026-11-25T10:43:11.065868+00:00"
    },
    {
      "id": "qwen3-32b-config",
      "url": "https://huggingface.co/Qwen/Qwen3-32B/resolve/main/config.json",
      "retrieved_at": "2026-11-25T10:43:11.065868+00:00"
    },
    {
      "id": "transformers-kv-cache",
      "url": "https://raw.githubusercontent.com/huggingface/transformers/main/docs/source/en/kv_cache.md",
      "retrieved_at": "2026-11-25T10:07:29.175278+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-3152c33b96c9/",
    "json": "https://gpuatlas.top/data/articles/T-3152c33b96c9.json",
    "markdown": "https://gpuatlas.top/data/articles/T-3152c33b96c9.md"
  }
}
