Large Language Models (LLMs) have become an integral part of many real-world workflows. However, LLMs consume a lot of energy, which becomes a large concern in the scale of the demand for these tools. As LLMs become integrated into different workflows, different applications have arisen to deal with the challenge of running inference for these tools. This raises another issue of choosing the runtime parameter values for these services in order to minimize the energy consumption. Oftentimes this requires deep knowledge of the application or traditional optimization methods that can take days to find optimal values. In this work, we created a human-in-the-loop flow with LLM-assisted runtime parameter optimization in order to solve this issue. With human-created, specific feedback prompting methods, chat-based LLMs can iteratively find energy-efficient inference parameters faster than traditional search methods. LLMs can also tailor their solutions to different hardware setups and easily take into account other system constraints. The enhanced prompt template was able to converge below the threshold at an average of 3.4 prompts compared to the baseline, which converged in an average of 5.2 prompts, and consistently achieved lower final energy per token. The enhanced prompt template also outperformed Sobol sampling in convergence speed.
Shanghai Jiao Tong University(上海交通大学);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);IIIS, Tsinghua University(清华大学智能产业研究院);Department of Brain and Cognitive Sciences, MIT(麻省理工学院脑与认知科学系);Center for Brains, Minds and Machines (CBMM), MIT(麻省理工学院脑、心智与机器中心)
A Tale of 1001 LoC: Potential Runtime Error-Guided Specification Synthesis for Verifying Large-Scale Programs
Zhejiang University(浙江大学);Peking University(北京大学);The Chinese University of Hong Kong(香港中文大学);Xidian University(西安电子科技大学);Beijing Institute of Control Engineering(北京控制工程研究所)
FlyCatcher: Neural Inference of Runtime Checkers from Tests
University of Stuttgart(斯图加特大学);University of Virginia(弗吉尼亚大学);Microsoft Research(微软研究院);CISPA Helmholtz Center for Information Security(CISPA 赫尔姆霍兹信息安全中心)
ProfInfer: An eBPF-based Fine-Grained LLM Inference Profiler
Huawei Hilbert Research Center (Dresden)(华为希尔伯特研究中心(德累斯顿));Technical University of Munich(慕尼黑工业大学);Huawei Central Software Institute(华为中央软件研究所);Shanghai Jiao Tong University(上海交通大学)