Glossary
- LoRA
LoRA (low-rank adaptation) is a fine-tuning method that keeps a model's original weights frozen and trains small low-rank matrices added to selected layers, so only a tiny fraction of the parameters change. The result is a small adapter that is loaded on top of the unchanged base model. Valcairn's runner trains LoRA adapters on a machine you link to your workspace: by default rank 32, alpha 64, on all linear layers, for 2 epochs in bf16, inside a sandbox with no network, and the adapter stays on that machine.
- QLoRA
QLoRA is LoRA fine-tuning on top of a base model whose weights are loaded in 4-bit precision, which cuts the GPU memory needed to fine-tune a large model while the small adapter itself trains in higher precision. It lets a model that would not fit for ordinary LoRA be tuned on a smaller GPU, at some cost in speed. Valcairn's runner does not offer QLoRA as a training method today: it trains standard LoRA adapters with the base model in bf16.
- Adapter
An adapter is a small set of extra trained weights that changes a base model's behaviour without altering the base model's own weights; it only works when loaded together with the base model it was trained on. LoRA adapters are the most common kind and are usually far smaller than the model they adapt. In Valcairn, a finished training job leaves an adapter in safetensors format on the runner's machine, with a manifest naming the base model, the dataset files and the settings, and Valcairn records the adapter's SHA-256 so later steps can check it is unchanged.
- Fine-tuning
Fine-tuning is further training of an already-trained model on a smaller, task-specific dataset so it performs better on that task, for example answering in a company's format, tone or vocabulary. It can update all of the model's weights or, more cheaply, only a small adapter such as LoRA. In Valcairn, fine-tuning runs only from a training plan an owner or admin has approved, on frozen dataset versions that passed Valcairn's rights and quality review, on a runner you link; hosted GPUs are planned, not built.
- Supervised fine-tuning (SFT)
Supervised fine-tuning (SFT) trains a model on example inputs paired with the exact answers you want, so it learns to produce answers like them. It is the usual first step when adapting a model to a task, and it needs prompt-and-answer or conversation examples. Supervised fine-tuning is Valcairn's default training method: the runner trains a LoRA adapter on approved examples with completion-only loss, so the model learns from the answers rather than from the prompts.
- Preference tuning (DPO)
Preference tuning trains a model on pairs of answers to the same prompt, one preferred and one rejected, so it learns to favour the kind of answer people chose. Direct preference optimization (DPO) learns from those pairs directly, without first training a separate reward model. Valcairn offers preference tuning as a training method: each JSONL line holds a prompt, a chosen answer and a rejected answer, and the runner optimizes a LoRA adapter with DPO (beta 0.1).
- Held-out split
A held-out split is the part of a dataset set aside and never trained on, used afterwards to measure how a model does on examples it has not seen. Comparing the base and the tuned model on it shows whether training helped or only memorized the training data. Valcairn's runner holds out about one prompt group in ten, keeping every answer to the same prompt on the same side so a question cannot appear in both training and held-out data, saves the split's hashes, and reports the held-out loss of the base and the tuned model.
- Evaluation set
An evaluation set is a fixed collection of test cases, each an input with an expected answer or review criteria, used to measure whether a model or assistant does a job well enough. Unlike training data, it exists to score models, not to teach them. In Valcairn, a project's evaluation set is frozen into numbered versions; each version carries the acceptance rule a release must pass, and runs on different frozen versions are never compared with each other.
- Regression (model)
A model regression is a case that an earlier model answered correctly and a newer model gets wrong. A new model can score higher overall and still regress on cases that matter, so release checks count regressions separately from the overall score. Valcairn's comparison screen marks each paired case as kept, fixed, regressed or still failing, and an improvement cycle can set a maximum regression share, so fixing two cases while breaking one still fails a zero-regression policy.
- Frozen test set
A frozen test set is an evaluation set locked so that its questions, expected answers and criteria cannot change, which keeps scores from different models comparable and stops the test being adjusted to suit a model. A change produces a new version instead of editing the old one. In Valcairn, freezing an evaluation set creates an immutable version: a new expected answer freezes the next version, older versions stay as they were, and training data that repeats a final-assessment question word for word is refused.
- Model card
A model card is a short document published with a model that states what the model is, what it was built from, how it was evaluated, what it is intended for, its known limits and its license. It lets someone judge whether the model fits their use without reading the training code. When Valcairn's runner exports a trained model, it writes a MODEL_CARD.md next to the GGUF file, together with a manifest of file hashes and the base model's license.
- Open weights
An open-weights model is one whose trained parameters are published for anyone to download and run on their own hardware, under a license that sets what they may do with it. Open weights is not the same as open source: the training data and code may stay private, and the license may restrict commercial use. Valcairn fine-tunes open-weight models on a machine you link, so the trained adapter stays on that machine; its model list shows each model's license and whether commercial use is allowed.
- Quantization
Quantization stores a model's weights at lower numeric precision, for example 8 or 4 bits per weight instead of 16, so the model needs less memory and often runs faster, at some cost in accuracy that grows as precision drops. It is the usual way to run large models on ordinary GPUs and laptops. When Valcairn's runner exports a trained model, it converts it to GGUF at Q8_0 (8-bit) quantization with llama.cpp's converter and records the quantization in the export manifest.
- GGUF
GGUF is a single-file format for a model's weights and metadata, created by the llama.cpp project and used to run models locally with tools such as llama.cpp and Ollama. A GGUF file usually holds quantized weights, so one file is enough to load and run the model. Valcairn's export step merges a trained adapter into its base model, converts the base and the tuned model to GGUF (Q8_0), loads both into Ollama on the same machine and load-tests them on held-out conversations.
- VRAM
VRAM is the memory on a graphics card (GPU). A model's weights, plus working memory for its inputs, must fit in VRAM for the model to run on that GPU at full speed, so VRAM is usually what decides which models a machine can run or fine-tune. Training needs more VRAM than inference for the same model. Valcairn's runner reports each linked machine's GPUs, and a finished training job records its peak GPU memory alongside its results.
- Epoch
An epoch is one full pass of training over every example in the training set; training for two epochs means the model sees each example twice. More epochs fit the training data more closely but raise the risk of memorizing it instead of generalizing. Valcairn's runner trains LoRA adapters for 2 epochs by default; a training plan can set an explicit step count instead, which replaces the epoch schedule.
- Training example (JSONL)
A training example is one input together with the answer a model should learn to give, and JSONL (JSON Lines) is the usual file format for them: a text file with one JSON object per line. Common shapes are a chat conversation as a list of messages ending in the assistant's answer, or a prompt and completion pair. Valcairn reads .jsonl files in three shapes: a conversation ending in an assistant answer, a prompt/completion pair, or a prompt/chosen/rejected triple for preference tuning. Its training-file check applies the runner's own rules in the browser, so the file never leaves your device.
- Data rights record
A data rights record documents where a dataset came from and what it may be used for: its source, its license or terms, the permitted uses, whether it contains personal data and when the permission ends. It is the evidence that training a model on the data is allowed. In Valcairn, a project records its data's rights before any files are uploaded, including the license or terms and a permission end date, and Valcairn reviewers check rights, consent, labels and duplicates before a dataset version is approved.
- Release approval
Release approval is the recorded decision by an accountable person that one specific model version meets its acceptance criteria and may be used. A sound approval names exactly what was approved, so any later change to the model, the data or the test voids it. In Valcairn, an owner or admin can approve only after the frozen acceptance rule passes on a complete run of the full frozen set; the approval is bound to a hash of the chain of source versions, cases, run and candidate, and a changed candidate or a later judgment voids it.
- Signed release record
A signed release record is an approval record carrying a cryptographic signature, so anyone with the issuer's public key can check who approved which exact model version and that the record has not changed since. It proves where the record came from and that it is intact, not that training used only the inputs it names. Valcairn's release export can carry an Ed25519 signature over the approval, its content hash, the approver and the time; the public key is published at /api/release-key, and a single-file Node.js checker verifies exports.
- Runner
A runner is a program on a machine you control that picks up jobs from a coordinating service, runs them locally and reports the results back, so the work and the data stay on that machine. Build systems and ML platforms both use runners. The Valcairn Runner is installed on your own GPU machine and linked to a workspace; it runs probe, training, export and evaluation jobs in a sandbox, downloads training data only through short-lived signed links checked against the dataset's hashes, and reports GPUs, measured numbers and file hashes back to Valcairn.
- Base model
A base model is the pretrained model you start from before fine-tuning; an adapter or fine-tuned weights only work together with it. Choosing it sets the starting quality, the context length, the hardware needed and the license that applies to everything built on it. A Valcairn training plan names its base model, and the runner records the base model's source, revision and file hashes in the training manifest so that a later export can check the same base model is still in place.
- Inference
Inference is running a trained model to produce output from new input, such as answering a question, as opposed to training it. Its speed and cost depend on the model's size, its precision and the hardware, and speed is often measured in tokens per second. Valcairn runs inference only on machines you control: it connects to a local Ollama to run and measure models on your device, and runner jobs answer evaluation cases with an installed local model. Hosted inference and managed deployment are planned, not built.
- RAG (retrieval-augmented generation)
RAG (retrieval-augmented generation) answers a question by first retrieving relevant passages from a document collection and then giving them to a language model with the question, so the answer can draw on and cite current or private sources without retraining the model. Its quality depends on both the retrieval and the model. In Valcairn, an evaluation run in Ollama mode sends each frozen question with its retrieved references to a local model and scores the answer on fact, rubric and citation, and an improvement cycle can test retrieval changes before any training.
- Model license
A model license is the legal terms under which a model's weights may be used, changed and redistributed, including whether commercial use is allowed and any limits on who may use it or for what. A fine-tuned model generally remains bound by its base model's license. Valcairn's model list shows each model's license and whether commercial use is allowed, a project that brings an existing model records that the team may test and deploy it under its license, and every runner export copies the base model's LICENSE file next to the model.