Dissecting the Runtime Performance of the Training, Fine-tuning, and Inference of Large Language Models
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Beijing Damo Technology Co. Ltd.(北京达摩科技有限公司);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));The Hong Kong University of Science and Technology(香港科技大学)
Large Language Models (LLMs) have seen great advance in both academia and industry, and their popularity results in numerous open-source frameworks and techniques in accelerating LLM pre-training, fine-tuning, and inference. Training and deploying LLMs are expensive as it requires considerable computing resources and memory, hence many efficient approaches have been developed for improving system pipelines as well as operators. However, the runtime performance can vary significantly across hardware and software stacks, which makes it difficult to choose the best configuration. In this work, we aim to benchmark the performance from both macro and micro perspectives. First, we benchmark the end-to-end performance of pre-training, fine-tuning, and serving LLMs in different sizes , i.e., 7, 13, and 70 billion parameters (7B, 13B, and 70B) on three 8-GPU platforms with and without individual optimization techniques, including ZeRO, quantization, recomputation, FlashAttention. Then, we dive deeper to provide a detailed runtime analysis of the sub-modules, including computing and communication operators in LLMs. For end users, our benchmark and findings help better understand different optimization techniques, training and inference frameworks, together with hardware platforms in choosing configurations for deploying LLMs. For researchers, our in-depth module-wise analyses discover potential opportunities for future work to further optimize the runtime performance of LLMs.
Dissecting Fine-Tuning Unlearning in Large Language Models
International Digital Economy Academy (IDEA)(国际数字经济学院(IDEA));South China University of Technology(华南理工大学);Columbia University(哥伦比亚大学);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学)
Jailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models
Beijing Institute of AI Safety and Governance(北京人工智能安全与治理研究院);Beijing Key Laboratory of Artificial Intelligence Safety and Superalignment(北京人工智能安全与超级对齐重点实验室);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Center for Long-term Artificial Intelligence(长期人工智能中心)
Hybrid-Adaptive Thread Tuning to Mitigate Simulation Execution Bottlenecks in High-Performance Reinforcement Learning Inference
College of Systems Engineering, National University of Defense Technology(国防科技大学系统工程学院);College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机科学与技术学院)