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.
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.
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#608Fixes#610Fixes#609Fixes#614
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>
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>
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>
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>
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>
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>
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>
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>
(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.
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.