arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.20420cs.LGcs.AI
收藏

可扩展的AI推理:基于BentoML的AI模型服务性能分析与优化

Scalable AI Inference: Performance Analysis and Optimization of AI Model Serving

Institute of Computer Science(计算机科学研究所);University of Applied Sciences Ruhr West(鲁尔西部应用科学大学);Mülheim an der Ruhr, Germany(鲁尔地区穆尔海姆,德国)

Hung Cuong Pham, Fatih Gedikli

AI总结:

本文研究了基于BentoML的AI推理系统在可扩展模型服务中的性能与优化,通过实验证明了优化策略对响应时间和系统鲁棒性的影响。

摘要:

AI研究常强调模型设计和算法性能,而部署和推理在实际应用中却相对被忽视。本文通过与graphworks.ai合作,研究了基于BentoML的AI推理系统在可扩展模型服务中的性能和优化。评估首先在三种现实工作负载场景下建立了基准性能。为确保公平和可重复的评估,实验中使用了预训练的RoBERTa情感分析模型。系统受到遵循伽马和指数分布的流量模式影响,以模拟现实使用条件,包括稳定、突发和高强度负载。关键性能指标,如延迟百分位数和吞吐量,被收集和分析,以识别推理管道中的瓶颈。基于基准结果,引入了多个服务堆栈层次的优化策略以提高效率和可扩展性。优化后的系统在相同负载条件下重新评估,结果与基准进行统计分析,以量化所应用改进的影响。研究发现,通过BentoML实现了高效和可扩展的AI推理的实用策略。研究探讨了在不同负载下延迟和吞吐量如何扩展,运行时、服务和部署层面的优化如何影响响应时间,以及在单节点K3s集群部署如何影响中断期间的鲁棒性。

英文摘要:

AI research often emphasizes model design and algorithmic performance, while deployment and inference remain comparatively underexplored despite being critical for real-world use. This study addresses that gap by investigating the performance and optimization of a BentoML-based AI inference system for scalable model serving developed in collaboration with graphworks.ai. The evaluation first establishes baseline performance under three realistic workload scenarios. To ensure a fair and reproducible assessment, a pre-trained RoBERTa sentiment analysis model is used throughout the experiments. The system is subjected to traffic patterns following gamma and exponential distributions in order to emulate real-world usage conditions, including steady, bursty, and high-intensity workloads. Key performance metrics, such as latency percentiles and throughput, are collected and analyzed to identify bottlenecks in the inference pipeline. Based on the baseline results, optimization strategies are introduced at multiple levels of the serving stack to improve efficiency and scalability. The optimized system is then reevaluated under the same workload conditions, and the results are compared with the baseline using statistical analysis to quantify the impact of the applied improvements. The findings demonstrate practical strategies for achieving efficient and scalable AI inference with BentoML. The study examines how latency and throughput scale under varying workloads, how optimizations at the runtime, service, and deployment levels affect response time, and how deployment in a single-node K3s cluster influences resilience during disruptions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