corridorkey-mrp-mlx/tests
cmoyates b3b7df271d
feat: MLX memory optimizations — bf16, fused decode, deterministic GC
Phase 1: selective bf16 mixed precision (backbone fp32, decoders bf16,
sigmoid always fp32). dtype param on GreenFormer, all outputs guaranteed
fp32.

Phase 2: FusedDecoderPair batches 3 upsample ops by concatenating
alpha+fg projections along channel axis. Bit-exact parity with unfused
path.

Phase 3: deterministic GC pipeline in tile loop (del + gc.collect +
mx.clear_cache) and engine.py intermediate tensor cleanup.

7 new tests: bf16 dtype/range/nan, fused-vs-unfused parity, fp32
default unchanged. 80 passed, 0 failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 21:21:01 -02:30
..
__init__.py chore: add remaining test stubs and script placeholders 2026-03-01 04:49:09 -03:30
conftest.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30
test_compilation.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30
test_conversion.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30
test_engine.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30
test_model_contract.py feat: MLX memory optimizations — bf16, fused decode, deterministic GC 2026-03-08 21:21:01 -02:30
test_parity.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30
test_tiling.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30
test_weights.py refactor(tests): restructure suite — 15 files to 8, consolidate parity 2026-03-03 09:58:53 -03:30