arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.15441cs.SEcs.AIcs.LG
收藏

面向代码小型语言模型服务的运行时引擎与执行提供方资源利用洞察

Insights into resource utilization of code small language models serving with runtime engines and execution providers

Vrije Universiteit Amsterdam(阿姆斯特丹自由大学)

Francisco Durán, Matias Martinez, Patricia Lago, Silverio Martínez-Fernández

AI总结:

本研究针对代码生成小型语言模型的推理资源优化需求,通过多阶段实验测试12个模型在不同运行时引擎与执行提供方组合下的表现,发现TORCH+CUDA能效最优,为软件工程师选择服务配置提供参考。

摘要:

语言模型尤其是代码生成领域的快速发展需要大量计算资源,引发了对能耗与环境影响的担忧。优化语言模型推理的资源利用至关重要,而小型语言模型(SLMs)为降低资源需求提供了颇具前景的解决方案。本研究旨在从开展代码生成SLMs推理的软件工程师视角,分析深度学习服务配置(即运行时引擎与执行提供方的组合)对资源利用的影响,衡量维度包括能耗、执行时间与计算资源利用率。我们搭建了技术导向的多阶段实验流水线,使用12个代码生成SLMs,调研不同配置下的能耗、执行时间与计算资源利用率。结果显示不同配置间存在显著差异:CUDA执行提供方配置在能耗与执行时间上均优于CPU执行提供方配置。其中,TORCH搭配CUDA的能效最高,与其他服务配置相比可实现37.99%至89.16%的能耗节省。同样,在基于CPU的配置中,ONNX等优化运行时引擎搭配CPU执行提供方可实现8.98%至72.04%的能耗节省。此外,TORCH搭配CUDA还展现出高效的计算资源利用率。服务配置的选择对资源利用有显著影响。尽管仍需进一步研究,我们推荐上述最适配软件工程师需求的配置,以提升服务资源利用效率。

英文摘要:

The rapid growth of language models, particularly in code generation, requires substantial computational resources, raising concerns about energy consumption and environmental impact. Optimizing language models inference resource utilization is crucial, and Small Language Models (SLMs) offer a promising solution to reduce resource demands. Our goal is to analyze the impact of deep learning serving configurations, defined as combinations of runtime engines and execution providers, on resource utilization, in terms of energy consumption, execution time, and computing-resource utilization from the point of view of software engineers conducting inference in the context of code generation SLMs. We conducted a technology-oriented, multi-stage experimental pipeline using twelve code generation SLMs to investigate energy consumption, execution time, and computing-resource utilization across the configurations. Significant differences emerged across configurations. CUDA execution provider configurations outperformed CPU execution provider configurations in both energy consumption and execution time. Among the configurations, TORCH paired with CUDA demonstrated the greatest energy efficiency, achieving energy savings from 37.99% up to 89.16% compared to other serving configurations. Similarly, optimized runtime engines like ONNX with the CPU execution provider achieved from 8.98% up to 72.04% energy savings within CPU-based configurations. Also, TORCH paired with CUDA exhibited efficient computing-resource utilization. Serving configuration choice significantly impacts resource utilization. While further research is needed, we recommend the above configurations best suited to software engineers' requirements for enhancing serving resource utilization efficiency.

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

↑