menu
{ "item_title" : "50 ML Projects To Understand LLMs", "item_author" : [" Mike X. Cohen "], "item_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 tracingWho 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", "item_img_path" : "https://covers4.booksamillion.com/covers/bam/1/80/808/255/1808082559_b.jpg", "price_data" : { "retail_price" : "49.99", "online_price" : "49.99", "our_price" : "49.99", "club_price" : "49.99", "savings_pct" : "0", "savings_amt" : "0.00", "club_savings_pct" : "0", "club_savings_amt" : "0.00", "discount_pct" : "10", "store_price" : "" } }
50 ML Projects To Understand LLMs|Mike X. Cohen

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

local_shippingShip to Me
In Stock.
FREE Shipping for Club Members help

Overview

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

This item is Non-Returnable

Details

  • ISBN-13: 9781808082559
  • ISBN-10: 1808082559
  • Publisher: Packt Publishing
  • Publish Date: May 2026
  • Dimensions: 9.25 x 7.5 x 1.15 inches
  • Shipping Weight: 2.12 pounds
  • Page Count: 566

Related Categories

You May Also Like...

    1

BAM Customer Reviews