PythiloLesson 6 of 6 · progress kept in this browser

Practice in Lab: Project: Merge and deploy a trained BERT adapter →

Download complete project source →

Project: Merge and deploy a trained BERT adapter

An adapter artifact is small because it omits the frozen base. A merged classifier contains the complete encoder again. Merge W plus alpha/r times B@A in evaluation mode, remove the LoRA modules, and compare actual inference logits. Export the resulting state and load it into a fresh ordinary classifier. This demonstrates a real deployment transformation; it does not imply quantization, acceleration or a smaller full-model file.

Your task

Train and reload an adapter, merge Q/V deltas, export the complete classifier and check held-out logits after reload. 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.

All lessons