What problem does it solve? Training and fine-tuning large language models typically involves navigating complex abstraction layers and fragmented tooling. This Skill provides clean, single-file LLM implementations with production-ready training workflows, making it straightforward to fine-tune, pretrain, quantize, and deploy models like Llama, Gemma, Phi, Qwen, and Mistral. ## Core Features & Use Cases - Fine-tuning with LoRA/QLoRA: Train adapters on consumer GPUs (12-16GB VRAM) with configurable rank, alpha, and dropout parameters, then merge weights for deployment. - Pretraining and distributed training: Pretrain models from scratch with FSDP multi-GPU and multi-node support via Lightning Fabric. - Model deployment: Quantize models to 4-bit, convert to GGUF for llama.cpp, and serve via FastAPI endpoints. - Use Case: Fine-tune Phi-2 on a custom Alpaca-format JSON dataset using LoRA on a single 16GB GPU, merge the adapter weights, and deploy the merged model behind a REST API. ## Quick Start Fine-tune microsoft/phi-2 with LoRA on my dataset at data/my_dataset.json using LitGPT, then merge the adapter weights for deployment.