Codwen docs
Research

LoRA pilot

A merged-adapter verifier that recomputes the merge from the shipped bytes, runs the merged forward pass, and proves it rejects a deliberately mis-scaled merge.

A LoRA pilot trains an adapter; the artifact that leaves the job is the merged model. Weight-space checking — does the merge equal base plus a scaled outer product — proves the arithmetic but not that the shipped bytes behave like the evaluated adapter. A merge the runtime ignores, or one scaled wrong, passes weight-space checks that nobody recomputed from the shipped file.

What the verifier does

Four checks, each answering a failure mode the others miss:

checkwhat it proves
adapter-presentevery adapter tensor is non-zero and resolves to a real module — catches trained-but-never-attached
weight identitythe recomputed merge matches the shipped merged weights within tolerance — catches a wrong scale or a corrupted write
behaviourthe model built from the merged file's own tensors reproduces the adapter-active forward pass
negative controla deliberately mis-scaled merge must fail the behaviour check — without it the check is unfalsifiable

The harness stands on the earlier weight-space verifier: the new one subsumes it as the weight-identity check and adds output-space equivalence plus the negative control.

The floor gate

A publish gate refuses to ship a pilot whose measured eval delta is smaller than the measurement floor. It returns 0 when the effect is both at least the floor and the interval excludes zero, and otherwise says the effect is inside the noise. The gate imports the shared measurement-floor instrument rather than re-deriving it, so the gate and the eval can never disagree about how small is too small.

Status: harness verified, GPU run not done

The whole chain runs offline with no launch and no spend, and its own test suite passes — the merge maths against a hand-checked case, the behavioural equivalence on a tiny in-process model, the mis-scaled merge rejected, and the gate returning its three codes on real inputs.

No GPU job has run for this pilot. The step count and the cost are EXPECTED, not measured: the launch is gated on an owner decision, and the shape and price are estimates to re-check before launch.

On this page