#2929th of 31 in Training and fine-tuning

lmflow

Toolbox for full, LoRA and LISA finetuning of large language models

Stars
8.5k
License
Apache-2.0
Last commit
Aug 2026
Last release
Jul 2025
Language
Python
Stars, last 29 weeks+43
1 Apr 2026: 8,439 stars8 Apr 2026: 8,442 stars15 Apr 2026: 8,442 stars22 Apr 2026: 8,444 stars29 Apr 2026: 8,448 stars6 May 2026: 8,449 stars13 May 2026: 8,450 stars20 May 2026: 8,450 stars27 May 2026: 8,454 stars3 Jun 2026: 8,455 stars10 Jun 2026: 8,458 stars17 Jun 2026: 8,460 stars24 Jun 2026: 8,461 stars1 Jul 2026: 8,462 stars8 Jul 2026: 8,464 stars15 Jul 2026: 8,467 stars22 Jul 2026: 8,468 stars29 Jul 2026: 8,470 stars5 Aug 2026: 8,470 stars12 Aug 2026: 8,470 stars19 Aug 2026: 8,471 stars26 Aug 2026: 8,472 stars2 Sept 2026: 8,477 stars9 Sept 2026: 8,478 stars16 Sept 2026: 8,480 stars23 Sept 2026: 8,480 stars30 Sept 2026: 8,480 stars7 Oct 2026: 8,481 stars14 Oct 2026: 8,482 stars21 Oct 2026: 8,482 stars

8,439 on 1 Apr 20268,482 on 21 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

LMFlow is a Python toolbox that finetunes decoder language models with full-parameter training, LoRA/QLoRA or LISA, driven by shell scripts and Accelerate. It adds conversation templates, optional DeepSpeed, FlashAttention-2, vLLM or SGLang inference, DPO via TRL, and a Gradio chatbot demo. The README lists estimated memory per model size, for example 16GB for 7B with LoRA.

Who it is for: ML engineers finetuning open LLMs on their own GPUs

Strengths

  • Covers full, LoRA, QLoRA and LISA finetuning from ready-made shell scripts
  • README gives memory estimates per method, from 0.5B to 70B models
  • Optional extras for DeepSpeed, FlashAttention, vLLM, SGLang and TRL-based DPO
  • Preset conversation templates such as llama3, llama2, phi3 and chatml

Weaknesses

  • Tested only on Ubuntu 20.04; macOS and Windows may hit unexpected errors
  • vLLM and SGLang need incompatible CUDA/PyTorch versions, so separate envs are required
  • LISA script is only tested on a single GPU
  • Last release is 2025-07-11; no Docker image or compose file

What it needs

  • GPU required
  • Needs Python 3.9+, conda, mpi4py, PyTorch, WandB (optional, on by default)
  • Models: Hugging Face decoder models, LLaMA, Llama-2, Llama-3, Qwen

Also in Training and fine-tuning

See all 31
Also in Training and fine-tuning
RankProjectScore
1unslothDesktop and web app to run, fine-tune and export open models Live demo ↗ (opens in a new tab)78.4k starsApache-2.088 out of 100
2deepspeedPyTorch library for distributed training of large models with ZeRO43.3k starsApache-2.084 out of 100
3verlReinforcement learning training library for LLM post-training with PPO and GRPO24k starsApache-2.084 out of 100
#4peftPython library for LoRA and other parameter-efficient fine-tuning of Transformers models Live demo ↗ (opens in a new tab)21.8k starsApache-2.084 out of 100
#5trlPost-training library with SFT, DPO, GRPO and KTO trainers19.6k starsApache-2.081 out of 100