SLA感知的AI辅助编码
SLA-Awareness for AI-assisted coding
AI总结:
针对AI辅助编码中不同任务的延迟需求,提出编码助手任务编排器(CATO),通过端到端延迟感知调度,在满足SLA的同时提升资源利用率,实验显示Goodput率提升10%,资源利用率提升41.1%。
摘要:
AI辅助编码工具在开发环境中的集成大幅缩短了开发时间,并通过使用代码大语言模型(CodeLLMs)使开发者能够更专注于软件工程中创造性和关键性的方面。这些编码助手自动化了重复且耗时的编码任务,如代码生成、代码补全、代码摘要和代码翻译。响应性是这些编码助手维持实时交互性的关键要求,以确保它们的使用不会阻碍开发者的工作流程。不同的编码任务具有独特的特性和延迟要求:对于代码补全任务,首令牌时间(TTFT)延迟至关重要,而对于代码翻译任务,端到端(E2E)延迟则至关重要。在优化资源使用的同时管理这些不同的要求构成了重大挑战。现有工作采用模型即服务(Model-as-a-Service)范式来服务单个CodeLLM,但由于缺乏端到端延迟感知,无法有效管理并发编码任务和CodeLLM推理调用序列的延迟要求。另一个挑战是在共享集群环境中部署服务系统时保持高资源利用率。为应对这些挑战,我们提出了编码助手任务编排器(CATO),这是一个运行时系统,旨在服务多样化的编码任务,同时满足延迟要求并最大化资源利用率。我们的实验表明,当所有类型的编码任务同时被服务时,对于TTFT关键任务,CATO将整体Goodput率和资源利用率分别提高了最多10%和41.1%。与最先进的系统相比,代码摘要任务的P95 E2E延迟也降低了18%,代码生成任务的P95 TTFT降低了14%。
英文摘要:
The integration of AI-assisted coding tools within development environments drastically reduces development time, and allows developers to focus more on creative and critical aspects of software engineering through the use of Code Large Language Models (CodeLLMs). These coding assistants automate repetitive and time-consuming coding tasks such as code generation, code completion, code summarization, and code translation. Responsiveness is a crucial requirement of these coding assistants to maintain real-time interactivity, such that their use does not impede the developers' workflows. Different coding tasks have unique characteristics and latency requirements: Time-To-First-Token (TTFT) latency is essential for code completion tasks, while End-To-End (E2E) latency is crucial for code translation tasks. Managing these varying requirements simultaneously while optimizing resource usage poses significant challenges. Existing work adopts the Model-as-a-Service paradigm for serving individual CodeLLMs, but cannot effectively manage latency requirements of concurrent coding tasks and sequences of CodeLLM inference calls, due to a lack of end-to-end latency awareness. Another challenge is keeping resource utilization high, when the serving system is deployed on a shared cluster environment. To address these challenges, we propose Coding Assistant Task Orchestrator (CATO), a runtime system designed to serve a diverse assortment of coding tasks while meeting latency requirements and maximizing resource utilization. Our experiments demonstrate that when all types of coding tasks were served simultaneously, for TTFT-critical tasks, CATO improves overall Goodput rate and resource utilization by up to 10% and 41.1%, respectively. P95 E2E latency was also reduced by 18% for code summarization tasks, and P95 TTFT for code generation tasks were reduced by 14% compared against state-of-the-art systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。