Commit Graph
4 Commits
Author SHA1 Message Date
LLMsherpa 685b405448 fix: bound snapshot transfers and model V4.1 phase memory 2026-10-26 09:57:48 -04:00
Joseph MaglyandClaude Opus 5.5 a4c097bc5f fix: keep pinned layers through informed and concept paths
Preserve layer pins through informed selection and refinement, validate
pins against model depth, honour pins in concept extraction, record
pinning honestly in metadata, plumb --layers through self-improve and
remote runs, and keep positional API compatibility.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:49:20 -04:00
rattusrattusandClaude Opus 5.5 3a1f51daa2 fix(layers): honour the pin in concept recipes and under KL co-optimization
Two paths could still move a pinned layer set:

- _distill_concept ignored layers=. It now passes the pin as the recipe's
  preset layers when the recipe uses strategy 'preset' with intervention
  rule 'same', and raises ValueError for recipes that select their own
  layers instead of silently ignoring the pin.
- _kl_optimize_corrections restores layers to meet kl_budget, on by default
  for informed, optimized, heretic and som. With a pin it no longer restores
  layers; an over-budget pinned build raises with the measured KL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 00:36:54 -06:00
Joseph Magly 1f428f60cf fix: make KL optimization measured and reversible (#182) 2026-08-28 23:11:26 -04:00