Shop top categories that ship internationally
Buy new:
-30% $55.99
Delivery Wednesday, January 29
Ships from: Amazon.com
Sold by: Amazon.com
$55.99 with 30 percent savings
List Price: $79.99
FREE International Returns
$11.42 Shipping & Import Charges to Canada Details

Shipping & Fee Details

Price $55.99
AmazonGlobal Shipping $8.49
Estimated Import Charges $2.93
Total $67.41

Delivery Wednesday, January 29
In Stock
$$55.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$55.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Amazon.com
Sold by
Amazon.com
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$50.51
FREE International Returns
Has a sturdy binding with some shelf wear. May have some markings or highlighting. Used copies may not include access codes or Cds. Has a sturdy binding with some shelf wear. May have some markings or highlighting. Used copies may not include access codes or Cds. See less
Delivery Monday, February 3
Or fastest delivery January 29 - 31
Only 1 left in stock - order soon.
$$55.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$55.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

Follow the authors

See all
Something went wrong. Please try your request again later.

Generative AI on AWS: Building Context-Aware Multimodal Reasoning Applications 1st Edition

4.4 4.4 out of 5 stars 67 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$55.99","priceAmount":55.99,"currencySymbol":"$","integerValue":"55","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"JYREAJCDWRSsGhuyrl789TjYe9hYXWKA2Xm4kBqL18qN8PTW7%2BgzPpppB%2FjXHtOCFFzsNDjSYI05uJWdCkjahtiXAFSaJH%2FTZ1x7j0d8ZPPIGOjNm24DRfouZZs5EaB4f5gPtYsdWw1BDt6JTc7zfw%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$50.51","priceAmount":50.51,"currencySymbol":"$","integerValue":"50","decimalSeparator":".","fractionalValue":"51","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"JYREAJCDWRSsGhuyrl789TjYe9hYXWKAvah2XprQddBBFwdbsL%2F8luZfhReoITw4VY6vM1y3%2Bb%2FH%2BXWm%2BsgttWUcqVy4IDtcKfRAF5v9iZkRK2moA1ArSj%2FdAIAI%2B%2B1VPCQpVsn3ZsHfKz%2BKeqBZI9o69qgUPlB4rpp%2F1iUgAmcF46DN2Bya4p0DeeuEv0qS","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Companies today are moving rapidly to integrate generative AI into their products and services. But there's a great deal of hype (and misunderstanding) about the impact and promise of this technology. With this book, Chris Fregly, Antje Barth, and Shelbee Eigenbrode from AWS help CTOs, ML practitioners, application developers, business analysts, data engineers, and data scientists find practical ways to use this exciting new technology.

You'll learn the generative AI project life cycle including use case definition, model selection, model fine-tuning, retrieval-augmented generation, reinforcement learning from human feedback, and model quantization, optimization, and deployment. And you'll explore different types of models including large language models (LLMs) and multimodal models such as Stable Diffusion for generating images and Flamingo/IDEFICS for answering questions about images.

  • Apply generative AI to your business use cases
  • Determine which generative AI models are best suited to your task
  • Perform prompt engineering and in-context learning
  • Fine-tune generative AI models on your datasets with low-rank adaptation (LoRA)
  • Align generative AI models to human values with reinforcement learning from human feedback (RLHF)
  • Augment your model with retrieval-augmented generation (RAG)
  • Explore libraries such as LangChain and ReAct to develop agents and actions
  • Build generative AI applications with Amazon Bedrock

Frequently bought together

This item: Generative AI on AWS: Building Context-Aware Multimodal Reasoning Applications
$55.99
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Treatment
Choose items to buy together.

From the brand


From the Publisher

Generative AI on AWS: Building Context-Aware Multimodal Reasoning Applications

From the Preface

After reading this book, you will understand the most common generative AI use cases and tasks addressed by industry and academia today. You will gain in-depth knowledge of how these cutting-edge generative models are built, as well as practical experience to help you choose between reusing an existing generative model or building one from scratch. You will then learn to adapt these generative AI models to your domain-specific datasets, tasks, and use cases that support your business applications.

This book is meant for AI/ML enthusiasts, data scientists, and engineers who want to learn the technical foundations and best practices for generative AI model training, fine-tuning, and deploying into production. We assume that you are already familiar with Python and basic deep-learning components like neural networks, forward propagation, activations, gradients, and back propagations to understand the concepts used here.

