Skip to content
Ferdinando Bonsegna

Project · Course

LearnGPT

A hands-on path to understand how a language model is built: from raw text to a trainable GPT in PyTorch.

Each lesson adds a single mechanism and ties it to the maths, the architecture and the code that makes it run. The final project stays in step with the lessons, so you can always compare the explanation with working code. The course is written in Italian.

42 lessons

Each step introduces a concept you can verify.

Real code

Progressive PyTorch snapshots, runnable lesson by lesson.

The full picture

Concept, implementation and architecture are kept separate.