{
  "schema_version": "1.0",
  "id": "T-8e1893628f61",
  "url": "https://gpuatlas.top/articles/T-8e1893628f61/",
  "title": "RTX 6000 Ada 48G 做微调，比推理还需要多留多少显存？",
  "summary": "RTX 6000 Ada微调比推理多多少取决于更新方式与状态，先分LoRA、QLoRA和全参数，不能统一加百分比。",
  "language": "zh-Hans",
  "category": {
    "id": "c-17",
    "name": "显卡使用与排查",
    "url": "https://gpuatlas.top/categories/c-17/"
  },
  "topics": [
    {
      "id": "gpu-ed073c3870",
      "name": "RTX 6000 Ada",
      "kind": "gpu",
      "description": "48G 显存做微调，需要比推理多准备什么？从训练状态与激活值入手估算额外空间。",
      "url": "https://gpuatlas.top/topics/gpu-ed073c3870/"
    },
    {
      "id": "task-c9d3b085e2",
      "name": "推理",
      "kind": "task",
      "description": "让模型回答问题只是起点。继续检查批量请求、上下文与多卡运行，找出影响响应速度的环节。",
      "url": "https://gpuatlas.top/topics/task-c9d3b085e2/"
    },
    {
      "id": "task-e33d9598da",
      "name": "微调",
      "kind": "task",
      "description": "让模型适应自己的任务，从训练方式、样本和显存预算入手，最后验证适配器是否真正起效。",
      "url": "https://gpuatlas.top/topics/task-e33d9598da/"
    }
  ],
  "body_text": "先确定微调方式，再算比推理多多少。RTX 6000 Ada的48G是容量条件，LoRA、QLoRA与全参数更新的状态不同，没有对所有模型都成立的额外百分比。\n\n推理预算主要是权重、缓存与执行缓冲；训练要加入可训练参数的梯度、优化器状态和反向激活，某些布局还有高精度主权重。具体精度与优化器逐项核对，不能全部按权重的两字节算。\n\n固定模型、真实序列和微批量，完成前向、反向和更新，观察阶段峰值。QLoRA减少基础存储，不取消激活；LoRA的模块覆盖与rank也会改变适配器状态，推理能加载不代表训练通过。\n\n不足时分别比较微批量、长度、受支持检查点或分片。累积不自动让单条长输入装下，重计算、通信、主存和保存汇总都需计入完整流程，不能只展示稳定一步。\n\nRTX 6000 Ada上的长问答微调，应把真实样本跑到更新、保存，再恢复适配器检查独立题目。将训练阶段峰值与原推理配置分列，差额才有明确含义。模型、状态精度或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": "nvidia-6000-ada",
      "url": "https://www.nvidia.com/en-us/design-visualization/rtx-6000/",
      "retrieved_at": "2026-11-25T15:48:09.462057+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": "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": "torch-checkpoint",
      "url": "https://docs.pytorch.org/docs/2.15/checkpoint.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-8e1893628f61/",
    "json": "https://gpuatlas.top/data/articles/T-8e1893628f61.json",
    "markdown": "https://gpuatlas.top/data/articles/T-8e1893628f61.md"
  }
}
