corridorkey-mrp-mlx/prompts/phase2-mlx-blocks.md
cmoyates 897242d200
init: repo scaffolding, deps, prompts, plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 04:48:51 -03:30

757 B

Work only on the MLX implementations of the custom non-backbone blocks.

Goal: Implement MLX versions of:

  • MLP
  • DecoderHead
  • RefinerBlock
  • CNNRefinerModule

Requirements:

  • Use MLX idioms and explicit NHWC handling.
  • Centralize tensor layout transforms in one utility module.
  • Use pytorch-compatible GroupNorm behavior where needed for parity.
  • Write parity tests that use saved PyTorch backbone features and saved coarse predictions.
  • Report max abs error and mean abs error in test output or helper scripts.

Do not:

  • port Hiera yet
  • optimize prematurely
  • spread layout conversions across many files

Definition of done:

  • decoder parity test exists
  • refiner parity test exists
  • modules are wired into a partial model path for test usage