---
title: "Discussion on \"Building a Modern LLM from Scratch: RMSNorm, RoPE, GQA and SwiGLU\" | Hashnode"
description: "Discussion on \"Building a Modern LLM from Scratch: RMSNorm, RoPE, GQA and SwiGLU\". What changed inside the transformer since 2017, why every open model made the same four changes, and a 250-line model you can train on Shakespeare tonight."
url: "https://hashnode.com/posts/building-a-modern-llm-from-scratch-rmsnorm-rope-gqa-and-swiglu/6ace38076361ea8b3dee6838"
---

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

Discussion

# [Building a Modern LLM from Scratch: RMSNorm, RoPE, GQA and SwiGLU](https://maheshmoholkar.hashnode.dev/building-a-modern-llm-from-scratch-rmsnorm-rope-gqa-and-swiglu?utm_source=hashnode&utm_medium=feed)

What changed inside the transformer since 2017, why every open model made the same four changes, and a 250-line model you can train on Shakespeare tonight.

Oct 13 · 43 min read · maheshmoholkar.hashnode.dev  
Read the article

-   [#llm](https://hashnode.com/tag/llm)
-   [#deep-learning](https://hashnode.com/tag/deep-learning)
-   [#pytorch](https://hashnode.com/tag/pytorch)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#transformers](https://hashnode.com/tag/transformers)

## Written by

[Mahesh Moholkar](https://hashnode.com/@maheshmoholkar)

@maheshmoholkar · Maharashtra, India

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
