Skip to content
#

layernorm

Here are 23 public repositories matching this topic...

A complete, operational Transformer Decoder Layer built from scratch — combining self-attention, Pre-LN normalization, residual connections, and a SwiGLU feed-forward network, with an empirical demonstration of why residual connections prevent signal collapse in deep stacks.

  • Updated Aug 29, 2026
  • Python

Principal component geometry and feature readout in Transformer hidden states (GPT-2, OPT, Qwen2.5). Shows 96–98% PC1 variance concentration is driven by the first token, while PC2–PC8 preserve transferable token-level surprisal across articles.

  • Updated Nov 5, 2026
  • Python

Add this topic to your repo

To associate your repository with the layernorm topic, visit your repo's landing page and select "manage topics."

Learn more