Tiny Next-Token Prediction Model (PyTorch Fill-In)

Asked at Microsoft · Deep Learning & Architectures · Difficulty: Easy · Last asked Apr 25, 2026

Fill in the TODOs of a tiny PyTorch skeleton so a feed-forward (no recurrence, no attention) model trains for next-token prediction conditioned only on the current token.

Loading the problem…