Commit Graph
29 Commits
Author SHA1 Message Date
Joseph Magly ecd10979c5 perf(cli): keep checkpoint inspection free of model imports 2026-11-28 15:24:40 -05:00
Joseph Magly 6bc227130f fix: harden discovery filters and CLI regression guards 2026-11-28 14:23:03 -05:00
Joseph Magly 253369c6b4 perf(cli): avoid model imports for numeric GPU estimates
Register and dispatch gpu-calc before unrelated command parsers while sharing its argument definition with root help. Preserve pre-parse secret and distributed-command guards. Verify the real command in a fresh interpreter without heavyweight execution imports. Refs #684 and #705.
2026-11-28 13:07:34 -05:00
Joseph Magly 6df8ef411d fix(config): let --preset override YAML presets, resolve task metrics on construction, copy preset data
Codex review r1 for #620: the CLI --preset now replaces whichever preset key
the YAML uses and an unknown preset is a clear error; directly constructed
studies resolve omitted metrics from the model task in __post_init__ (explicit
lists unchanged); preset strategies and metrics are copied on apply so parsed
studies don't share mutable state. README narrowed; loader behaviour for a
checkpoint without label metadata is pinned by tests.
2026-11-24 17:12:22 -05:00
Joseph Magly 64837993b0 fix: apply run presets before parsing, task-aware metrics, padding-safe perplexity, checkpoint label counts
Apply `run --preset` before StudyConfig requires `strategies`, and default
omitted classification metrics to accuracy/F1, also on the preset path.
Causal perplexity no longer scores targets preceded by padding and passes
mask-derived position_ids for left-padded batches, so batch size no longer
changes results. Classifier loading keeps the checkpoint's label count unless
num_labels is given.

