Parameter Space Inspector

INSTRUMENT / TRAINING AND GROWTH

Graft lab

The Graft lab puts one model's layers into another, as a drop-in, at the same width, or stitched with fitted maps, and tests the graft against the missing-layer gap and a random donor.

Updated 2026-10-16 · Markdown version

The question it answers: what does a transferred layer contribute?

Select a donor layer in one model and a recipient in another. If the two models have the same width the layer drops in; if they differ, the lab stitches it with fitted maps that translate between the two representations. Then the same test runs three times: on the graft, on the recipient with the layer left missing (the gap), and on a graft from a random donor layer. A graft is only a result when it beats both controls.

From a graft to a shareable model

The Graft lab saves measurements and a signed receipt for every run. It does not export the grafted weights as a model folder. To share a graft that holds up, build it as a Commons recipe with the layer-graft method: the recipe pins each parent by hash, rebuilds to the same bytes on any machine, and can be pushed to Hugging Face with the tags that make it findable.

What it needs

The inside engine and the unpacked weights of both models.

What it showed

A successful connection alone does not establish an improvement. Grafts that run and produce text can still score no better than the gap, which is why the controls are part of every run rather than an option.

Questions people ask

Is this the same as model merging?

No. Merging combines whole models of the same shape by averaging or similar methods. A graft moves one layer, possibly between different shapes, and asks what that layer carries.

What are fitted maps?

Small linear maps trained to translate a layer's input and output between the two models' representations, so a layer from a different-width model can be connected. The lab reports when a graft needed them.

Can I graft between model families?

Between families of different width you need fitted maps, and the lab tells you whether the result holds against the controls. Across very different architectures the graft may connect and still carry nothing, and the controls will show that.