LMFlow: An Extensible Toolkit for Finetuning and Inference of Large Foundation Models

By Shizhe Diao, Hanze Dong, Kashun Shum, Jipeng Zhang, Wei Xiong, T. Zhang. 2023

82 citations recorded by the source corpus.

Foundation models have demonstrated a great ability to achieve general human-level intelligence far beyond traditional approaches. As the technique keeps attracting attention from the AI community, more and more foundation models have become publicly available.However, most of those models exhibit a major deficiency in specialized-domain and specialized-task applications, where the step of domain- and task-aware finetuning is still required to obtain scientific language models. As the number of available foundation models and specialized tasks keeps growing, the job of training scientific language models becomes highly nontrivial. In this paper, we take the first step to address this issue. We introduce an extensible and lightweight toolkit, LMFlow, which aims to simplify the domain- and task-aware finetuning of general foundation models.LMFlow offers a complete finetuning workflow for a foundation model to support specialized training with limited computing resources.Furthermore, it supports continuous pretraining, instruction tuning, parameter-efficient finetuning, alignment tuning, inference acceleration, long context generalization, model customization, and even multimodal finetuning, along with carefully designed and extensible APIs. This toolkit has been thoroughly tested and is available at https://github.com/OptimalScale/LMFlow.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, Large Language Models, ML Systems & Hardware

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Ee-Peng Lim
  2. Yihuai Lan
  3. Wei Xiong
  4. Hanze Dong
  5. Lei Wang
  6. Jindong Wang
  7. Zhengran Zeng
  8. Zhiqiang Hu

In Computer Vision and Pattern Recognition

  1. Lei Wang
  2. Jindong Wang
  3. Zhiqiang Hu
  4. Ee-Peng Lim
  5. Soujanya Poria
  6. Lidong Bing
  7. Hao Chen
  8. Yidong Wang

In Electrical and Electronic Engineering

  1. Soujanya Poria
  2. Doyen Sahoo

In Large Language Models

  1. Lei Wang
  2. Soujanya Poria
  3. Lidong Bing
  4. Wei Xiong
  5. Hanze Dong
  6. Cunxiang Wang
  7. Doyen Sahoo

Citations in the corpus