Skip to content
Coding FodingcodingFoding(you: Human)
  • Careers
  • Pricing

Theme

Heading font

  1. Home
  2. AI & LLM Engineering
  3. LLM Internals
  4. Project: Tiny GPT from Scratch

Part 04 · LLM Internals

Project: Tiny GPT from Scratch

PyTorchSelf-attentionTraining loopSampling

A small decoder-only transformer in PyTorch, trained on a book on your own machine, that writes new text in its style. Every block from the last chapters, running together.

⏱ 6-8 hours · Station 32 of 92

313233
← Previous stopProject: BPE Tokenizer from ScratchNext stop →Model Selection: Quality, Speed and Cost
Coding FodingcodingFoding(you: Human)

Everything you need, in one path.

Start free

Learn

  • Backend First Principles
  • DevOps & Cloud
  • System Design
  • AI & LLM Engineering
  • Database Internals
  • Frontend System DesignSoon

Practice

  • DSA problems
  • AI / ML problemsSoon
  • System Design Problems
  • Build to Hire

Interview

  • Interview PrepSoon
  • Most Common QuestionsSoon
  • Interview ExperiencesSoon
  • Success StoriesSoon

Community

  • Leaderboard
  • Blogs
  • Roadmap

More

  • Careers
  • Pricing

//codingFoding()

© 2026 Coding Foding · Made with ❤️ in Bangladesh