bobazooba/xllm

🦖 X—LLM: Cutting Edge & Easy LLM Finetuning

What it solves

X—LLM removes the repetitive and time-consuming coding involved in training large language models. It applies cutting-edge optimization methods such as QLoRA, DeepSpeed, GPTQ, Flash Attention 2, and FSDP, so you can focus on your data and model improvements instead of implementation details.

How it works

X—LLM uses a single Config object that controls every stage of the workflow: data preparation, training, LoRA fusion, and quantization. For fast prototyping you can start with just a few lines of code—create a Config, a dataset, an Experiment, and run it. For production, it provides command-line tools that follow four steps: prepare, train (with DeepSpeed for multi-GPU setups), fuse LoRA if applied, and optionally quantize with GPTQ. It also integrates with HuggingFace Hub for saving checkpoints and with W&B for experiment tracking. Under the hood it supports advanced techniques like 4-bit loading, gradient checkpointing, and Flash Attention 2, all configurable through simple flags.

Who it’s for

Engineers and researchers who want to fine-tune large language models efficiently, whether for quick experiments or for building production-ready solutions without writing extensive training code.

Highlights

  • Minimal code for prototyping: config, dataset, experiment, run.
  • Cutting-edge training optimizations: QLoRA, DeepSpeed, GPTQ, Flash Attention 2, FSDP, and more.
  • Seamless integration with HuggingFace Hub for checkpoint saving and W&B for logging.
  • Highly customizable: replace or extend components like datasets, collators, trainers, and experiments.
  • Complete production pipeline: prepare, train, fuse, quantize—all driven from the command line.

Related

  • Project
  • Project
  • Project
  • Project