{
  "schema_version": "1.0",
  "id": "T-c204948e9d05",
  "url": "https://gpuatlas.top/articles/T-c204948e9d05/",
  "title": "L4 24G 做小模型服务，怎么测并发和首字延迟？",
  "summary": "L4 24G服务先定义延迟与请求范围，再逐档提高活动负载，首字慢要分排队和输入处理。",
  "language": "zh-Hans",
  "category": {
    "id": "c-17",
    "name": "显卡使用与排查",
    "url": "https://gpuatlas.top/categories/c-17/"
  },
  "topics": [
    {
      "id": "gpu-ab4755e3cb",
      "name": "L4",
      "kind": "gpu",
      "description": "小模型服务不只看生成速度。查看如何衡量并发、首字延迟以及一张卡能承担的请求负载。",
      "url": "https://gpuatlas.top/topics/gpu-ab4755e3cb/"
    }
  ],
  "body_text": "先写清允许的输入输出范围、首字和完成时间目标，再测L4 24G。小模型不是固定人数，精度、活动序列、缓存和后端预留都会改变边界，不能只数连接。\n\n单请求先检查真实权重、GPU执行与完整答案，再混合日常短题、长材料和较长输出，逐档提高活动请求。每档记录首字、完成延迟分布、吞吐、失败与峰值，保持样本比例一致。\n\n首字变慢时分开看排队和输入处理；首字正常但完成慢时再看生成量与解码。增大队列只让更多请求等待，不增加计算能力，短句压测也不能代表长材料服务。\n\n所选量化需核L4对应内核，文件小不保证更快，修改精度后重查质量。同卡多实例或其他模型要联合运行，实例预算不是物理隔离，不能重复分配单独余量。\n\n在接近响应目标的档位，持续混合发送短题与长材料，并观察超时后服务能否恢复。把取消、截断和完整答案分开计数；L4的可用负载应由按时完成的有效请求定义。保留该档请求分布，后续换模型或增加长度时才有可复测的基线。",
  "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-l4",
      "url": "https://www.nvidia.com/en-us/data-center/l4/",
      "retrieved_at": "2026-11-25T15:48:09.462057+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": "vllm-cache-config",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/vllm/config/cache.py",
      "retrieved_at": "2026-11-25T10:59:37.755333+00:00"
    },
    {
      "id": "vllm-quantization",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/features/quantization/README.md",
      "retrieved_at": "2026-11-25T10:11:32.915597+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-c204948e9d05/",
    "json": "https://gpuatlas.top/data/articles/T-c204948e9d05.json",
    "markdown": "https://gpuatlas.top/data/articles/T-c204948e9d05.md"
  }
}
