ML Systems: From Weights to Work. Lesson 6. Adapters without the mythology. This educational session uses fictional healthcare operations examples. This session uses AI narration. What is being adapted? An adapter is a parameter-efficient way to alter model behavior without necessarily updating every original parameter. The term includes several designs. Bottleneck adapters add small trainable modules within a network. LoRA represents a weight update with low-rank matrices. These mechanisms should not be confused with a connector that lets an application call an external service, even though software teams sometimes use the same word for both. For a weight matrix W with d output rows and k input columns, LoRA learns matrices B and A whose product has the same shape as W. If B is d by r and A is r by k, the trainable update has r times d plus r times k parameters rather than d times k. A scaling factor is normally applied. The rank r limits the rank of the update, not the total rank or knowledge of the resulting model. Target modules and implementation choices matter as much as the rank number. Calculate the savings in the right denominator For one 4096 by 4096 matrix and rank sixteen, full tuning adjusts 16,777,216 parameters. The two LoRA matrices contain 131,072 parameters, or 0.78125% of that target matrix. For sixty-four such matrices, the adapters contain 8,388,608 trainable parameters. A binary megabyte is two to the power twenty bytes, the unit written M i B. At two bytes per adapter weight, that is sixteen binary megabytes of adapter weights. This is a calculation about the chosen matrices, not a statement that the entire training job uses sixteen binary megabytes. The frozen base model must still participate in the forward computation, and gradients must propagate through relevant operations to train the adapters. Activations and temporary workspaces still consume memory. Optimizer state for the trainable adapter parameters is smaller than for full tuning, but the training batch, sequence length and implementation can dominate the remaining footprint. A memory estimate that reports only the adapter file size is incomplete. QLoRA combines different techniques QLoRA showed a way to train low-rank adapters through a frozen, quantized base model using particular quantization and memory-management techniques. Quantization reduces the precision used to represent values; adapter training changes learned parameters. They are independent concepts that can be combined. A four-bit base is not the same as four-bit arithmetic everywhere, four-bit activations or a four-bit key-value cache. Quantization metadata, dequantization, kernels, outliers and quality changes affect actual memory and speed. The nominal number of bits is a payload estimate, not a benchmark. Measure the exact quantized artifact and inference stack on the cases that matter. A model that fits memory can still have unacceptable tail latency, and a small adapter can still introduce a high-severity behavior regression. Treat the adapter as a versioned model artifact An adapter depends on the base architecture, the intended base checkpoint, target-module names, tokenizer assumptions and training configuration. A compatible tensor shape is not sufficient evidence of behavioral compatibility. Merging a LoRA update into base weights can avoid separate adapter computation at inference, but changes deployment and rollback choices. Hot-swapping adapters needs an explicit selection policy and tests for the serving implementation. In a multi-practice system, an adapter is not a tenant-isolation boundary. A caller should not choose another practice's adapter merely by naming its identifier. Authorize selection on the server, bind it to the expected base and workflow version, and avoid training sensitive records into a model when the task only requires current retrieval. Removing an adapter does not retroactively erase data from logs, outputs, caches or other artifacts. Governance follows the whole training and serving path. Your decision exercise. A synthetic job targets 64 square matrices of dimension 4096 with LoRA rank 16. The engineer estimates 16 binary megabytes of two-byte adapter weights and 128 binary megabytes of illustrative sixteen-byte training state for those adapter parameters. The frozen base, activations and buffers are budgeted separately. Deployment proposes swapping the adapter onto a newer base with matching tensor shapes but no evaluation. Which assessment is defensible? Option 1. The parameter arithmetic is consistent, but matching shapes do not establish compatibility with the newer base; evaluate the exact pairing before serving it. Option 2. The arithmetic proves the complete job fits in 128 binary megabytes and therefore the newer base is safe. Option 3. LoRA updates must have the same rank as the full matrix, so the entire calculation is invalid. Pause here and commit to a choice. Name the decisive evidence and one limitation before continuing. Reference analysis. Two times 4096 times sixteen times sixty-four gives 8,388,608 trainable adapter parameters. Multiplying by two bytes yields sixteen binary megabytes; multiplying by sixteen yields 128 binary megabytes. These are limited to the adapter tensors under the stated assumptions. The engineer correctly separated the frozen base and activations. The unsupported step is deployment onto a different base. Shape compatibility can allow a load to succeed while behavior changes. Pin the intended base and tokenizer, run held-out task and regression evaluations, and keep the previous pairing available for rollback. Now change one fact. Double rank while halving the number of target matrices. The trainable parameter count stays constant. Explain why the two adapters need not learn the same function or achieve the same quality. Give a one-minute review of an adapter proposal. Include the target modules, rank, training objective, data scope, base checkpoint, tokenizer, serving selection policy and rollback identifier. Then distinguish three actions: loading a skill, attaching a LoRA adapter and retrieving a current payer document. State which changes parameters, which changes prompt context and which requires separate authorization to access the source.