{
  "schema_version": "1.0",
  "id": "T-d7221c46f7fe",
  "url": "https://gpuatlas.top/articles/T-d7221c46f7fe/",
  "title": "70B 模型做 LoRA，显存预算应该把哪些部分算进去？",
  "summary": "70B LoRA先确认基础权重怎么驻留，再加适配器训练状态和激活；冻结基础不等于完整训练轻量。",
  "language": "zh-Hans",
  "category": {
    "id": "c-19",
    "name": "训练资源估算",
    "url": "https://gpuatlas.top/categories/c-19/"
  },
  "topics": [],
  "body_text": "第一项先算基础权重，并说明放在哪些设备。名义70B统一16bit原始数据约140GB，实际参数和精度另核；LoRA通常冻结基础权重，但不会自动把这部分文件压缩，也不能只相加多卡容量就确认可用。\n\n第二项是适配器参数、梯度与优化器状态，由目标模块、rank和状态精度决定。第三项是反向激活及运行缓冲，受结构、长度、微批量和实现影响。冻结不表示反向完全绕过基础模型，推理KV也不能代替激活预算。\n\n先核低位或高精度路径、分片与训练支持，再检查实际可训练参数。用真实处理后样本完成前向、反向和更新，记录每卡峰值及主存，别只观察模型加载。\n\n普通副本不自动分摊全部权重，分片和卸载要看实际设备布局与通信。梯度累积不解决单条过长样本，检查点会增加重计算，保存汇总也可能出现独立峰值。\n\n70B LoRA的候选布局要走到保存与独立恢复，不能在适配器更新成功时就结束验收。保存阶段若发生汇总峰值，先查当时的设备分布和主存，再调整受支持方案。恢复后的独立任务质量与完整作业时间，才决定这套资源是否适合日常训练。",
  "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": "torch-checkpoint",
      "url": "https://docs.pytorch.org/docs/2.15/checkpoint.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    },
    {
      "id": "torch-fsdp",
      "url": "https://docs.pytorch.org/docs/2.15/fsdp.html",
      "retrieved_at": "2026-11-25T10:21:36.176985+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-d7221c46f7fe/",
    "json": "https://gpuatlas.top/data/articles/T-d7221c46f7fe.json",
    "markdown": "https://gpuatlas.top/data/articles/T-d7221c46f7fe.md"
  }
}
