{
  "schema_version": "1.0",
  "id": "T-b16ad6ec2d4b",
  "url": "https://gpuatlas.top/articles/T-b16ad6ec2d4b/",
  "title": "24G 显存做微调，能选多大的模型？",
  "summary": "24G微调没有统一参数上限，需固定更新方式、真实数据和状态布局，以完整循环与质量界定模型规模。",
  "language": "zh-Hans",
  "category": {
    "id": "c-05",
    "name": "微调与训练",
    "url": "https://gpuatlas.top/categories/c-05/"
  },
  "topics": [
    {
      "id": "task-e33d9598da",
      "name": "微调",
      "kind": "task",
      "description": "让模型适应自己的任务，从训练方式、样本和显存预算入手，最后验证适配器是否真正起效。",
      "url": "https://gpuatlas.top/topics/task-e33d9598da/"
    }
  ],
  "body_text": "24G显存能微调多大模型，先选LoRA、QLoRA还是全参数，再看精确结构与数据。相同参数量换长度、微批量、精度和目标模块，峰值可能不同，不能给所有框架统一上限。\n\n基础权重、可训练状态、激活和缓冲分开预算。量化减少部分驻留，冻结基础减少部分梯度和优化器，不会让所有反向状态消失，推理通过不证明训练可行。\n\n维护框架的资源表可筛候选，但先核对模型、软件、长度和训练目标等前提，不把某个7B或14B案例推广全部同规模结构。查看真实可训练参数，避免配置名是LoRA却解冻额外模块。\n\n先小型兼容模型、真实短样本与微批量1，完成前向、反向、更新、评估、保存及新进程恢复，记录各阶段。随后逐档到必要长度，每次只改一种受支持策略，保存最长失败样本与有效监督。\n\n最终把结果写成明确配置：哪个模型revision、什么精度、长度、rank、目标模块和批量，在何种版本下完成了更新与恢复。若重计算或分片让它装下，也同时记录完整耗时和未见任务表现。这样回答的是这台24G设备能完成哪种微调，而不是给所有同参数量模型划一条保证线。",
  "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": "llamafactory",
      "url": "https://raw.githubusercontent.com/hiyouga/LLaMA-Factory/main/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+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-b16ad6ec2d4b/",
    "json": "https://gpuatlas.top/data/articles/T-b16ad6ec2d4b.json",
    "markdown": "https://gpuatlas.top/data/articles/T-b16ad6ec2d4b.md"
  }
}
