Sharded Matmul and Backprop Debugging

Hard · ML Coding

Debug a simulated multi-device tensor-parallel matrix multiplication implementation covering unequal k-axis sharding with SUM all-reduce, column-sharded B with summed dA gradients, and forward/backward passes of a Megatron-style two-layer MLP.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems