50 ML Projects To Understand LLMs: Investigate transformer mechanisms through data analysis, visualization, and experimentation
$47.49 Original price was: $47.49.$21.19Current price is: $21.19.
🔒 Secure Checkout ⚡ Instant Digital Download
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
1 review for 50 ML Projects To Understand LLMs: Investigate transformer mechanisms through data analysis, visualization, and experimentation
Related products
-

The Self-Taught Programmer: The Definitive Guide to Programming Professionally
0 out of 5$31.87Original price was: $31.87.$10.09Current price is: $10.09. Add to cart -

AI Systems Performance Engineering: Optimizing Model Training and Inference Workloads with GPUs, CUDA, and PyTorch
0 out of 5$99.99Original price was: $99.99.$23.05Current price is: $23.05. Add to cart -

Large Language Models: A Deep Dive: Bridging Theory and Practice
4.80 out of 5$84.99Original price was: $84.99.$16.00Current price is: $16.00. Add to cart -

Linux Basics for Hackers, 2nd Edition: Getting Started with Networking, Scripting, and Security in Kali
0 out of 5$69.99Original price was: $69.99.$21.90Current price is: $21.90. Add to cart

Artgor –
Across 50 hands-on projects, Mike X Cohen teaches you to take apart GPT-2 with code and proper statistics: permutation tests, control baselines, and the manipulation checks that separate a real result from a lucky one. Having spent years on model validation myself, I loved seeing that rigor brought to interpretability; the book is serious and hands-on yet genuinely fun, and you finish it able to run real experiments of your own.