nano-BERT

Project

Description:

nano-BERT is a simplified, from-scratch, comprehensible implementation of BERT, inspired by the "Attention Is All You Need" paper. It strips the architecture down to its essential components so the mechanics of transformer encoders — embeddings, multi-head self-attention, and feed-forward blocks — are easy to read and reason about, making it a teaching tool for understanding how BERT actually works under the hood.

Repository:

github.com/StepanTita/nano-BERT