Worked lessons · 19 November 2026
Lesson 02 / 12 · approximately 8–12 minutes
LLMs, training and inference artifacts
Know which file you have before making a capability claim.
The idea
An autoregressive language model predicts a next token conditioned on prior context. The tokenizer, model weights, chat template and generation settings jointly affect behavior. Pretraining learns broad statistical structure. Supervised instruction tuning teaches response patterns from examples. Preference optimization changes behavior using preference signals. LoRA adapts a subset of effective parameters through low-rank updates. Quantization changes numerical representation for storage or execution; it is not itself task training.
Worked example
A fictional customer-support project has a quantized inference file, an adapter and a development rubric. The inference file can support a compatible serving path, but its presence does not establish that training is configured or that the adapter matches the base. A 128K context allocation describes capacity; it does not measure useful recall near that limit. The existing Qwen worked lab is the continuation for artifact-specific planning, not permission to start training.
Use it in a workflow
- Record base identity, revision, tokenizer/template and license.
- Separate trainable source weights, adapters, quantized export and runtime configuration.
- Freeze a prompt-only baseline and a scenario-family-separated test set.
- Measure quality and latency on the same task before comparing a proposed adaptation.
Try it without a model
A team has model.gguf, adapter.safetensors and a chart labelled improved. List what is still needed before accepting the chart as evidence of successful training.
Compare with the answer criteria
Need compatible base/revisions, training data rights and split, tokenizer/template, configuration, evaluation inputs and outputs, scoring rubric and baseline. A file or chart alone proves none of the claimed improvement.
Check your understanding
Continue and verify
Connected concepts: 01, 05, 06, 07
Existing Qwen worked lab · retain its exact artifact and training-readiness boundaries.