PythiloLesson 4 of 6 · progress kept in this browser

Practice in Lab: Project: Compare full tuning and LoRA budgets →

Download complete project source →

Project: Compare full tuning and LoRA budgets

A fair comparison records what is held constant and what differs. Both methods start from the same pretrained revision and classification head, see the same row order, use the same sequence length and receive the same number of optimizer steps. The method-specific learning rates are declared in the report. Parameter bytes, AdamW tensor bytes and file sizes answer different questions; none is a measurement of peak resident memory.

Your task

Compare identical splits and step budgets; measure trainable tensors, AdamW state and export bytes. Implement run_project(output, quick=False). Follow the reference report/artifact schema; the checks run quick=True with actual pretrained weights and real data. The full dataset is the default.

This lesson uses finetune_projects and pythilo_finetune and torch, which Python in this browser does not include. Read it here, and run and check it in the Pythilo app on iPhone or iPad.