Transformer Bug Hunt

Medium · ML Coding · 60 min

Find and fix 6 planted bugs in a runnable NumPy decoder-only Transformer (LayerNorm, multi-head split/merge, causal mask, scaled attention, sinusoidal positions, and KV-cached incremental decoding) verified via shape, causality, and equivalence tests.

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