corridorkey-mrp-mlx/tests
cmoyates 57c3aff913
feat(phase6): optimization, benchmarking, and tiled inference
- Cache nn.Upsample instances in DecoderHead/GreenFormer __init__
  (eliminated ~7 allocations per forward pass)
- Add mx.compile() support via load_model(compile=True)
- Benchmark harness: eager vs compiled, multi-resolution, parity checks
- Tiled inference with overlap blending for large images
- Profiling utilities with forced mx.eval for accurate timing
- Reference comparison script (scripts/compare_reference.py)
- 12 new tests (compiled consistency + tiling)
- README performance section with Apple Silicon guidance

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 06:24:10 -03:30
..
__init__.py chore: add remaining test stubs and script placeholders 2026-03-01 04:49:09 -03:30
test_compiled_vs_eager_consistency.py feat(phase6): optimization, benchmarking, and tiled inference 2026-03-01 06:24:10 -03:30
test_conversion.py feat(phase5): full model assembly + e2e parity 2026-03-01 06:07:43 -03:30
test_decoder_parity.py feat(phase2): MLX decoder + refiner with parity tests 2026-03-01 05:00:00 -03:30
test_end_to_end_parity.py feat(phase5): full model assembly + e2e parity 2026-03-01 06:07:43 -03:30
test_end_to_end_smoke.py feat(phase5): full model assembly + e2e parity 2026-03-01 06:07:43 -03:30
test_greenformer_forward.py feat(phase5): full model assembly + e2e parity 2026-03-01 06:07:43 -03:30
test_hiera_stage_parity.py feat(phase5): full model assembly + e2e parity 2026-03-01 06:07:43 -03:30
test_hiera_stage_shapes.py feat(phase4): MLX Hiera backbone port (#2) 2026-03-01 05:55:24 -03:30
test_import.py chore: add remaining test stubs and script placeholders 2026-03-01 04:49:09 -03:30
test_reference_fixtures.py feat(phase1): PyTorch reference harness + fixture tests 2026-03-01 04:49:01 -03:30
test_refiner_parity.py feat(phase2): MLX decoder + refiner with parity tests 2026-03-01 05:00:00 -03:30
test_tiling_consistency.py feat(phase6): optimization, benchmarking, and tiled inference 2026-03-01 06:24:10 -03:30