Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon Sold by: TEXbooks Plus
Used - Very Good
-
To see product details, add this item to your cart.
Ships from: World of Books (previously glenthebookseller) Sold by: World of Books (previously glenthebookseller)
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Transformers for Natural Language Processing and Computer Vision: Explore Generative AI and Large Language Models with Hugging Face, ChatGPT, GPT-4V, and DALL-E 3
Purchase options and add-ons
The definitive guide to LLMs, from architectures, pretraining, and fine-tuning to Retrieval Augmented Generation (RAG), multimodal AI, risk mitigation, and practical implementations with ChatGPT, Hugging Face, and Vertex AI
Get With Your Book: PDF Copy, AI Assistant, and Next-Gen Reader Free
Key Features
- Compare and contrast 20+ models (including GPT, BERT, and Llama) and multiple platforms and libraries to find the right solution for your project
- Apply RAG with LLMs using customized texts and embeddings
- Mitigate LLM risks, such as hallucinations, using moderation models and knowledge bases
Book Description
Transformers for Natural Language Processing and Computer Vision, Third Edition, explores Large Language Model (LLM) architectures, practical applications, and popular platforms (Hugging Face, OpenAI, and Google Vertex AI) used for Natural Language Processing (NLP) and Computer Vision (CV).
The book guides you through a range of transformer architectures from foundation models and generative AI. You’ll pretrain and fine-tune LLMs and work through different use cases, from summarization to question-answering systems leveraging embedding-based search. You'll also implement Retrieval Augmented Generation (RAG) to enhance accuracy and gain greater control over your LLM outputs. Additionally, you’ll understand common LLM risks, such as hallucinations, memorization, and privacy issues, and implement mitigation strategies using moderation models alongside rule-based systems and knowledge integration.
Dive into generative vision transformers and multimodal architectures, and build practical applications, such as image and video classification. Go further and combine different models and platforms to build AI solutions and explore AI agent capabilities.
This book provides you with an understanding of transformer architectures, including strategies for pretraining, fine-tuning, and LLM best practices.
What you will learn
- Breakdown and understand the architectures of the Transformer, BERT, GPT, T5, PaLM, ViT, CLIP, and DALL-E
- Fine-tune BERT, GPT, and PaLM models
- Learn about different tokenizers and the best practices for preprocessing language data
- Pretrain a RoBERTa model from scratch
- Implement retrieval augmented generation and rules bases to mitigate hallucinations
- Visualize transformer model activity for deeper insights using BertViz, LIME, and SHAP
- Go in-depth into vision transformers with CLIP, DALL-E, and GPT
Who this book is for
This book is ideal for NLP and CV engineers, data scientists, machine learning practitioners, software developers, and technical leaders looking to advance their expertise in LLMs and generative AI or explore latest industry trends.
Familiarity with Python and basic machine learning concepts will help you fully understand the use cases and code examples. However, hands-on examples involving LLM user interfaces, prompt engineering, and no-code model building ensure this book remains accessible to anyone curious about the AI revolution.
Table of Contents
- What are Transformers?
- Getting Started with the Architecture of the Transformer Model
- Emergent vs Downstream Tasks: The Unseen Depths of Transformers
- Advancements in Translations with Google Trax, Google Translate, and Gemini
- Diving into Fine-Tuning through BERT
- Pretraining a Transformer from Scratch through RoBERTa
- The Generative AI Revolution with ChatGPT
- Fine-Tuning OpenAI GPT Models
- Shattering the Black Box with Interpretable Tools
(N.B. Please use the Read Sample option to see further chapters)
- ISBN-101805128728
- ISBN-13978-1805128724
- Edition3rd
- PublisherPackt Publishing
- Publication dateFebruary 29, 2024
- LanguageEnglish
- Dimensions7.5 x 1.65 x 9.25 inches
- Print length728 pages
Frequently bought together

