LoRA
Train a small add-on matrix instead of the whole model, so fine-tuning is cheap and the result is a portable file.
Also called: low-rank adaptation, adapter.
LoRA freezes the base weights and learns two thin matrices per layer. Rank sets how thin.
Because the adapter is separate, you can train it on one platform and serve it with the same open base weights somewhere else.
In the compiled loop
LORA_RANK (16, 32, 64) is a knob in every compiled file. save_state checkpoints the adapter plus optimizer.
Build it: Demonstrations · Specialized Tool Agents · Inkling 2 Mini
Sources
Hu et al., 2021 · Tinker docs: LoRA primer