{
  "schema_version": "1.0",
  "id": "T-fb7ab91bd088",
  "url": "https://gpuatlas.top/articles/T-fb7ab91bd088/",
  "title": "80G 显存跑本地模型，怎么给长上下文留空间？",
  "summary": "80G长文空间应联合安排权重精度、上下文和活动请求，条件算例可提前排除过紧配置。",
  "language": "zh-Hans",
  "category": {
    "id": "c-11",
    "name": "按显存找方案",
    "url": "https://gpuatlas.top/categories/c-11/"
  },
  "topics": [],
  "body_text": "80G显存跑长文，先给权重、请求状态和运行缓冲分别留空间。容量大并不意味着模型侧最大长度可以直接开启，大模型高精度驻留以后，剩余空间仍可能很紧。\n\n以Qwen3 32B为条件例子，实际约32.8B参数，16bit原始数据约65.6GB，即约61.09GiB。常规单序列16bit KV在32768 token约8GiB，两个同长度活动序列约16GiB，分页、框架缓冲和其他进程未计。\n\n若假设可用预算恰为80GiB，上述权重小计与两个32K序列KV已约77.09GiB。这个算术不是硬件测量，也不能套给所有32B结构，作用是提醒高精度、长文和并发必须联合安排。\n\n先固定文件做单请求长度阶梯，再固定长度增加活动请求，分别观察输入处理与生成峰值。工具预留的大块缓存不等于当前文档已经使用全部空间，应结合具体分配方式解释。\n\n容量不足时比较兼容量化、受支持的缓存策略或减少无关历史，每次改一项重跑。材料前中后的事实与完整答案一起验收，保存实际token、缓存精度和完整等待。目标是完成需要的长文任务，而非同时打开所有上限。",
  "published_at": null,
  "modified_at": null,
  "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": "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-fb7ab91bd088/",
    "json": "https://gpuatlas.top/data/articles/T-fb7ab91bd088.json",
    "markdown": "https://gpuatlas.top/data/articles/T-fb7ab91bd088.md"
  }
}
