Skip to content
OpenPond
Join community
Ponder Training/Merged LoRA

Merged LoRA

Materialize an eligible inherited delta into a derived frozen backbone, then train a fresh LoRA adapter with compatible GRPO.

This is an RL → LoRA (GRPO) parent-continuation mode, not a primary workflow or a generic SFT, Engram or neuron-training option. Manual continuation and a scheduled policy use separate reviewed authority; interrupted-run recovery retains the original operation.

Merged LoRA folds an eligible parent's adapter contribution into a derived backbone and freezes that backbone. A new LoRA adapter then trains on top of it. The original base and parent artifacts remain immutable; the derived model has its own retained materialization identity.

Choose it when the qualified next stage should begin from that materialized parent behavior with fresh factors. It is not an in-place overwrite of the original Model or a general command for merging arbitrary adapters.

The computation

For one projection, first construct a derived weight:

ΔWp=sBpAp,Wderived=W0+ΔWp.\Delta W_p=sB_pA_p,\qquad W_{\mathrm{derived}}=W_0+\Delta W_p.

Freeze that result and train a new adapter:

Weff(t)=stopgrad⁡(Wderived)+sBnew(t)Anew(t).W_{\mathrm{eff}}^{(t)} =\operatorname{stopgrad}(W_{\mathrm{derived}}) +sB_{\mathrm{new}}^{(t)}A_{\mathrm{new}}^{(t)}.

stopgrad marks the derived backbone as fixed during optimization. With a zero initial child contribution, the new stage starts at the materialized parent weight:

Bnew(0)=0⟹Weff(0)=Wderived.B_{\mathrm{new}}^{(0)}=0 \quad\Longrightarrow\quad W_{\mathrm{eff}}^{(0)}=W_{\mathrm{derived}}.

The parent A/B pair is not an active trainable branch in the new stage. Its contribution is already represented by W_derived. Adding it again would apply the same delta twice.

Precision and lineage matter

The current merge algorithm adds each accepted delta in FP32 and casts the result to BF16 after each stage:

ΔWpFP32=s FP32⁡(Bp)FP32⁡(Ap),Wnext=BF16⁡ ⁣(FP32⁡(Wcurrent)+ΔWpFP32).\begin{aligned} \Delta W_p^{\mathrm{FP32}} &=s\,\operatorname{FP32}(B_p)\operatorname{FP32}(A_p),\\ W_{\mathrm{next}} &=\operatorname{BF16}\!\left( \operatorname{FP32}(W_{\mathrm{current}})+\Delta W_p^{\mathrm{FP32}} \right). \end{aligned}

Sequential materialization retains the original model inventory, ordered delta inventories, hashes and algorithm identity. Each stage delta must appear exactly once. Because rounding occurs per stage, a different grouping or order is not silently treated as the same backbone.

In ideal arithmetic, an untrained fresh child with zero contribution starts at the parent effective weight. Actual materialization still needs the retained precision, parity and fresh-reload checks. A mathematical equality alone does not prove equivalent outputs from a deployed runtime.

Current training requirements

RequirementWhy it matters
Exact saved GRPO-trained parentTraining continuation does not accept a supervised artifact as a generic substitute.
One compatible factor sliceThe training resolver does not fold an arbitrary multi-block Stacked parent into a new training stage.
Same logical rankParent/source and requested child configuration must satisfy the accepted same-rank profile.
Exact model/tokenizer/template and runtime profileA plausible model label or matching tensor shape is not enough.
Fresh optimizerNew cross-job stages reset optimizer state.
Zero KL and accepted base-model reference ruleThese are explicit current merged-training constraints, not optional interpretation.

The accepted materialization profile pins the original dense BF16 model and its inventory. Quantized models, arbitrary backbones and unqualified GPU images are not implied. Read-only evaluation may have its own signed-stack folding path; that does not expand the narrower training-parent requirements above.

Example: rank-8 parent to rank-8 fresh adapter

Suppose a compatible parent has one rank-8 factor slice. Merged materializes that delta into its derived backbone, then starts a new rank-8 adapter with a fresh optimizer and the required zero-KL recipe. The inherited contribution is frozen in the backbone; the new factors learn the next residual.

A rank-16 request against that rank-8 parent fails the current same-rank check. A two-block rank-8-plus-rank-8 Stacked parent is not the required single slice, even though its total enabled rank is 16. These are illustrative compatibility examples, not executed runs or quality claims.

Zero KL means this recipe does not apply that explicit KL penalty. It does not mean unlimited authority, guaranteed retention or automatic candidate acceptance. Use independent target and regression evaluation before deciding on the result.

Configure and review

  1. Open New Model, choose RL and LoRA, then Save. In Model, select Merged under LoRA configuration for manual checkpoint continuation and select the exact compatible saved GRPO-trained parent.
  2. Review the derived-backbone lineage, supported rank, zero-KL/reference rule, admitted reward-training tasks and independent evaluation plan.
  3. Inspect the prepared materialization, runtime and component spending limits, then explicitly start the retained preparation.
  4. Inspect actual merge/parity/reload evidence and new-stage optimizer/checkpoint evidence separately from answer-quality results.
  5. Accept or save a qualified candidate, then separately authorize its compatible serving deployment. Keeping a prior immutable version supplies a decision boundary; materialization alone does not switch serving.

Compatible continual learning can retain Merged as its GRPO strategy. Selecting the mode does not create a schedule, approve data or authorize activation. Interrupted-job recovery remains separate from beginning another cross-job stage.

Compare Shared LoRA for updating the original factors and Stacked LoRA for adding a child beside frozen parent factors. The GRPO guide contains the common preparation and Start contract.

Sources and client contract

Compatibility

GRPO cross-job continuation only. The current training path requires an exact compatible same-rank single factor slice, qualified derived-backbone materialization, fresh optimizer and zero KL.

View as Markdown