The increasing complexity and size of large language models (LLMs) have necessitated the development of sophisticated parallel strategies to optimize their training and deployment. To enhance the utilization of computational resources, parallelization techniques are extensively studied and implemented. However, current parallel strategies cannot be dynamically adjusted after their initialization. In this paper, we review the literature on parallel strategies for LLMs in both training and inference scenarios, emphasizing the need for adaptable parallel strategies. We first introduce the five primary parallel strategies: data parallelism, tensor parallelism, pipeline parallelism, sequence parallelism, and expert parallelism. Next, we present their applications for LLMs and explore the growing demand for adaptable parallel strategies. Finally, we discuss the challenges associated with these strategies and outline directions for future research.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Parallelization Techniques for Large Language Models: A Review from Training to Inference

  • Shanwen Liu,
  • Xi Tao,
  • Weipeng Cao,
  • Zhong Ming

摘要

The increasing complexity and size of large language models (LLMs) have necessitated the development of sophisticated parallel strategies to optimize their training and deployment. To enhance the utilization of computational resources, parallelization techniques are extensively studied and implemented. However, current parallel strategies cannot be dynamically adjusted after their initialization. In this paper, we review the literature on parallel strategies for LLMs in both training and inference scenarios, emphasizing the need for adaptable parallel strategies. We first introduce the five primary parallel strategies: data parallelism, tensor parallelism, pipeline parallelism, sequence parallelism, and expert parallelism. Next, we present their applications for LLMs and explore the growing demand for adaptable parallel strategies. Finally, we discuss the challenges associated with these strategies and outline directions for future research.