50 ML Projects To Understand LLMs: Investigate transformer mechanisms through data analysis, visualization, and experimentation

ANT

4.2 19
$18.71 $31.19You save $12.48
Format
Digital edition
PDFEPUB
Works on phone, tablet and computer Instant access after checkout Personal-use digital license
About this edition

• Instant access to your digital edition.
• Read anytime, anywhere, on your favorite device.
• No shipping — your book is delivered digitally.
• Simple, secure access after purchase.

Published date May 29, 2026
Author Mike X Cohen

Instant digital delivery after purchase.

Download link available immediately after checkout.
In stock
Quantity
Secure checkout — encrypted end to end Free exchange or return within 30 days if the product is defective. Digital formats available instantly
Readers also enjoyed

Discover another great read to add to your digital library.

$18.71 $31.19

Description

Most books teach you how to build LLMs from scratch or deploy them via APIs. This book uses guided machine learning projects to teach you how to understand, visualize, and investigate LLMs including GPT and BERT.

Key Features Each project is built around three learning goals: machine learning techniques, LLM mechanisms, and Python coding with data visualization. This is not a dense theoretical textbook; it's hands-on, practical, and project-oriented. You will learn how to measure, visualize, and manipulate the internal components of LLMs directly. Book Description Through 50 hands-on, guided projects solved in Python, you will investigate the internal mechanisms of large language models by treating their hidden states, attention patterns, and embeddings as data to analyze. Rather than accepting LLMs as black boxes, you will open them up, examine what's inside, and run experiments to understand why they behave the way they do. All projects are based on Python (using libraries such as NumPy, PyTorch, statsmodels, scikit-learn, Matplotlib, Pandas, and Seaborn) and come with full solutions and partial solution notebook files, so you can practice and improve your skills in data science, deep learning, data visualization, and scientific and statistical coding.

What you will learn Tokenization schemes and their statistical properties Embedding spaces: cosine similarity, semantic axes, and analogy vectors Output logits, softmax distributions, perplexity, and language biases Layer-by-layer transformer dynamics and dimensionality Attention mechanisms: QKV weights, attention scores, head ablation, and activation patching MLP subblocks: neuron tuning, mutual information, subspace analysis, and statistics-based causal manipulations Logit lens, indirect object identification, and causal tracing Who this book is for This book is for data scientists, ML engineers, and researchers who want to go beyond surface-level understanding of LLMs. Prior Python experience is required. Familiarity with machine learning or deep learning is helpful but not required — techniques are introduced as they arise throughout the projects.

Table of Contents Introductions Tokenization Embeddings Output logits Transformer outputs Attention MLP

Specifications

FormatEPUB, PDF
Pages520
LanguageEnglish
ISBN-13978-1808082559

Frequently asked

Do I need an account to download?

No. After purchase, you can access your ebook directly from the order confirmation or download page.

What if a copy arrives damaged?

Contact us and we’ll help you access the file or provide a replacement download if needed.

Reviews

4.2
5★84%4★11%3★3%2★1%1★1%
A Antonio Hensley Verified
★★★★★The diagrams do the teachingSeeing the concept drawn before the notation appears changed everything for me.
P Philip Parker Verified
★★★★★A set text for my classThe problem sets are graded properly and the solutions are complete.
T Tiffany Kennedy Verified
★★★★★
See all reviews

Customers also downloaded