Commit Graph
6 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 60ce1039de fix(concepts): concept workflow and Pain Axis scripts on split models
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:35:06 -04:00
Joseph MaglyandClaude Opus 5.5 1d80676b12 fix: address review findings for #335
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:17:20 -04:00
Joseph MaglyandClaude Opus 5.5 7024ae5e34 Validate every folded write in the storage dtype before mutation
Folded results from norm restoration, LoRA merges, repair candidates and the
other audited write sites are checked for finiteness in the storage dtype
before any in-place update; repair candidates that would overflow are
rejected as failed steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:42:59 -04:00
Joseph MaglyandClaude Opus 5.5 9275d30807 Keep zero-direction no-ops and validate folded LoRA deltas
Folded pipeline projections preserve the legacy zero-direction behaviour
(including projection counts), and folded LoRA adapters are checked for
finite deltas and merged weights in the writer dtype before mutation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:57:01 -04:00
Joseph MaglyandClaude Opus 5.5 8d6e38bd35 Fold post-sublayer norms and optionally project embeddings in concept weight interventions
Concept orthogonalize/lora now remove the direction from what Gemma 2/3 and
OLMo 2 sandwich-norm layers write to the residual by folding the post-norm
scale into the projection, and fail closed on unrecognized post-norm layouts.
project_embeddings adds the input embedding edit, with an explicit
tied_embeddings choice (edit_both or untie) for tied models.

Fixes #318

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:50:53 -04:00
Joseph MaglyandClaude Opus 5.5 38ae5cb35e fix(lora): add unmerge and export LoRA ablation adapters
LoRA ablation merged adapters into live weights while docstrings promised
reversibility. No unmerge existed, and the pipeline never wrote a PEFT
artifact.

Add unmerge_lora_adapters. Restoration is bit-exact from opt-in CPU
snapshots (apply_lora_adapters(keep_originals=True)), or a documented
rounding bound when the delta is subtracted. Unsupported meta/offloaded,
quantized or mismatched weights are skipped with a logged count on both
apply and unmerge, keeping the previous no-op behaviour for those weights.

When use_lora_ablation is on and the base is a Hub model with a pinned
40-hex revision, REBIRTH also writes an unmerged PEFT adapter to
<output>/lora_adapters through a separate exporter that marks the base
identity as unverified. Otherwise the existing explicitly unsupported
adapter artifact is kept. The exact-identity save_lora_adapters contract is
unchanged. Metadata records the format actually written, and the UI status
names the adapter directory when present. Docstrings no longer overstate
reversibility.

Fixes #222

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 17:41:08 -04:00