Alibaba Team Reduces vLLM Cold-Start Path to 11.74 Seconds
An Alibaba technical team review found that Qwen2.5-7B-Instruct took 43 seconds to return a complete short response after container startup even with the image pre-pulled and model-weight pages cached; loading the weights took about 3.21 seconds. The team eliminated repeated process initialization for model inspection and overlapped some operator preparation with model construction and loading, reducing the measured startup-to-response path to 11.74 seconds. The comparison used the vLLM 0.24 series, one NVIDIA A10, a four-core CPU quota, eager mode, and a 14,944-token KV Cache.
The case study shows that caching model weights alone may leave substantial first-response delays on platforms with many models and sparse requests per model. The reported measurements attribute much of the remaining wait to imports, model inspection, trial execution, and operator preparation rather than weight loading.
一台机器已经有镜像,模型权重也读进了系统缓存,用户发个短问题,还是要等 43 秒。阿里技术团队拆开这次等待才发现,热缓存下真正加载权重只用了约 3.21 秒。把这段变成零,用户仍要等将近 40 秒。
他们后来把这条链路压到 11.74 秒。计时从容器启动开始,到一次短回答完整返回为止。阿里团队公布的对照采用 vLLM 0.24 系列、单张 NVIDIA A10、4 核 CPU 配额和 eager 模式,镜像提前拉取,权重文件页已读热。两组实际 KV Cache(保存历史 token 注意力计算所需信息的缓存)容量均为 14,944 个 token。阿里技术的冷启动复盘
等 GPU 开工之前,已经过去近 20 秒
这个场景容易出现在模型多、单个模型请求又稀疏的平台。空闲时让服务退出,把 GPU 还给资源池。下一条请求进来,再把服务启动起来。节省的是平时的显卡占用,代价落到了下一位用户身上。
阿里团队测的是单张 NVIDIA A10 上的 Qwen2.5-7B-Instruct。一开始光导入 Python 依赖就要 12.53 秒,接着解析参数、查配置和模型又用了 7.29 秒。日志里看着像等显存缓存,其实有一段 7.78 秒花在试运行上。引擎要先用一遍模型,看看实际需要多少显存,过程中还触发了算子的首次编译和初始化。