A basic understanding of Python and deep learning frameworks such as TensorFlow or PyTorch should be sufficient to understand the code samples used throughout the book. Familiarity with AWS is not required to learn the concepts, but it is useful for some of the AWS-specific samples.

You will dive deep into the generative AI life cycle and learn topics such as prompt engineering, few-shot in-context learning, generative model pretraining, domain adaptation, model evaluation, parameter-efficient fine-tuning (PEFT), and reinforcement learning from human feedback (RLHF).

You will get hands-on with popular large language models such as Llama 2 and Falcon as well as multimodal generative models, including Stable Diffusion and IDEFICS. You will access these foundation models through the Hugging Face Model Hub, Amazon SageMaker JumpStart, or Amazon Bedrock managed service for generative AI.

You will also learn how to implement context-aware retrieval-augmented generation (RAG) and agent-based reasoning workflows. You will explore application frameworks and libraries, including LangChain, ReAct, and Program-Aided-Language models (PAL). You can use these frameworks and libraries to access your own custom data sources and APIs or integrate with external data sources such as web search and partner data systems.

Lastly, you will explore all of these generative concepts, frameworks, and libraries in the context of multimodal generative AI use cases across different content modalities such as text, images, audio, and video.

And don’t worry if you don’t understand all of these concepts just yet. Throughout the book, you will dive into each of these topics in much more detail. With all of this knowledge and hands-on experience, you can start building cutting-edge generative AI applications that help delight your customers, outperform your competition, and increase your revenue!

Editorial Reviews

Review

"I am very excited about this book. I enjoyed reading it, and I know that you will too! Starting from the basics, you will learn about generative foundation models, prompt engineering, and much more. From there you will proceed to large language models (LLMs) and will see how to use them from within Amazon SageMaker. After you master the basics, you will have the opportunity to learn about multiple types of fine-tuning, and then you will get to the heart of the book and learn to build applications that have the power to perform context-aware reasoning with generative models of different modalities including text and images."
—Jeff Barr VP and Chief Evangelist at AWS

"This book is a comprehensive resource for building generative AI-based solutions
on AWS. Using real-world examples, Chris, Antje, and Shelbee have done a
spectacular job explaining key concepts, pitfalls, and best practices for LLMs
and multimodal models. A very timely resource to accelerate your journey for
building generative AI solutions from concept to production."
—Geeta Chauhan, Applied AI Leader at Meta

"This is by far the best book I have come across that makes building generative AI very
practical. Antje, Chris, and Shelbee put together an exceptional resource that will be very
valuable for years—if possible, converted to a learning resource for universities. Definitely
a must-read for anyone building generative AI applications at scale on AWS."
—Olalekan Elesin, Director of Data Science Platform at HRS Group

"If you're looking for a robust learning foundation for building and deploying
generative AI products or services, look no further than Generative AI on AWS.
Guided by the deep expertise of authors Chris Fregly, Antje Barth, and Shelbee
Eigenbrode, this book will transition you from a GenAI novice to a master of the
intricate nuances involved in training, fine-tuning, and application development. This
manual is an indispensable guide and true necessity for every budding AI engineer,
product manager, marketer, or business leader."
—Lillian Pierson, PE, Founder at Data-Mania

"This book goes deep into how GenAI models are actually built and used. And it covers
the whole life cycle, not just prompt engineering or tuning. If you're thinking about using
GenAI for anything nontrivial, you should read this book to understand what skill sets
and tools you'll need to be successful."
—Randy DeFauw, Sr. Principal Solution Architect at AWS

"In the process of developing and deploying a generative AI application, there are
many complex decision points that collectively determine whether the application
will produce high quality output and can be run in a cost-efficient, scalable, and
reliable manner. This book demystifies the underlying technologies and provides
thoughtful guidance to help readers understand and make these decisions, and
ultimately launch successful generative AI applications."
—Brent Rabowsky, Sr. Manager AI/ML Specialist SA at AWS

"There's no better book to get started with generative AI. With all the information
on the internet about the topic, it's extremely overwhelming for anyone. But this
book is a clear and structured guide. It goes from the basics all the way to
advanced topics like parameter-efficient fine-tuning and LLM deployment. It's also
very practical and covers deployment on AWS too. This book is an extremely
valuable resource for any data scientist or engineer!"
—Alexey Grigorev, Principal Data Scientist at OLX Group

