{
  "schema_version": "1.0",
  "id": "T-f7029c893c1f",
  "url": "https://gpuatlas.top/articles/T-f7029c893c1f/",
  "title": "LoRA、QLoRA、全参数微调，第一次做该选哪个？",
  "summary": "首次微调可先比较LoRA，权重受限再评估QLoRA，全参数需以独立质量收益证明更大更新成本。",
  "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": "第一次微调，先按任务、基础模型与硬件选方法，不把全参数当默认更高级。格式、指令或风格适配可先比较LoRA，基础驻留受限再核对QLoRA支持及质量。\n\nLoRA通常冻结基础，训练新增低秩参数；QLoRA在量化基础上训练适配器，进一步减少部分权重存储。两者仍需要激活、适配器梯度、优化器和缓冲，方法名称不能替代精度及模块配置。\n\n全参数更新范围更广，也增加对应梯度和优化器，是否值得看任务收益，不因预算够就预设更好。长度、结构和数据处理同样影响资源，推理大小不能直接推训练。\n\n先准备干净数据和防泄漏验证，检查模板、截断与损失，完成少量真实更新、保存及独立重载。与基础模型用同样生成条件比较事实、格式、重复和退步，缺少评估时扩大更新范围也难判断价值。\n\n需求只是不断更新资料时，先用输入材料或检索做基线；若需要稳定的格式和风格，再看少量适配器更新能否改善未见任务。记录数据版本、更新范围、有效token和完整耗时，得到可重复收益后再扩大。选择LoRA、QLoRA或全参数应跟着具体缺口走，无须按顺序逐级升级。",
  "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": "llamafactory",
      "url": "https://raw.githubusercontent.com/hiyouga/LLaMA-Factory/main/README.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-f7029c893c1f/",
    "json": "https://gpuatlas.top/data/articles/T-f7029c893c1f.json",
    "markdown": "https://gpuatlas.top/data/articles/T-f7029c893c1f.md"
  }
}
