{
  "schema_version": "1.0",
  "id": "T-8c7cfaf80794",
  "url": "https://gpuatlas.top/articles/T-8c7cfaf80794/",
  "title": "8G 显存想做微调，怎么选模型规模和训练方式？",
  "summary": "8G微调先用较小兼容模型完成真实监督和保存恢复，再按峰值阶段决定是否扩大或更换方案。",
  "language": "zh-Hans",
  "category": {
    "id": "c-11",
    "name": "按显存找方案",
    "url": "https://gpuatlas.top/categories/c-11/"
  },
  "topics": [
    {
      "id": "task-e33d9598da",
      "name": "微调",
      "kind": "task",
      "description": "让模型适应自己的任务，从训练方式、样本和显存预算入手，最后验证适配器是否真正起效。",
      "url": "https://gpuatlas.top/topics/task-e33d9598da/"
    },
    {
      "id": "task-796e01d5af",
      "name": "训练",
      "kind": "task",
      "description": "模型训练时的资源占用与推理不同。查看优化器、激活值、并行策略和中断恢复相关问题。",
      "url": "https://gpuatlas.top/topics/task-796e01d5af/"
    }
  ],
  "body_text": "8G显存做微调，先建立可验证的小实验：较小且支持的模型、明确任务、单样本微批量与较短必要序列。先验证数据、模板和产物，不围绕最大参数量不断叠加省空间选项。\n\nLoRA或QLoRA可减少部分更新状态或基础驻留，激活、适配器梯度、优化器和缓冲仍存在。理想4bit文件大小不能当训练总预算，基础加载与反向状态要分别看。\n\n核对真正可训练模块，避免意外解冻基础参数或额外组件。抽查处理后的回答、截断与损失范围，单步看似成功也可能没有监督目标，不能只看loss打印。\n\n用少量真实数据完成前向、反向、更新、验证、保存及新进程加载。第一次更新可能新建状态，只有前向通过不足以说明可行。反向峰值再比较必要长度、微批量或受支持重计算，单条过长输入不因累积自动装下。\n\n若基础权重已经放不下，先改模型或放置方式；若到保存才失败，则检查主存和文件系统。8G上的小实验跑完后，用未见样本对照原有提示方案，看看微调是否改善了目标回答，同时有没有退步。把有效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": "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"
    },
    {
      "id": "llamafactory",
      "url": "https://raw.githubusercontent.com/hiyouga/LLaMA-Factory/main/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-8c7cfaf80794/",
    "json": "https://gpuatlas.top/data/articles/T-8c7cfaf80794.json",
    "markdown": "https://gpuatlas.top/data/articles/T-8c7cfaf80794.md"
  }
}
