评估Kubernetes性能用于生成式AI推理:从自动语音识别到LLM摘要
Evaluating Kubernetes Performance for GenAI Inference: From Automatic Speech Recognition to LLM Summarization
AI总结:
本文研究了Kubernetes在生成式AI推理中的性能,通过结合Kueue、DAS和GAIE等技术,提升多阶段AI工作流的效率与性能。
摘要:
随着生成式AI(GenAI),特别是推理,迅速成为主导的工作负载类别,Kubernetes生态系统正在积极演变,以原生支持其独特需求。本文论文展示了如何将新兴的Kubernetes原生项目结合起来,以实现容器编排的优势,如可扩展性和资源效率,用于复杂的AI工作流程。我们实现了并评估了一个示例、多阶段用例,包括自动语音识别和摘要。首先,我们通过使用Kueue管理将音频文件转换为文本的Whisper模型以及使用动态加速器切片器(DAS)来增加并行作业执行来解决批量推理。其次,我们通过将转录文本输入到使用llm-d主机的大型语言模型中,解决了一个离散的在线推理场景,llm-d是一种新的解决方案,利用了围绕Kubernetes网关API推理扩展(GAIE)的最新发展,以优化推理请求的路由。我们的发现表明,这些互补组件(Kueue、DAS和GAIE)形成一个连贯的、高性能的平台,证明了Kubernetes作为满足 demanding GenAI 工作负载的统一基础的能力:Kueue将总完成时间减少了高达15%;DAS将平均作业完成时间缩短了36%;GAIE与llm-d结合使用,即使在高负载下,也使尾部Time to First Token延迟提高了90%。
英文摘要:
As Generative AI (GenAI), particularly inference, rapidly emerges as a dominant workload category, the Kubernetes ecosystem is proactively evolving to natively support its unique demands. This industry paper demonstrates how emerging Kubernetes-native projects can be combined to deliver the benefits of container orchestration, such as scalability and resource efficiency, to complex AI workflows. We implement and evaluate an illustrative, multi-stage use case consisting of automatic speech recognition and summarization. First, we address batch inference by using Kueue to manage jobs that transcribe audio files with Whisper models and Dynamic Accelerator Slicer (DAS) to increase parallel job execution. Second, we address a discrete online inference scenario by feeding the transcripts to a Large Language Model for summarization hosted using llm-d, a novel solution utilizing the recent developments around the Kubernetes Gateway API Inference Extension (GAIE) for optimized routing of inference requests. Our findings illustrate that these complementary components (Kueue, DAS, and GAIE) form a cohesive, high-performance platform, proving Kubernetes' capability to serve as a unified foundation for demanding GenAI workloads: Kueue reduced total makespan by up to 15%; DAS shortened mean job completion time by 36\%; and GAIE working in conjunction with llm-d improved tail Time to First Token latency by up to 90% even under high loads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。