Fixes #608
Fixes #610
Fixes #609
Fixes #614
2026-11-24 14:45:50 -05:00
Joseph MaglyandClaude Opus 5.5 463300345c fix: reconcile merged Pain Axis scripts with both test suites (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:02:37 -04:00
Joseph MaglyandClaude Opus 5.5 24d8152a1f fix: address review findings for #332
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:30:05 -04:00
Joseph MaglyandClaude Opus 5.5 a6bfc7ad9e Merge upstream/main into feat/300-pinned-layers
Resolve RemoteRunner._build_command conflict with #297: keep
max_seq_length (already released on main) before layers so positional
callers stay compatible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 20:50:16 -04:00
Joseph MaglyandClaude Opus 5.5 19751022cd fix: record collection sizing only for completed collections
Record activation-collection sizing after a collection finishes, keep
RemoteRunner positional compatibility, clarify --max-seq-length help,
and extend validation, fallback and remote parity tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:49:20 -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
Joseph Magly 5cf33946bf Merge remote-tracking branch 'upstream/main' into pr-301 2026-10-16 14:40:27 -04:00
Joseph Magly 7eb61a10d1 Merge remote-tracking branch 'upstream/main' into pr-297 2026-10-16 14:40:26 -04:00
Joseph MaglyandClaude Opus 5.5 7fa2ae87e8 Forward fold_post_norms to remote runs and record it in golden metadata
Remote obliterate commands accept the folding opt-out, folded repair
candidates are validated after storage-dtype conversion, the refusal golden
fixtures record the new provenance key (numeric values unchanged), and the
risk map registers the shared post-norm module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:22:29 -04:00
Joseph MaglyandClaude Opus 5.5 5f558a78db feat(concepts): apply #223 maintainer rulings on publication, leace and steering
Maintainer decisions for epic #223 (2026-10-15):

- Q1: `leace` is a deprecated alias of the Fisher LDA direction. It keeps
  its numerical behaviour, warns once per public resolution with a
  DeprecationWarning naming `fisher_lda` and `leace_exact`, and will be
  removed in a future minor release.
- Q4: a collateral FAIL blocks both the model card and any Hub push of
  modified weights or adapters on every path (pipeline, export_run, both
  CLIs, Concept Lab, the Hub UI and tourney uploads), checked before any
  network call. `--allow-collateral-fail REASON` (and the matching API
  argument and UI field) overrides the block and stamps the FAIL and
  reason into the card, checkpoint metadata and provenance. Local save
  and export are never blocked.
- Q5: research-tier packs no longer carry publication or local-export
  restrictions; the tier is provenance only and Q4 applies to every pack.
- Steering defaults are removal-first: `steer` defaults to alpha -1 and
  the default dose ladder is non-positive. Positive doses stay available
  explicitly; `project` keeps its positive removal strength.
- Q3 (gate modes) and Q7 (dense only, follow-up #310) are unchanged and
  documented.

Refs #223

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:37:51 -04:00
rattusrattusandClaude Opus 5.5 57e50bed41 feat(remote): forward --layers to remote obliterate runs (#300)
A remote run silently dropped --layers and fell back to automatic selection. Forward
the pin through _cmd_remote_abliterate and build_obliterate_command as a
comma-separated index list, which the remote CLI parses back unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 01:07:12 -06:00
rattusrattusandClaude Opus 5.5 5e6163b396 feat(remote): forward --max-seq-length to remote obliterate runs (#296)
A remote run silently dropped --max-seq-length, so the remote pipeline fell back to
the memory heuristic the flag exists to override. Forward it through
_cmd_remote_abliterate and build_obliterate_command, like --refusal-max-tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 01:07:00 -06:00
rattusrattusandClaude Opus 5.5 4e2dc9ff72 fix(cli): expose --max-seq-length and record probe sizing in metadata (#296)
The free-memory heuristic in _activation_collection_limits shortens probe
sequences (256 -> 128/64) and lowers the batch size. The Python API's
max_seq_length already prevents the length reduction, but the CLI had no
flag for it, and the checkpoint recorded neither the requested nor the
effective sizing.

- obliterate/abliterate: --max-seq-length (positive int), passed through.
- AbliterationPipeline validates max_seq_length as a positive integer.
- method_config records max_seq_length and activation_collection: the
  batch size and max length actually used, the requested value, and the
  memory-heuristic reduction message when one applied.

Closes #296.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 22:43:48 -06:00
Joseph Magly 7568a71c08 Merge remote-tracking branch 'upstream/main' into integrate/1b-small-picks
# Conflicts:
#	tests/test_loader_boundaries.py
2026-10-05 18:17:01 -04:00
Joseph Magly 79b8ffd46f test: add boundary coverage from the archived 0.2.0 candidate
(cherry picked from commit 261d65333d29e1f78e530e74ac091547832c46d0)

Adapted for upstream: omitted the 0.1.3 -> 0.2.0 version bumps in
obliteratus/__init__.py, pyproject.toml, and the uv.lock version line;
this commit keeps test additions only (subject renamed accordingly). The
test_checkpoint_inspection.py tweak is kept as a test addition: it reads
__version__ dynamically so it passes at 0.1.3. No added test failed on
upstream (474 passed across the ten touched files), so nothing was
dropped.
2026-10-05 18:08:18 -04:00
Joseph Magly a433510a43 fix(loader): honor explicit device maps for quantized loads
(cherry picked from commit 90faf38efb47966bc27f49e8729a15b115d6fd2c)
2026-10-05 17:27:19 -04:00
Joseph Magly bbf06fd6c8 test(cli): verify layer selection reaches local and remote execution 2026-09-07 16:20:38 -04:00
Joseph Magly 985c9e9363 feat: add safe distributed checkpoint intake and preflight 2026-09-04 19:43:53 -04:00
Joseph Magly ccba4f5d85 fix(surgery): guard unvalidated Qwen hybrid layouts 2026-08-24 13:54:31 -04:00
Joseph Magly b25b3f3b66 fix: harden quantized checkpoint integration 2026-08-16 12:57:17 -04:00
Joseph Magly ff0a298c6d Test Windows console and path portability contracts
Cover legacy console fallbacks, platform temp paths, local UI disk probing, and lazy analysis exports. Bind the new local UI test to the executable source-to-test risk map.
2026-08-15 03:13:27 -04:00
Joseph Magly c642cb3297 test: harden GPU memory utilization contract 2026-08-15 02:47:28 -04:00
Joseph Magly 62a480fd6a Harden remote execution contracts and tests 2026-08-15 00:13:26 -04:00
Joseph Magly 18c910b529 test: validate refusal token limits 2026-08-14 20:03:46 -04:00
Joseph Magly 6add02edd0 test: enforce model and CLI boundary contracts 2026-08-14 12:51:09 -04:00