Email the Author

You can use this page to email Hasan Degismez about Build Your First LLM.

Please include an email address so the author can respond to your query

This message will be sent to Hasan Degismez

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

This book shows you how to build your own large language model from scratch. Not just use tools like ChatGPT, but actually understand and create the technology behind them.

It’s written for curious beginners: you don’t need a CS degree, advanced math, or prior programming experience—just a laptop, Google Colab, and the patience to follow along step by step.

The book is organized as one continuous, hands-on project:

  • Foundations – what AI and LLMs really are, why they work, and where their limits are.
  • Python Crash Course – just enough Python and essential libraries to understand and run real models.
  • Build Your First LLM – implement tokenization, embeddings, attention, and the full Transformer architecture.
  • Make It Useful – fine-tuning, prompt design, and building practical applications on top of your model.
  • Ship It – options for deployment and running your model in the real world.

Every concept is explained in plain language, with analogies instead of jargon, and every line of code is walked through in detail. You’ll run existing models in minutes, then gradually replace the black box with pieces you built yourself.

All code is designed to run in Google Colab, with a dedicated notebook for each chapter linked directly inside the book. The notebooks are also available on GitHub at https://github.com/FirstLLM/code. To help you check your understanding, the book includes example answers to the review questions in an appendix.

⚠️ Early access notice: This is an in-progress book. Parts I and II are largely complete, and later chapters are being added and refined over time (including recent updates to Chapters 5–7). Buyers get all future updates for free.


About the Author

Hasan Degismez’s avatar Hasan Degismez

@hasandz

Hasan Degismez is an engineering manager and senior software developer with more than 15 years of experience building backend systems and cloud infrastructure. His work spans high-traffic web applications, distributed services, and data-intensive platforms, with a focus on reliability, performance, and simple, understandable architectures.

He has worked extensively with PHP, Go, Node.js, MySQL, PostgreSQL, DynamoDB, Redis, AWS, Docker, Kubernetes, and Terraform, and has spent much of his career mentoring engineers and shaping engineering teams. Hasan previously published the Turkish edition of PHP Pandas and writes for readers who want clear explanations, practical examples, and code they can reason about.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Firstllm › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • AccessibilityPro (NEW!)
    • Author Quickstart (NEW!)
    • CourseAI
    • TranslateAI
    • GlobalAuthor
    • IndexAI
    • Launch Quickstart (NEW!)
    • Marketing Packages
    • PublishWord
    • Publish on Amazon
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss