Commit Graph
15 Commits
Author SHA1 Message Date
Joseph Magly ff4c439d31 fix(bayesian): restore policy on format failure 2026-10-29 00:54:44 -04:00
Joseph Magly 2e9a815d1b fix(excise): propagate nested recipe failures
Keep allocation failures terminal through quantized experts, adapter selection, Bayesian evaluation and refinement helpers. Route folded-writer errors and warnings promoted to errors through public cleanup before verification or export.

Exercise exact exception causes, failed-operation counts, rollback, cleanup and no-export behavior across recipe variants. Fixes #389.
2026-10-28 23:15:14 -04:00
LLMsherpa acfd373f01 fix: correct Bayesian search inputs and RDO preservation
Search float direction indices across all extracted source layers and include that domain in persisted study identity. Apply informed attention scaling to the warm-start maximum. Penalize the squared harmless activation component removed by the optimized RDO direction so preservation has a gradient. Add behavioral regressions.
2026-10-27 21:40:39 -04:00
LLMsherpa dace6a8817 fix: preserve search state and resume verified exports 2026-10-27 17:45:33 -04:00
LLMsherpa 263854cb12 fix: count resident load storage once and classify method outcomes 2026-10-26 12:23:30 -04:00
LLMsherpa ac6d92abc7 fix: preserve scored candidates across search, refinement and tournament replay 2026-10-25 21:52:42 -04:00
Joseph MaglyandClaude Opus 5.5 a831d72b7c feat(eval): exclude invalid completions from refusal rates by default (#332)
Default exclude_invalid to True for refusal metrics, verification and the
optimizer objective, with a one-release warning for implicit legacy use,
invalid counts in metadata and reports, and a changelog note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:07:11 -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 d664199cc7 Fold post-sublayer norms in pipeline excise
AbliterationPipeline now folds Gemma 2/3 and OLMo 2 post-attention and
post-feedforward RMSNorm scales into residual-writer projections across
excise, Bayesian, SAE, LoRA-ablation and repair paths, sharing the
recognition rules with the concept API. fold_post_norms=False
(--no-fold-post-norms) reproduces the previous numerics and is recorded in
run metadata. Combinations that cannot be folded fail explicitly.

Fixes #320

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:42:35 -04:00
Joseph MaglyandClaude Opus 5.5 db39905ffa fix(eval): report invalid completions beside refusal rates and stop rewarding degeneration (#312)
`refusal_rate` and its callers counted empty, reasoning-only and degenerate
completions as non-refusals, so the Bayesian optimizer objective and
tourney and benchmark rankings could reward an edit that destroyed output.

- New `measure_refusals` returns a `RefusalMeasurement` (refused, valid,
  invalid, total, rate over valid completions, invalid rate).
- `refusal_rate`, `refusal_rate_with_ci` and `heretic_eval.arditi_refusal_rate`
  gain `exclude_invalid`. The default keeps the legacy all-response
  denominator for a deprecation window; `refusal_rate_with_ci` adds
  valid, invalid and total counts.
- Verification metadata adds invalid counts, the valid-only rate and a
  refusal objective that counts invalid completions as refusals.
- The Bayesian optimizer, tourney and benchmark rankings use that objective
  and record invalid rates; displayed refusal rates are unchanged.
- docs/refusal-metrics.md documents the denominators and the planned
  default change.

Fixes #312

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 17:16:26 -04:00
Joseph Magly 40236a150e fix(bayesian): reset attempt state and persist every skipped outcome 2026-09-07 16:21:29 -04:00
Raja Mukerji 2d31d64857 fix(bayesian): surface skipped optimization and clamp warm start to search space 2026-09-07 00:36:39 -07:00
Joseph Magly 548092d5ca ci: establish green validation baseline (#59) 2026-08-14 09:55:49 -04:00
pliny 69fa63ac43 Add files via upload 2026-03-08 12:07:56 -07:00
pliny 0f6114fe87 Add files via upload 2026-03-04 12:38:18 -08:00