50 ML Projects to Understand LLMs: Investigate Transformer Mechanisms through Data Analysis, Visualization, and Experimentation

1st Edition
id: 1256824 VIP Open in MaM

By Mike X Cohen

Language: English

Category: Ebook - Computer/Internet

Categories: Computer/Internet

Size: 128.3 MiB pdf Files: 1

Uploader:

Uploaded At: 2026-07-17 19:27:47

520 pages | 1st edition | Published 2026 by Packt Publishing | ISBN-13: 9798248428694 | Data Analysis, Data Visualization, Large Language Models

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

 

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

  1. Introductions
  2. Tokenization
  3. Embeddings
  4. Output logits
  5. Transformer outputs
  6. Attention
  7. MLP

Uploader Notes:

Other Torrents