Email the Author

You can use this page to email Roger Gullhaug about The inner workings of Large Language Models.

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

This message will be sent to Roger Gullhaug

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

About the Book

Large language models like ChatGPT, Claude, and Copilot are changing the way we work, learn, and build software — but how do they actually work?

If you've ever wondered what goes on under the hood of an LLM, this book is for you. It's written by a developer who decided to go deep — and take careful notes along the way.

This book explains how large language models operate, step by step, using clear language and practical illustrations. Whether you're a software developer, tech enthusiast, or simply curious, you'll come away with a strong intuitive understanding of how these models generate text, learn from data, and represent meaning using mathematics.

You'll learn about:

  • Tokenization, embeddings, and vector representations
  • The inner workings of self-attention and transformer layers
  • How models are trained, fine-tuned, and optimized
  • Common myths and misconceptions
  • And much more — including how I used LLMs during my research for the book

This isn't an academic text or a deep dive into every research paper — it's a practical, visual, and approachable explanation for people who want to understand LLMs without getting lost in jargon.

If you're ready to move beyond just using AI and start understanding it, this book will give you a solid foundation


About the Author

Roger Gullhaug’s avatar Roger Gullhaug

@rgullhaug

Roger Gullhaug is Director of Development and Operations at RamBase (Jakob Hatteland Computer AS). He is responsible for a team of 60 developers, architects, testers and devops engineers.

A technologist at heart, he combines two decades of software-development experience with a passion for nurturing people and building high-performing teams.

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:
  • Theinnerworkingsoflargelanguagemodels-howneuralnetworkslearnlanguage › 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
    • TranslateAI
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • 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