What problem does it solve?
Choosing LoRA/QLoRA hyperparameters — rank, alpha, target modules, learning rate, batch size — is error-prone, and common misconfigurations (attention-only targeting, full-FT learning rates, fp16 fallback) silently degrade training quality or cause divergence.
Core Features & Use Cases
- Reference Recipe: Applies the settled "LoRA Without Regret" conventions — all-linear target modules, lora_alpha = 2 * r, rank by task type, and effective batch size under 32.
- Unsloth Defaults & Mapping: Documents Unsloth's out-of-the-box defaults (lora_dropout=0, bias="none", adamw_8bit) and maps every Unsloth kwarg to its plain TRL/PEFT equivalent, including current TRL API changes like processing_class and max_length.
- Failure Mode Diagnosis: Identifies config-level causes of loss spikes, overfitting, and OOMs — such as fp16 on non-BF16 hardware or rank too high for a small dataset — before debugging the training loop.
- Use Case: When writing a QLoRA config for a 65B-class model on 48GB VRAM, use this Skill to produce a validated adapter config (r=32, alpha=64, 2e-4 LR, NF4 quantization) that a training script consumes directly.
Quick Start
Ask the AI to generate a LoRA or QLoRA fine-tuning configuration for your model size and task, and it will produce validated hyperparameter values following current best practices.