Overview
An end-to-end LLM pipeline that fine-tunes Qwen3-4B with QLoRA (4-bit NF4 quantization plus low-rank adapters) on a single 16 GB NVIDIA T4, then serves the result through a lightweight REST API.
Training uses 3,000 multi-turn conversations sampled from UltraChat 200k and updates only 33M parameters (0.81% of the model), cutting model memory from about 8 GB to 2.4 GB and producing a LoRA adapter of about 130 MB. The adapter is served by a Flask API with constant-time API-key authentication and a toggle for Qwen3's thinking mode.