{
  "schema_version": "1.0",
  "id": "T-850a0979c219",
  "url": "https://gpuatlas.top/articles/T-850a0979c219/",
  "title": "给 Qwen3.8 27B 做 QLoRA，怎么估算自己显存够不够？",
  "summary": "Qwen3.8 27B QLoRA先核混合图文训练支持，理想13.5GB语言权重之外还有视觉、状态和激活。",
  "language": "zh-Hans",
  "category": {
    "id": "c-18",
    "name": "模型微调",
    "url": "https://gpuatlas.top/categories/c-18/"
  },
  "topics": [
    {
      "id": "model-c1627df10a",
      "name": "Qwen3.8",
      "kind": "model",
      "description": "查找现有 Qwen3.8 文章中的显卡搭配与配置条件；下载和部署前，应以对应版本的来源说明复核参数。",
      "url": "https://gpuatlas.top/topics/model-c1627df10a/"
    }
  ],
  "body_text": "Qwen3.8 27B做QLoRA前，应先确定纯文本还是图文训练，再确认当前框架支持低位前向、反向和保存。它带有视觉与混合注意力，模型在推理中能加载，只证明推理路径可用，尚未证明完整训练能够执行。\n\n语言部分约27B，统一4bit原始算术约13.5GB，即约12.57GiB，其他组件、元数据与未量化层另核。再列适配器参数、梯度、优化器状态、激活和缓冲，不能把小计当总训练显存。\n\n明确冻结范围、模块、rank、精度与优化器，检查实际可训练参数。用真实处理后长度和微批量完成前向、反向及更新，图像设置也保存，纯文本短样本不代表图文负载。\n\n驻留不足先核精度布局，反向不足再比微批量、长度、检查点或受支持分片。梯度累积不让单条过长输入自动装下，重计算、通信、主存和保存汇总要计入完整流程。\n\n27B图文训练若借助分片才完成，要继续验收适配器保存和新进程恢复，而不是停在更新成功。恢复后用独立文本问题与固定图片比较原基础，确认目标改善没有换来识别退步。保存阶段超限与图文回答变差应各自定位；约13.5GB只是语言权重理想小计，不能替代这条流程的资源预算。",
  "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": "qwen38-27b",
      "url": "https://huggingface.co/Qwen/Qwen3.8-27B/raw/main/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "qwen38-27b-config",
      "url": "https://huggingface.co/Qwen/Qwen3.8-27B/resolve/main/config.json",
      "retrieved_at": "2026-11-25T11:12:54.996058+00:00"
    },
    {
      "id": "peft-quantization",
      "url": "https://raw.githubusercontent.com/huggingface/peft/main/docs/source/developer_guides/quantization.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "transformers-training-memory",
      "url": "https://raw.githubusercontent.com/huggingface/transformers/main/docs/source/en/model_memory_anatomy.md",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-850a0979c219/",
    "json": "https://gpuatlas.top/data/articles/T-850a0979c219.json",
    "markdown": "https://gpuatlas.top/data/articles/T-850a0979c219.md"
  }
}
