{
  "schema_version": "1.0",
  "id": "T-3bae95107bfa",
  "url": "https://gpuatlas.top/articles/T-3bae95107bfa/",
  "title": "LoRA 的 rank 越大，训练效果就一定越好吗？",
  "summary": "LoRA rank增加提高适配器容量和状态，不保证泛化，应统一目标模块和训练预算比较独立质量。",
  "language": "zh-Hans",
  "category": {
    "id": "c-05",
    "name": "微调与训练",
    "url": "https://gpuatlas.top/categories/c-05/"
  },
  "topics": [
    {
      "id": "task-796e01d5af",
      "name": "训练",
      "kind": "task",
      "description": "模型训练时的资源占用与推理不同。查看优化器、激活值、并行策略和中断恢复相关问题。",
      "url": "https://gpuatlas.top/topics/task-796e01d5af/"
    }
  ],
  "body_text": "LoRA的rank更大，不保证训练效果更好。它通常增加适配器参数及梯度、优化器开销，实际收益还受数据、任务和目标模块影响，训练loss更低也不等于新问题表现更好。\n\n先核对模块范围与缩放条件。相同rank在不同模型、不同线性层上参数数目不一样，加入更多目标模块也会增加容量，不能只分享rank一个数字就认为实验可比较。\n\n小数据重复较多时，更大适配器可能更容易拟合旧答案，先检查数据质量、覆盖与独立评估，不将rank当补救所有问题的旋钮。基础模型、模板和适配器加载也需一致。\n\n固定数据划分、长度、有效工作量与其他优化条件，选择少量有目的的候选，记录正确、格式、重复、退步、峰值和完整时间。训练预算变化标明，不能一边加rank一边延长轮数后全归因于rank。\n\n若两个rank在未见题上表现接近，可以优先比较较小方案的训练、部署和维护成本；若较大rank稳定修正了关键格式或答案，再看增量开销是否值得。把目标模块与缩放设置一并保留，否则换个模块范围就不再是同一个rank实验，也难复用这次结论。",
  "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"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-3bae95107bfa/",
    "json": "https://gpuatlas.top/data/articles/T-3bae95107bfa.json",
    "markdown": "https://gpuatlas.top/data/articles/T-3bae95107bfa.md"
  }
}
