Commit Graph
99 Commits
Author SHA1 Message Date
Joseph Magly c1b34503dd docs: record Gate 3 loader decision evidence 2026-08-15 22:03:22 -04:00
Joseph Magly 41cb341405 test: close runtime decision mutation gaps 2026-08-15 22:03:22 -04:00
Joseph Magly 10685a53c2 test: enforce loader and weight decision contracts 2026-08-15 22:03:22 -04:00
Joseph Magly 2c2b38b501 docs: refresh Gate 3 repair evidence 2026-08-15 20:09:21 -04:00
Joseph Magly fbdc77172b test: stabilize coordinate permutation oracle 2026-08-15 20:09:21 -04:00
Joseph Magly 51529ad1d7 test: add Gate 3 numerical oracle contracts 2026-08-15 20:09:21 -04:00
Joseph Magly 369417fbb4 Record Gate 3 canonical evidence 2026-08-15 04:48:59 -04:00
Joseph Magly 256c39ea6a Own installed integration duration 2026-08-15 04:33:15 -04:00
Joseph Magly 753c53d07f Enforce Gate 3 test quality budgets 2026-08-15 04:33:15 -04:00
Joseph Magly 8456e52bf8 docs: define Gate 3 testing depth plan 2026-08-15 03:49:24 -04:00
Joseph Magly eab67c993d Test local RAM probe fallbacks
Cover broken psutil, Linux procfs fallback, macOS/POSIX sysconf fallback, and fail-closed behavior when every probe is unavailable.
2026-08-15 03:31:17 -04:00
Rachitt Shah 6c21ee243d Add a POSIX sysconf fallback for local RAM detection
Retain the unsuperseded macOS RAM-detection contribution from PR #13 while making every optional probe fail closed. The shared MPS device, loader, cache, and dtype work is already present on current main and is intentionally not duplicated.
2026-08-15 03:31: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
Roxue88 f82518ea13 Make local console and runtime paths portable
Salvage the still-relevant functional work from PR #48: add non-UTF-8 console fallbacks, use platform temporary directories, make pipeline log output encoding-safe, and defer heavyweight analysis imports. The obsolete contributed CI workflow and already-corrected remote URL are intentionally excluded.
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
Aaron Meese 67d9ef79d9 feat: add --gpu-memory-utilization CLI flag
Add a --gpu-memory-utilization flag (0.0-1.0, default 0.85) that controls
the fraction of GPU VRAM available for model loading. Plumbed from CLI
through AbliterationPipeline to load_model's max_memory calculation.

