Description
LMFlow is an extensible toolkit for finetuning and running inference on large foundation models. It is built to be easy to use, fast and reliable, and it aims to make large model training accessible to the wider community. The project's news shows the features it has added over time, including support for Llama 2, ChatGLM2 and Baichuan models, long-context inference through position interpolation, speculative decoding for faster generation, and Flash Attention 2. It supports LISA, a training method that the README says can train a 7B model in 24 GB of memory without offloading, and it allows custom optimizers and conversation templates such as chatml, Llama 3 and Phi-3. A multimodal chatbot that accepts images and text is also part of the project, and a demo is provided. The 2024 news items note that the Hymba small language model family is supported and that LMFlow received a Best Demo Paper Award at NAACL 2024. A major update in 2025 added full Accelerate support, and the previous version remains available through a git tag. The project is documented in a paper and in its example scripts, and it has localized README files in several languages.…
Highlights
- Finetuning and inference for large models
- LISA training in 24 GB of memory
- Flash Attention 2 and speculative decoding
- Custom optimizers and chat templates
- Multimodal chatbot demo
Ratings & Reviews
No ratings yet
Be the first to rate LMFlow.
People also visit
LMFlow FAQ
What is LMFlow?
A toolkit for finetuning and running inference on large foundation models, designed to be extensible and efficient.
Which models does it support?
The news mentions Llama 2, Llama 3, ChatGLM2, Baichuan, Phi-3 conversation templates and Hymba.
Can it train large models on a single GPU?
The README says LISA enables 7B training in 24 GB of memory without offloading.
Does it support longer context?
Yes. The news notes long-context inference with position interpolation for LLaMA models.
Is there a multimodal option?
Yes. The project includes a multimodal chatbot that accepts images and text, with an online demo.
Where is the previous version?
The README says the older version is available with git checkout v0.0.10.
What are the best LMFlow alternatives?
Popular alternatives to LMFlow include Llmflows, Keras LLM Robot and Axflow models. See all LMFlow alternatives
