Glossary
Adapter — the small file LoRA saves: the learned change, kept apart from the base model and applied on top of it at load time (chapter 2).
Alpha (lora_alpha) — how loudly
the adapter's change is applied:
the change is scaled by alpha divided
by rank (chapter 2).
Base model — the pretrained model you start from. In LoRA training it is frozen, byte for byte (chapter 2).
Batch size — how many examples the model examines before each correction (chapter 5).
Catastrophic forgetting — a fully fine-tuned model losing general abilities it was trained out of by a narrow dataset (chapters 2, 12).
Chat template — the fixed format an instruction-tuned model expects its conversations wrapped in; fine-tune in the model's own format (chapter 4).
Context window — the amount of text the model can consider at once; prompts and retrieved pages spend it (chapter 11).
Dataset — the set of examples shown to the model in training; the lesson itself (chapter 3).
Epoch — one complete pass over the dataset (chapter 5).
Fine-tuning — adjusting a trained model on examples of the behaviour you want, so that behaviour becomes its default (chapter 1).
Frozen — of weights: held exactly as they are during training. The base model in LoRA is frozen (chapter 2).
GGUF — the single-file format the llama.cpp ecosystem runs; whole models are exported to it, usually quantised (chapter 9).
Greedy generation — always taking the model's favourite next word, so output is repeatable (chapter 8).
Held-out — kept out of training, for honest testing: behaviour on held-out questions is evidence of learning, not memory (chapter 8).
Instruction example — one training item: a request, and the response you wish the model had given (chapter 4).
JSONL — one JSON object per line of a text file; the usual on-disk shape of a dataset (chapter 4).
Learning rate — the size of each correction step during training (chapter 5).
LoRA — Low-Rank Adaptation: learning a behaviour as two small matrices added to a frozen model's weights (chapter 2).
Loss — the training score: how surprised the model was by the right answers. Lower means it predicted them better — on the data it saw (chapter 6).
Masking — marking part of an example, usually the question, so it contributes nothing to the loss (chapter 4).
Merging — folding an adapter's change permanently into a copy of the base model's weights (chapter 9).
Parameter — one of the internal numbers that training sets and fine-tuning adjusts (chapter 1).
PEFT — the Python library (Parameter-Efficient Fine-Tuning) that implements LoRA and its cousins (chapter 5).
Prompting — changing a model's behaviour through the request itself; the first tool to try (chapters 1, 11).
QLoRA — LoRA trained on top of a quantised base model, so large models fit in modest training memory (chapter 11).
Quantised — of a model: stored at reduced numerical precision, smaller and faster, slightly less exact (chapter 9).
RAG (retrieval-augmented generation) — answering from documents fetched at question time instead of from the model's weights (chapters 1, 11).
Rank (r) — the width of a LoRA
adapter's bottleneck; its capacity
to express change (chapter 2).
Seed — the fixed starting number for training's coin flips, making a run repeatable (chapter 5).
Target modules — the named layers of the base model to which adapters are attached (chapter 2).
Token — the unit models read and write: a word piece, roughly three-quarters of a word of English.
Trigger word — in image LoRA, an invented word placed in every caption so the trained subject answers to it (chapter 10).