Quiz: how many trainable params does GPT-2 use just for embed and unembed?

Sauers_ · x · 2026-10-17

A short technical quiz from Sauers: GPT-2 embeds all V possible tokens into vectors of length E at the start of its network and unembeds the final hidden state into token logits at the end. Counting only these two steps, the trainable parameters total 2×V×E (e.g. 77M for V=50257, E=768), noting that with weight tying the embedding matrix is typically shared between the two steps.

Original post →

More from Research

Research channel →