Customers who viewed this item also viewed
- Natural Language Processing with Transformers, Revised EditionPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Build a Large Language Model (From Scratch)PaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Deep Reinforcement Learning Hands-On: A practical and easy-to-follow guide to RL from Q-learning and DQNs to PPO and RLHFPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- LLM Engineer's Handbook: Master the art of engineering large language models from concept to productionPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Agentic Architectural Patterns for Building Multi-Agent Systems: Proven design patterns and practices for GenAI, agents, RAG, LLMOps, and enterprise-scale AI systemsPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- 30 Agents Every AI Engineer Must Build: Build production-ready agent systems using proven architectures and patternsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
Customers also bought or read
- Natural Language Processing with Transformers, Revised Edition
Paperback$41.60$41.60FREE delivery Sun, Sep 20 - Modern Computer Vision with PyTorch: A practical roadmap from deep learning fundamentals to advanced applications and Generative AI
Paperback$48.79$48.79FREE delivery Mon, Sep 21 - Build a Large Language Model (From Scratch)#1 Best SellerComputer Neural Networks
Paperback$49.24$49.24FREE delivery Sun, Sep 20 - Mastering PyTorch: Create and deploy deep learning models from CNNs to multimodal models, LLMs, and beyond
Paperback$34.58$34.58Delivery Mon, Sep 21 - LLM Engineer's Handbook: Master the art of engineering large language models from concept to production
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Deep Reinforcement Learning Hands-On: A practical and easy-to-follow guide to RL from Q-learning and DQNs to PPO and RLHF
Paperback$32.75$32.75Delivery Mon, Sep 21 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$37.68$37.68FREE delivery Mon, Sep 21 - Deep Learning (Adaptive Computation and Machine Learning series)
Hardcover$51.51$51.51FREE delivery Sun, Sep 20 - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$49.50$49.50FREE delivery Mon, Sep 21 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python#1 Best SellerSpeech & Audio Processing
Paperback$36.05$36.05FREE delivery Sun, Sep 20 - Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agents
Paperback$41.99$41.99FREE delivery Mon, Sep 21 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Mon, Sep 21 - RAG-Driven Generative AI: Build custom retrieval augmented generation pipelines with LlamaIndex, Deep Lake, and Pinecone
Paperback$32.99$32.99Delivery Mon, Sep 21 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Mon, Sep 21 - Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
Paperback$41.99$41.99FREE delivery Mon, Sep 21 - Super Study Guide: Transformers & Large Language Models
Paperback$36.66$36.66FREE delivery Mon, Sep 21 - Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Paperback$40.00$40.00FREE delivery Sun, Sep 20 - Reinforcement Learning, second edition: An Introduction (Adaptive Computation and Machine Learning series)
Hardcover$80.48$80.48FREE delivery Sun, Sep 20 - Generative AI with Python and PyTorch: Navigating the AI frontier with LLMs, Stable Diffusion, and next-gen AI applications
Paperback$32.99$32.99Delivery Mon, Sep 21 - Unlocking Data with Generative AI and RAG: Enhance generative AI systems by integrating internal data with large language models using RAG
Paperback$44.99$44.99FREE delivery Mon, Sep 21 - Mastering Transformers: The Journey from BERT to Large Language Models and Stable Diffusion
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Transformers for Machine Learning (Chapman & Hall/CRC Machine Learning & Pattern Recognition)
Paperback$63.99$63.99FREE delivery Mon, Sep 21 - Building LLMs for Production: Enhancing LLM Abilities and Reliability with Prompting, Fine-Tuning, and RAG
Paperback$43.38$43.38FREE delivery Mon, Sep 21 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$52.40$52.40FREE delivery Sun, Sep 20 - Agentic Architectural Patterns for Building Multi-Agent Systems: Proven design patterns and practices for GenAI, agents, RAG, LLMOps, and enterprise-scale AI systems
Paperback$44.99$44.99FREE delivery Sun, Sep 20 - LLM Design Patterns: A Practical Guide to Building Robust and Efficient AI Systems
Paperback$42.99$42.99FREE delivery Sun, Sep 20
From the brand
-
See more at our store
-
Packt is a leading publisher of technical learning content with the ability to publish books on emerging tech faster than any other.
Our mission is to increase the shared value of deep tech knowledge by helping tech pros put software to work.
We help the most interesting minds and ground-breaking creators on the planet distill and share the working knowledge of their peers.
From the Publisher
What’s new in this third edition of Transformers for Natural Language Processing and Computer Vision?
There is plenty of new content in this edition, including the implementation of Retrieval Augmented Generation (RAG) with Large Language Models (LLMs) for question-answering tasks and reducing the risk of model hallucinations, giving you more control over your models. I showcase Google Vertex AI, PaLM 2, Llama 2, and HuggingGPT and discuss syntax-free semantic role labeling in the book, as well as dive deeper into the different types of tokenizers.
The biggest change from the previous edition is the addition of several computer vision multimodal model chapters. Transformers such as OpenAI GPT-4V are multimodal. As such, I found it essential to include Computer Vision. The latest vision transformers have taken us into a world of creativity with models, such as DALL-E 3 and Stable Diffusion.
How does the book prepare readers for a career working with Generative AI and Large Language Models?
From page 1, I take the reader into pragmatic approaches to Generative AI and LLMs. The goal is to understand the architecture, potential, and limits of several platforms, such as Hugging Face, Google Vertex AI, and OpenAI, before making a decision. It’s also important to understand the risks of using LLMs. There is a likelihood of losing control of superhuman AI. This book addresses several ways of mitigating risks, such as RAG, embedding-search, knowledge bases, and moderation models.
Moreover, working in this fast-paced, ever-evolving arena means finding the best process, model, and platform for your scenario. The best way is to follow the correct order with a baseline set of tasks. First, try a standard model and go as far as possible with prompt design. Then, try prompt engineering by controlling the input with augmented (RAG) inputs (documents, web scraping, and knowledge base). The next step would be to fine-tune (or build) a model and explore it with prompt engineering and RAG.
Transformers for Natural Language Processing and Computer Vision - Third Edition
|
Modern Computer Vision with PyTorch - Second Edition
|
Building LLM Powered Applications
|
Generative AI with LangChain
|
RAG-Driven Generative AI
|
|
|---|---|---|---|---|---|
| Customer Reviews |
4.1 out of 5 stars 82
|
4.4 out of 5 stars 51
|
4.2 out of 5 stars 46
|
4.1 out of 5 stars 95
|
4.0 out of 5 stars 50
|
| Audience | Data scientists and NLP, CV, and ML engineers looking to advance their LLM and GenAI skills | AI, CV, and ML engineers working on computer vision projects, including GenAI | Software engineers, data scientists, and researchers who want hands-on guidance to build LLM apps | Developers, researchers, and anyone interested in staying ahead of the curve with LLMs and LangChain | Data scientists, AI, ML, MLOps, and software engineers who want to build RAG-driven LLM/CV pipelines |
| Goals and learning outcomes | Learn how to use NLP, CV, and GenAI, focusing on transformers and their applications across domains | Become a computer vision expert by understanding the theory and implementing real-world examples | Gain foundational knowledge and learn to use LLMs in an ethical and responsible way | Get guidance on the LangChain framework and learn to deploy LLM apps in production environments | Build accurate GenAI pipelines with RAG with embedded vector databases and integrated human feedback |
| Tools used | Hugging Face, ChatGPT, GPT-4V, DALL-E 2, DALL-E 3, Google Trax, Gemini, BERT, RoBERTa | PyTorch, GANs, ViT, Stable Diffusion, CLIP, TrOCR, BLIP2, LayoutLM, SAM, FastSAM, autoencoders | GPT 3.5, GPT 4, LangChain, Llama 2, Falcon LLM, StarCoder, Streamlit | LangChain, ChatGPT, Llama 2, StarCoder, Streamlit | LlamaIndex, LangChain, Pinecone, Deep Lake, Hugging Face, OpenAI, Google Vertex AI |
Editorial Reviews
About the Author
Denis Rothman graduated from Sorbonne University and Paris-Diderot University, designing one of the very first word2matrix patented embedding and patented AI conversational agents. He began his career authoring one of the first AI cognitive Natural Language Processing (NLP) chatbots applied as an automated language teacher for Moet et Chandon and other companies. He authored an AI resource optimizer for IBM and apparel producers. He then authored an Advanced Planning and Scheduling (APS) solution used worldwide.
Product details
- Publisher : Packt Publishing
- Publication date : February 29, 2024
- Edition : 3rd
- Language : English
- Print length : 728 pages
- ISBN-10 : 1805128728
- ISBN-13 : 978-1805128724
- Item Weight : 2.72 pounds
- Dimensions : 7.5 x 1.65 x 9.25 inches
- Best Sellers Rank: #788,637 in Books (See Top 100 in Books)
- #36 in Imaging Systems Engineering
- #81 in Computer Simulation (Books)
- #94 in Computer Vision & Pattern Recognition
- Customer Reviews:
About the author

My core belief is that you only truly understand something when you can teach it. That principle shaped my early years studying at Sorbonne University and Paris Cité University, where I also assisted with teaching while developing my first ideas in natural language processing. During that period, I created and registered early patents in word tokenization, encoding systems, and conversational human‑machine interaction.
After those beginnings, I spent more than three decades deploying real‑world AI systems for global companies across aerospace, manufacturing, luxury, and logistics. This included cognitive NLP chatbots, enterprise optimization engines, and advanced planning and scheduling solutions used worldwide. From the start, I treated explainability as essential, integrating interpretable, acceptance‑based interfaces into industrial AI systems long before XAI became a formal field.
Sharing knowledge has always been central to my work. I write books that translate hands‑on AI experience into practical algorithms, frameworks, and architectures. I remain model‑ and platform‑agnostic, always showing multiple ways to solve a problem. As a full‑stack developer, I believe in teaching through code, so I publish complete programs on GitHub as proof-of-concept.
