"It's very rare to find a book that comprehensively covers the full end-to-end process of
model development and deployment! If you're an ML practitioner, this book is a must!"
—Alejandro Herrera, Data Scientist at Snowflake

"This book is a fantastic end-to-end deep-dive into the Generative AI foundations including how to build enterprise-level Generative AI solutions on AWS. Great work!!"
—Dr. Ramine Tinati, Chief Data Scientist at Accenture

"Generative AI on AWS provides an in-depth look at the innovative techniques for creating applications that comprehend diverse data types and make context-driven decisions. Readers get a comprehensive view, bridging both the theoretical aspects and practical tools needed for Generative AI applications. This book is a must-read for those wanting to harness the full potential of AWS in the realm of Generative AI."
—Kesha Williams, Director at Slalom Consulting and AWS ML Hero

From the Author

Table of Contents

Ch 1.    Generative AI Use Cases, Fundamentals, and Project Life Cycle. 
Use Cases and Tasks
Foundation Models and Model Hubs
Generative AI Project Life Cycle
Generative AI on AWS
Why Generative AI on AWS?
Building Generative AI Applications on AWS
Summary

Ch 2.    Prompt Engineering and In-Context Learning.
Prompts and Completions 
Tokens
Prompt Engineering
Prompt Structure
Instruction
Context
In-Context Learning with Few-Shot Inference
Zero-Shot Inference
One-Shot Inference
Few-Shot Inference
In-Context Learning Gone Wrong
In-Context Learning Best Practices
Prompt-Engineering Best Practices
Inference Configuration Parameters
Summary
 
Ch 3.    Large-Language Foundation Models
Large-Language Foundation Models
Tokenizers
Embedding Vectors
Transformer Architecture
Inputs and Context Window
Embedding Layer
Encoder
Self-Attention
Decoder
Softmax Output
Types of Transformer-Based Foundation Models
Pretraining Datasets
Scaling Laws
Compute-Optimal Models
Summary
 
Ch 4.    Memory and Compute Optimizations
Memory Challenges
Data Types and Numerical Precision
Quantization
fp16
bfloat16
fp8
int8
Optimizing the Self-Attention Layers
FlashAttention
Grouped-Query Attention
Distributed Computing
Distributed Data Parallel
Fully Sharded Data Parallel
Performance Comparison of FSDP over DDP
Distributed Computing on AWS
Fully Sharded Data Parallel with Amazon SageMaker
AWS Neuron SDK and AWS Trainium
Summary
 
Ch 5.    Fine-Tuning and Evaluation
Instruction Fine-Tuning
Llama 2-Chat
Falcon-Chat
FLAN-T5
Instruction Dataset
Multitask Instruction Dataset
FLAN: Example Multitask Instruction Dataset
Prompt Template
Convert a Custom Dataset into an Instruction Dataset
Instruction Fine-Tuning
Amazon SageMaker Studio
Amazon SageMaker JumpStart
Amazon SageMaker Estimator for Hugging Face
Evaluation
Evaluation Metrics
Benchmarks and Datasets
Summary
 
Ch 6.    Parameter-Efficient Fine-Tuning
Full Fine-Tuning Versus PEFT
LoRA and QLoRA
LoRA Fundamentals
Rank
Target Modules and Layers
Applying LoRA
Merging LoRA Adapter with Original Model
Maintaining Separate LoRA Adapters
Full-Fine Tuning Versus LoRA Performance
QLoRA
Prompt Tuning and Soft Prompts
Summary
 
Ch 7.    Fine-Tuning with Reinforcement Learning from Human Feedback
Human Alignment: Helpful, Honest, and Harmless
Reinforcement Learning Overview
Train a Custom Reward Model
Collect Training Dataset with Human-in-the-Loop
Sample Instructions for Human Labelers
Using Amazon SageMaker Ground Truth for Human Annotations
Prepare Ranking Data to Train a Reward Model    118
Train the Reward Model    121
Existing Reward Model: Toxicity Detector by Meta    123
Fine-Tune with Reinforcement Learning from Human Feedback    124
Using the Reward Model with RLHF
Proximal Policy Optimization RL Algorithm
Perform RLHF Fine-Tuning with PPO
Mitigate Reward Hacking
Using Parameter-Efficient Fine-Tuning with RLHF
Evaluate RLHF Fine-Tuned Model
Qualitative Evaluation
Quantitative Evaluation
Load Evaluation Model
Define Evaluation-Metric Aggregation Function
Compare Evaluation Metrics Before and After
Summary
 
