All AI tools
Model training

LoRA Fine-Tuning Kit

Turn a two-column CSV into a fine-tuned small model on your own GPU.

Dataset preparation and LoRA training in one script. It converts a CSV of instructions and responses into train and test JSONL, then fine-tunes a small open model with peft and trl using a sensible default configuration.

What you get

  • CSV to JSONL with a held-out test split
  • LoRA configuration tuned for small GPUs
  • Training through trl's SFTTrainer with packing off
  • A saved adapter you can serve or merge
  • Notes on what overfitting looks like and how much data is enough

The file

File name
lora-finetune-kit.py
Format
Python · v1.0

Downloaded as a plain file. Nothing in it calls this website, and it keeps working if the site ever goes away.