Commit Graph
81 Commits
Author SHA1 Message Date
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
Joseph Magly 8bbb5f2926 test: add offline integration baseline 2026-08-14 13:15:32 -04:00
Joseph Magly 6add02edd0 test: enforce model and CLI boundary contracts 2026-08-14 12:51:09 -04:00
Joseph Magly 761ee6127c ci: upload supply-chain evidence from job path 2026-08-14 12:27:15 -04:00
Joseph Magly e7b658c0c8 ci: add reproducible supply-chain gates 2026-08-14 12:27:15 -04:00
Joseph Magly eec8a615f7 ci: verify installed distributions 2026-08-14 11:57:33 -04:00
Joseph Magly d5a02bd748 test: reject malformed coverage metrics 2026-08-14 11:44:12 -04:00
Joseph Magly f17fd68f77 chore: align maintainer validation profile 2026-08-14 11:44:12 -04:00
Joseph Magly 66c47249df ci: add strict test evidence gates 2026-08-14 11:44:12 -04:00
Joseph Magly 2e703e19e2 docs: separate Hugging Face Space metadata 2026-08-14 10:37:08 -04:00
Joseph Magly 9e546f7bc2 test: cover notebook stage callback contract (#30) 2026-08-14 10:33:16 -04:00
larper02 784b17a97d Fix stage key reference and update output print 2026-08-14 10:33:16 -04:00
Joseph Magly bc891794db test: cover offloaded state materialization (#27) 2026-08-14 10:26:56 -04:00
Aaron Meese e1a0fe59f0 fix: REBIRTH save crash for CPU-offloaded models
Replace the manual safetensors/dat file materialization in
_gather_state_dict with accelerate's get_state_dict_offloaded_model().
The old code only handled disk-offloaded weights but failed for the 398
CPU-offloaded meta tensors managed by accelerate's AlignDevicesHook.

Pre-move all GPU tensors to CPU before materialization to prevent CUDA
OOM when align_module_device restores non-hooked params to CUDA during
its __exit__ cleanup.

Update test to verify the safety net catches unmaterialized meta tensors
after the accelerate path (the old test checked for a missing offload
directory, which this codepath no longer uses).
2026-08-14 10:22:48 -04:00
Joseph Magly 13b13ef973 Make spectral certification sample-aware 2026-08-14 10:17:48 -04:00
Joseph Magly 67e2b7d95a Preserve assistant phrasing in refusal metrics 2026-08-14 10:11:56 -04:00
Joseph Magly dd75d5939f test: verify wheel distribution contents (#57) 2026-08-14 10:05:43 -04:00
Joseph Magly 5071172daa Package the local UI app module 2026-08-14 10:05:43 -04:00
Joseph Magly 548092d5ca ci: establish green validation baseline (#59) 2026-08-14 09:55:49 -04:00