Ch 8.    Model Deployment Optimizations
Model Optimizations for Inference
Pruning
Post-Training Quantization with GPTQ
Distillation
Large Model Inference Container
AWS Inferentia: Purpose-Built Hardware for Inference
Model Update and Deployment Strategies
A/B Testing
Shadow Deployment
Metrics and Monitoring
Autoscaling
Autoscaling Policies
Define an Autoscaling Policy
Summary
 
Ch 9.    Context-Aware Reasoning Applications Using RAG and Agents
Large Language Model Limitations
Hallucination
Knowledge Cutoff
Retrieval-Augmented Generation
External Sources of Knowledge
RAG Workflow
Document Loading
Chunking
Document Retrieval and Reranking
Prompt Augmentation
RAG Orchestration and Implementation
Document Loading and Chunking
Embedding Vector Store and Retrieval
Retrieval Chains
Reranking with Maximum Marginal Relevance
Agents
ReAct Framework
Program-Aided Language Framework
Generative AI Applications
FMOps: Operationalizing the Generative AI Project Life Cycle
Experimentation Considerations
Development Considerations
Production Deployment Considerations
Summary
 
Ch 10.    Multimodal Foundation Models
Use Cases
Multimodal Prompt Engineering Best Practices
Image Generation and Enhancement
Image Generation
Image Editing and Enhancement
Inpainting, Outpainting, Depth-to-Image
Inpainting
Outpainting
Depth-to-Image
Image Captioning and Visual Question Answering
Image Captioning
Content Moderation
Visual Question Answering
Model Evaluation
Text-to-Image Generative Tasks
Forward Diffusion
Nonverbal Reasoning
Diffusion Architecture Fundamentals
Forward Diffusion
Reverse Diffusion
U-Net
Stable Diffusion 2 Architecture
Text Encoder
U-Net and Diffusion Process
Text Conditioning
Cross-Attention
Scheduler
Image Decoder
Stable Diffusion XL Architecture
U-Net and Cross-Attention
Refiner
Conditioning
Summary
 
Ch 11.    Controlled Generation and Fine-Tuning with Stable Diffusion
ControlNet
Fine-Tuning
DreamBooth
DreamBooth and PEFT-LoRA
Textual Inversion
Human Alignment with Reinforcement Learning from Human Feedback
Summary
 
Ch 12.    Amazon Bedrock: Managed Service for Generative AI
Bedrock Foundation Models
Amazon Titan Foundation Models
Stable Diffusion Foundation Models from Stability AI
Bedrock Inference APIs
Large Language Models
Generate SQL Code
Summarize Text
Embeddings
Fine-Tuning
Agents
Multimodal Models
Create Images from Text
Create Images from Images
Data Privacy and Network Security
Governance and Monitoring
Summary

Product details

  • Publisher ‏ : ‎ O'Reilly Media; 1st edition (December 19, 2023)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 309 pages
  • ISBN-10 ‏ : ‎ 1098159225
  • ISBN-13 ‏ : ‎ 978-1098159221
  • Item Weight ‏ : ‎ 1.1 pounds
  • Dimensions ‏ : ‎ 7 x 0.65 x 9.19 inches
  • Customer Reviews:
    4.4 4.4 out of 5 stars 67 ratings

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.4 out of 5 stars
67 global ratings

Review this product

Share your thoughts with other customers

Customers say

Customers find the book helpful for understanding high-level concepts and engineering topics. They appreciate the concrete examples and code snippets that help practitioners. The content quality is decent, though there are better options available. However, it demystifies the complex decisions involved in creating high-quality, scalable, and reliable generative AI products.

AI-generated from the text of customer reviews

Select to learn more
9 customers mention "Comprehension"9 positive0 negative

Customers find the book helpful for understanding high-level concepts and prompt engineering. They find it a valuable resource with concrete examples and code snippets for practitioners. The book is described as comprehensive and useful from novice to expert levels of Generative AI experience.

"Good one for genai" Read more

"...I particularly benefited from the content pertaining to prompt engineering and the explanations of parameters affecting outcomes...." Read more

"this content is a great approach to understand generative AI on AWS. You would enjoy this knowlege for your task definitely." Read more

