---
title: "Discussion on \"Towards the Modern Transformer Architecture\" | Hashnode"
description: "Discussion on \"Towards the Modern Transformer Architecture\". A deep dive into how GPT-1's architecture evolved: pre-norm, RMSNorm, SwiGLU, RoPE, and GQA — with the math behind every change."
url: "https://hashnode.com/posts/towards-the-modern-transformer-architecture/6a6090024093ae09cf4fb380"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Towards the Modern Transformer Architecture](https://rishi2220.hashnode.dev/towards-the-modern-transformer-architecture?utm_source=hashnode&utm_medium=feed)

A deep dive into how GPT-1's architecture evolved: pre-norm, RMSNorm, SwiGLU, RoPE, and GQA — with the math behind every change.

Jul 22 · 36 min read · rishi2220.hashnode.dev  
Read the article

-   [#transformers](https://hashnode.com/tag/transformers)
-   [#rope](https://hashnode.com/tag/rope)
-   [#gqa](https://hashnode.com/tag/gqa)
-   [#mqa](https://hashnode.com/tag/mqa)
-   [#activation](https://hashnode.com/tag/activation)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#deep-learning](https://hashnode.com/tag/deep-learning)
-   [#artificial-intelligence](https://hashnode.com/tag/artificial-intelligence)
-   [#llm](https://hashnode.com/tag/llm)

## Written by

[Rishi](https://hashnode.com/@rishi2220)

@rishi2220 · Jalandhar, Punjab, India

  
[View profile](https://hashnode.com/@rishi2220)

## Responses 1

Markdown supported · ⌘↵ to post

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Jul 24](https://hashnode.com/posts/towards-the-modern-transformer-architecture/6a6090024093ae09cf4fb380/comment/6a63815353e3cc01bec1e4b8)

Walking the GPT-1 forward pass in full to pinpoint which pieces got re-engineered later is a great way to teach this, and the pre-norm over post-norm convergence is the cleanest example. Pre-norm won mostly because it keeps gradients stable enough to train deep stacks without the warmup gymnastics post-norm needed. Are you planning to cover why RMSNorm then displaced LayerNorm in most recent models, since that's the next step in the same story?
