Research implementation of predictive coding with wake/sleep cycles, structural adaptation, and reproducible NumPy/PyTorch benchmarks.