"Generative AI on AWS is an invaluable resource for any engineer, product manager, marketer, or business leader looking to harness the full potential..." Read more

4 customers mention "Content quality"4 positive0 negative

Customers find the book provides decent content that explains complex decisions involved in creating high-quality, scalable, and reliable generative AI products.

"This is an excellent book, whether one is looking to understand concepts at a high level, or details at the low level...." Read more

"...This book demystifies the complex decisions involved in creating high-quality, scalable, and reliable generative AI products and services on the AWS..." Read more

"This book has some decent content but there are many better options available for learning about Generative AI...." Read more

"Excellent book..." Read more

Comprehensive & practical guide to build generative AI solutions. I'm buying this for my whole team!
5 out of 5 stars
Comprehensive & practical guide to build generative AI solutions. I'm buying this for my whole team!
[Foundational Knowledge and Practical Application] The book starts with basic concepts of generative foundation models, including prompt engineering, and progresses to more advanced topics. It covers large language models (LLMs) and their use within Amazon SageMaker, providing insights into multiple types of fine-tuning and building applications for context-aware reasoning using generative models.[Expertly Written and Timely Resource] This book provides clear explanations of key concepts, pitfalls, and best practices in LLMs and multimodal models. It's considered a valuable resource for building generative AI applications from concept to production.[Educational and Forward-Looking] The book is recommended as a learning resource for universities and is seen as valuable for years to come. It's described as a must-read for anyone building generative AI applications at scale on AWS.[Comprehensive Guide for Practitioners] The book is positioned as an indispensable guide for AI engineers, product managers, marketers, and business leaders. It provides deep expertise in training, fine-tuning, and application development of generative AI.[In-Depth Coverage of GenAI Model Development] It covers the entire life cycle of Generative AI model development, not just prompt engineering or tuning. The book is recommended for understanding the necessary skill sets and tools for success in GenAI.[Practical, Structured Approach] The book is appreciated for its clear, structured approach, covering basics to advanced topics like parameter-efficient fine-tuning and LLM deployment. It's also noted for its practical guidance on deployment on AWS.[End-to-End Coverage] The book is unique in its comprehensive coverage of the full end-to-end process of model development and deployment. It's recommended for machine learning practitioners as a must-read.[Focus on Innovative Techniques and Applications] It provides an in-depth look at innovative techniques for creating applications that understand diverse data types and make context-driven decisions, bridging theoretical and practical aspects of Generative AI applications.In summary, "Generative AI on AWS" is comprehensive, practical, and educational. This is an essential resource for anyone interested in building generative AI solutions on AWS.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Top reviews from other countries

  • Frank Morales
    5.0 out of 5 stars Outstanding Textbook For Generative AI
    Reviewed in Canada on January 9, 2024
    This GREAT book provides good guidelines based on practical examples about using the AWS Ecosystem Toward GENERATIVE AI correctly and accordingly. Also, provide a comprehensive and extensive overview related to the state of the art of the current GAI and beyond. I recommended this book to scholars and the AI enthusiast community. Also, the Python community should be happy with this book, which proves the power of this language one more time—an excellent source for an outstanding generative AI textbook.
  • Amitabh Das
    5.0 out of 5 stars Aws
    Reviewed in India on April 8, 2024
    Good book lot of good information with lot pf good insights. 👍 lot of good information to apply at your work
  • Ivana Tasic
    1.0 out of 5 stars Pages are not glued!
    Reviewed in Germany on February 21, 2024
    I just started reading the book and it started to fall apart…
    Customer image
    Ivana Tasic
    1.0 out of 5 stars Pages are not glued!
    Reviewed in Germany on February 21, 2024
    I just started reading the book and it started to fall apart…
    Images in this review
    Customer image Customer image
    Customer imageCustomer image
  • Amazon Kunde
    1.0 out of 5 stars Defective book with lots of pages dangling apart
    Reviewed in Singapore on September 4, 2024
    Many pages are falling apart and not properly glued together, it's a very bad experience when you pay such a high price for the book with low quality.
    Customer image
    Amazon Kunde
    1.0 out of 5 stars Defective book with lots of pages dangling apart
    Reviewed in Singapore on September 4, 2024
    Many pages are falling apart and not properly glued together, it's a very bad experience when you pay such a high price for the book with low quality.
    Images in this review
    Customer image
    Customer image