Useful on dedicated GPU setups where the default 15% reserve is wasteful
and causes unnecessary CPU offloading on models that would otherwise fit.
2026-08-15 02:47:28 -04:00
Joseph Magly e2da92af52 ci: enforce documented Gate 2 coverage floors 2026-08-15 02:31:55 -04:00
Joseph Magly 885390a0e2 docs: finalize Gate 2 evidence 2026-08-15 02:12:59 -04:00
Joseph Magly fa99d5a424 fix: bound conditional evidence waivers 2026-08-15 02:00:50 -04:00
Joseph Magly ba749c68b9 test: enforce gate 2 coverage and vertical contracts 2026-08-15 02:00:50 -04:00
Joseph Magly dadd42648a docs: finalize Gate 1 evidence (#91)
Records the observed post-merge CI result and final Gate 1 PASS decision.
2026-08-15 01:16:22 -04:00
Joseph Magly 37d008d462 test: establish Gate 1 quality baseline (#90)
Establishes the mandatory testing, coverage, repeatability, mutation, packaging, supply-chain, and AIWG workspace baseline before feature integration.
2026-08-15 01:07:47 -04:00
Joseph Magly 62a480fd6a Harden remote execution contracts and tests 2026-08-15 00:13:26 -04:00
Joseph Magly 1240bf2adb test: enforce transactional persistence contracts 2026-08-14 23:32:30 -04:00
Joseph Magly 2c5dc5442c test: enforce runtime boundary contracts 2026-08-14 22:50:37 -04:00
Joseph Magly 15aa3dc163 test: cover whitened layer and subspace branches 2026-08-14 22:09:25 -04:00
Joseph Magly 2969e5e8da ci: preload native modules for mutmut 2026-08-14 22:09:25 -04:00
Joseph Magly ee1f6d3105 test: keep mutation guard Python 3.10 compatible 2026-08-14 22:09:25 -04:00
Joseph Magly 723fae30d3 ci: avoid mutmut native reload crash 2026-08-14 22:09:25 -04:00
Joseph Magly 7d0c02cd34 ci: expand and raise mutation gate 2026-08-14 22:09:25 -04:00
Joseph Magly c14efe8aca test: enforce whitened direction contracts 2026-08-14 22:09:25 -04:00
Joseph Magly 7a2a49b435 test: constrain risk overlays to measured coverage 2026-08-14 21:19:38 -04:00
Joseph Magly b4c69a468b test: harden traceability policy validation 2026-08-14 21:19:38 -04:00
Joseph Magly 53b37108af test: require exhaustive contract ownership 2026-08-14 21:19:38 -04:00
Joseph Magly 60185a27db test: plan significant pre-feature quality program 2026-08-14 20:54:09 -04:00
Joseph Magly 340173e203 test: harden quantized model loading 2026-08-14 20:31:50 -04:00
Jpatching e922126405 fix: enable 4-bit quantized models on single 16GB GPUs
Four bugs prevented bitsandbytes 4-bit quantized models from completing
ablation studies on GPUs with 16GB VRAM:

1. runner.py: quantization parameter was never passed from StudyConfig
   to load_model(), so the loader had no idea quantization was enabled.

2. loader.py (max_memory): GPU memory budget was calculated against the
   unquantized model size, causing accelerate to offload layers to meta
   device even though the quantized model fits comfortably.
   Now divides estimate by 4 (4-bit) or 2 (8-bit) before deciding.

3. evaluator.py: empty strings in wikitext dataset caused zero-length
   tensors that crashed the forward pass with a reshape error.
   Now filters empty/whitespace-only texts and skips empty batches.

4. loader.py (snapshot/restore): snapshot skip decision used unquantized
   size estimate, and restore used strict=True which rejects bitsandbytes
   metadata keys (.absmax, .quant_map, .quant_state). Now uses quantized
   estimate and strict=False.

Tested on RTX 5060 Ti (16GB) with Qwen2.5-Coder-7B-Instruct in 4-bit.
Quick Scan (layer_removal + ffn_ablation) completes all 56 specs.
2026-08-14 20:31:50 -04:00
Joseph Magly 18c910b529 test: validate refusal token limits 2026-08-14 20:03:46 -04:00
Tokard 44473e5919 add configured max tokens for refusal test generation. Exposes --refusal-max-tokens via CLI and the abliterator constructor (default to 128, not changed). Better for resoning models like qwen3. :> 2026-08-14 20:03:46 -04:00
Joseph Magly 9746c21b63 test: enforce Wave A quality lock 2026-08-14 19:47:46 -04:00
Joseph Magly 57523ab483 test: plan second-generation quality program 2026-08-14 19:18:03 -04:00
Joseph Magly 9b93e20276 test: cover evaluator skip branches 2026-08-14 19:03:36 -04:00
Joseph Magly 78caa5eab2 test: cover causal evaluation edge cases 2026-08-14 19:03:36 -04:00
Agentirish bf8688e13e Fix causal LM evaluation and report output creation 2026-08-14 19:03:36 -04:00
Joseph Magly 9cf69d20d8 test: cover Qwen3.5 MoE architecture paths 2026-08-14 18:47:25 -04:00
Aaron Meese 48a3000471 feat: support for Qwen3.5-35B-A3B 2026-08-14 18:47:25 -04:00
Joseph Magly c1a1275291 ci: add conditional environment test gates 2026-08-14 14:29:14 -04:00
Joseph Magly d54d2dbc90 ci: support quality dependencies across Python matrix 2026-08-14 14:08:23 -04:00
Joseph Magly 951700a285 test: add quality-depth gates and mature CPU coverage 2026-08-14 14:08:23 -04:00
Joseph Magly b80c1a1694 test: enforce research integrity contracts 2026-08-14 13:38:14 -04:00