(cherry picked from commit 2e8c362430830f1b4ce23757b9a364596bcee6ac)
Adapted for upstream: _admit_phase does not exist upstream (grep finds no
definition in obliteratus/), so dropped the internal mock and rewrote the
main test to group model forwards per cache policy instead of assuming a
single two-prompt batch (upstream batches by available memory; on CPU-only
hosts each prompt runs its own forward). Kept docs/attention-cache-
qualification.md verbatim (no hostnames, receipts, or private refs; the
#95/#96/#97 refs are public issue numbers) and the
ci/test-risk-map.json registration, which matches the final test file name.
analysis/leace.py documents that it returns the Fisher LDA direction
S_w^{-1} delta and is not a faithful LEACE (Belrose et al.,
arXiv:2306.03819), but the pipeline logged "closed-form optimal concept
erasure", and the informed preset, CLI help, UI and docs advertised
optimal LEACE erasure.
Reword the logs, preset description, CLI help, UI hint, docstrings and docs
to "Fisher LDA direction (LEACE-inspired)", and label the per-layer loss as
an LDA quantity in log text only. The leace option name, numerics,
signatures and persisted keys are unchanged; a test pins the direction to
an independently computed S_w^{-1} delta.
Fixes#221
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exact setuptools/wheel pins block platform-specific backend patches and
make isolated pip installs fail on Android/Termux Python. Keep a setuptools
lower bound only, drop the unused wheel backend pin, keep requirements.txt
aligned with core package deps, and install the Spaces extra in Docker
instead of pulling bitsandbytes by default.
Android/Termux is still not a supported runtime; the new platform note
documents host wheels, ANDROID_API_LEVEL, and --no-build-isolation so
pip does not isolate a second setuptools or compile manylinux-only
extensions.
Carry the coherent blending contribution and research summary from PR #127 while splitting the capacity and recovery proposals into issues #132 and #133.
33 CPU-only tests: FP8 block-wise/per-channel round-trips, NVFP4
round-trips (direct + reciprocal scales, native vs manual unpack
agreement), scheme detection incl. ModelOpt MIXED_PRECISION, surgery
guard raises, and tiny synthetic FP8/NVFP4 GPT-2 checkpoints through
load_model end-to-end. Full suite: 870 passed (8 failures pre-exist on
main, verified against pristine checkout).
docs/theory_journal.md Appendices E-E2: engineering log of the 12
findings from implementation and real-checkpoint validation (nibble
order conventions, mixed-precision layouts, the 96GB OOM and the
chunked-unpack fix, transformers 5.x drift shims, Omni wrapper unwrap).