{
  "schema_version": "1.0",
  "id": "T-123d71ce4bd7",
  "url": "https://gpuatlas.top/articles/T-123d71ce4bd7/",
  "title": "RTX 4090 24G 跑 Qwen2.5 7B，量化和上下文该怎么选？",
  "summary": "RTX 4090 24G运行Qwen2.5 7B可先建高精度基线，长文扩展、缓存和证据利用分开比较。",
  "language": "zh-Hans",
  "category": {
    "id": "c-10",
    "name": "显卡与模型组合",
    "url": "https://gpuatlas.top/categories/c-10/"
  },
  "topics": [
    {
      "id": "gpu-fc423f40d1",
      "name": "RTX 4090",
      "kind": "gpu",
      "description": "24G 显存跑大模型，需要在精度与上下文之间做选择。这里同时整理常见模型搭配和硬件比较。",
      "url": "https://gpuatlas.top/topics/gpu-fc423f40d1/"
    },
    {
      "id": "model-39f632df4c",
      "name": "Qwen2.5",
      "kind": "model",
      "description": "已有 Qwen2.5 模型想在本地运行？按显存档位比较量化与上下文设置，并查看训练相关的资源问题。",
      "url": "https://gpuatlas.top/topics/model-39f632df4c/"
    },
    {
      "id": "task-dce84928dd",
      "name": "量化",
      "kind": "task",
      "description": "权重变小以后，速度和效果会怎样变化？这里收录量化格式选择、运行支持及显存不足时的取舍。",
      "url": "https://gpuatlas.top/topics/task-dce84928dd/"
    }
  ],
  "body_text": "RTX 4090 24G运行Qwen2.5-7B-Instruct，短聊天可先建立高精度基线，长文或多请求再比较量化余量。模型实际约7.61B参数，16bit原始权重约15.22GB、理想4bit约3.805GB，元数据和运行开销另核。\n\n28层GQA结构下，常规单序列16bit KV在8K约0.4375GiB、32K约1.75GiB、128K约7GiB。权重与缓存精度分别记录，换4bit文件不表示状态自动同位宽。\n\n模型默认配置32768，更长文本需要对应扩展与后端支持。先验证常用长度，再研究偶尔最长任务的安排，具体缓存是否按上限预留，应看实际框架，不能只凭截图推断。\n\n例如产品资料问答，选固定说明书和有明确答案的问题，保存证据段落。先同长度比较精度，再扩展材料，检查遗漏、错引和截断。若应用采用检索，保存实际片段与顺序，证据没进入和进入后被用错需要不同调整。\n\n固定模板、采样和输出预算，分别记录输入处理、首字、生成与完整时间。高占用可能包含预分配缓存，不一定代表当前请求已实际使用全部空间，修改预算后需重跑原负载。\n\n产品问答接入多人服务前，让说明书检索、语言模型与其他同卡组件一起运行，再观察回答完整性和等待。证据没检索进来，应先改检索；片段齐全却错引，才继续比较模型与量化条件。单用户下省出的显存不能直接乘成人数，CPU参与的主存代价也应计入这条问答链路。",
  "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-geforce-specs",
      "url": "https://www.nvidia.com/en-us/geforce/graphics-cards/compare/",
      "retrieved_at": "2026-11-25T10:34:57.629275+00:00"
    },
    {
      "id": "qwen25-7b",
      "url": "https://huggingface.co/Qwen/Qwen2.5-7B-Instruct/raw/main/README.md",
      "retrieved_at": "2026-11-25T11:18:40.540160+00:00"
    },
    {
      "id": "qwen25-7b-config",
      "url": "https://huggingface.co/Qwen/Qwen2.5-7B-Instruct/resolve/main/config.json",
      "retrieved_at": "2026-11-25T11:18:40.540160+00:00"
    },
    {
      "id": "vllm-memory",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/configuration/conserving_memory.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "transformers-chat-template",
      "url": "https://raw.githubusercontent.com/huggingface/transformers/main/docs/source/en/chat_templating.md",
      "retrieved_at": "2026-11-25T10:11:32.915597+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-123d71ce4bd7/",
    "json": "https://gpuatlas.top/data/articles/T-123d71ce4bd7.json",
    "markdown": "https://gpuatlas.top/data/articles/T-123d71ce4bd7.md"
  }
}
