Skip to product information
Transformers and Large Language Models

Transformers and Large Language Models: A Hands-On Guide to RAG and Agentic AI

Sale price  $53.99 Regular price  $59.99

Reliable shipping

Flexible returns

Transformers and Large Language Models: A Hands-On Guide to RAG and Agentic AI

Gad, Ahmed Fawzy

This book is a hands-on guide to understanding the foundations, architectures, and real-world applications of transformers and large language models in modern AI.

The book begins by laying the foundations of generative AI architectures,  tokenization, encoding, and classical modeling techniques. Initial chapters address the evolution from feed-forward networks and recurrent neural networks to long short-term memory (LSTM), setting the stage for the revolutionary transformer architecture. The core of the book focuses on transformers, introducing the encoder-decoder framework, attention mechanisms, positional encodings, and the internal workings of multi-head attention, normalization, and multi-layer perceptrons. Readers gain insight into advanced techniques such as rotary positional embeddings (RoPE), mixture of experts (MoE), and knowledge distillation, alongside practical training strategies like self-supervised learning, fine-tuning, and reinforcement learning with human feedback. Popular models from OpenAI, DeepSeek, and other vendors are examined to highlight the evolution of the LLM landscape. Building on these foundations, the text explores methods for model customization, including parameter-efficient fine-tuning (LoRA, adapters), text generation strategies, prompt engineering, and quantization. Retrieval-Augmented Generation (RAG) is introduced as a critical innovation for grounding LLMs in external knowledge, with detailed evaluation techniques for retrieval and generation. Finally, the book ventures into Agentic AI, demonstrating protocols like Model Context Protocol (MCP) and Agent-to-Agent (A2A) interactions with practical coding examples.

In conclusion, this book serves as both a practical guide, equipping readers with the technical depth and applied strategies needed to design, fine-tune, and deploy cutting-edge transformers and large language models for real-world applications.

What we will learn:

Ø  Understand the foundations of AI, ML pipelines, tokenization, encoding, and early neural architectures.

Ø  Explore transformers in depth—encoder-decoder design, attention mechanisms, and advanced embedding methods.

Ø  Learn modern LLM advancements like RoPE, MoE, SLMs, fine-tuning strategies, and evaluation techniques.

Ø  Master practical customization through prompt engineering, PEFT methods, quantization, and text generation.

nWho this book is for:

Data scientists, ML engineers, AI researchers, and developers exploring Transformers and large language models.

 

 

 

 

Details

Published by: Apress

Publication Date: 2026-07-30

Format: Paperback

ISBN-13: 9798868827846

DOI:

Dimensions: 254cm x178cm

Pages: 181

You may also like