DaoyuanLi2816/can-i-finetune-this
Single-GPU LLM fine-tuning preflight: memory estimates, runnable LoRA/QLoRA recipes, and local measurements.
What it solves
It helps users determine if a specific Large Language Model (LLM) can be fine-tuned on their available GPU VRAM without having to download weights or load the model into memory first. It removes the guesswork from planning training runs by providing memory budget estimates and configuration suggestions to avoid Out-of-Memory (OOM) errors.
How it works
The tool uses a Python-based estimator that calculates the memory required for weights, quantization, trainable gradients, optimizer states, activations, and logits/loss buffers. It can generate runnable training recipes based on these estimates. Users can then run these recipes to measure actual local training performance and compare the observed memory peaks against the predicted budget.
Who it’s for
Developers and AI researchers using consumer NVIDIA GPUs who want to plan their LLM fine-tuning configurations (such as sequence length, batch size, and LoRA rank) before committing to a training run.
Highlights
- No-weight estimation: Core memory estimation requires no PyTorch and no model-weight downloads.
- Cofiguration planning: Suggests sequence lengths, batch sizes, and LoRA ranks based on a VRAM budget.
- Runnable recipes: Generates executable training scripts using Transformers and PEFT.
- Interactive demo: Includes a local web-based entry point for inspecting memory breakdowns.
- Evidence-based: Allows users to record and compare actual measured memory peaks against predictions.
Related
- Dispatch
- Project
- Project
- Project
- Project