Microgpt 4000‑Parameter Network Visualized in Browser

The 30-Second Skim
- What happened: Microgpt’s 4,000‑parameter language model is visualized in a browser, showing token embedding, RMSnorm, transformer block, two attention heads, feed‑forward MLP, residual connections, and softmax sampling, while the demo displays each head’s query, key, and value matrices and logits before sampling.
- Key facts & numbers: Microgpt builds its input representation by adding token embeddings (Wtok) to positional embeddings (Wpos) for each token i. Microgpt applies RMSnorm to the input vector before feeding it into the first transformer block. Microgpt uses a transformer block with two attention heads; each head computes queries (WQ), keys (WK), and values (WV) and applies softmax to obtain attention weights.
- What happens next: New web demo walks you through Microgpt’s 4k‑parameter net step‑by‑step, finally exposing the attention heads in action.
- Microgpt builds its input representation by adding token embeddings (Wtok) to positional embeddings (Wpos) for each token i.
- Microgpt applies RMSnorm to the input vector before feeding it into the first transformer block.
- Microgpt uses a transformer block with two attention heads; each head computes queries (WQ), keys (WK), and values (WV) and applies softmax to obtain attention weights.
- Microgpt adds a residual connection (R1) after the attention heads and passes the result through a second RMSnorm.
Why It Matters
The browser‑based demo lets developers and educators explore Microgpt’s full inference pipeline—including embeddings, RMSnorm, attention, and MLP layers—without installing external software, lowering the barrier to studying small language models and facilitating rapid prototyping. It also reveals the exact query, key, and value matrices for each head, giving transparent insight into attention weight computation and enabling debugging of token‑level behavior.
Sources Cited
Related Coverage
Ask SkimNews