Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Generative AI Foundations in Python

You're reading from   Generative AI Foundations in Python Discover key techniques and navigate modern challenges in LLMs

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835460825
Length 190 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Carlos Rodriguez Carlos Rodriguez
Author Profile Icon Carlos Rodriguez
Carlos Rodriguez
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Part 1: Foundations of Generative AI and the Evolution of Large Language Models FREE CHAPTER
2. Chapter 1: Understanding Generative AI: An Introduction 3. Chapter 2: Surveying GenAI Types and Modes: An Overview of GANs, Diffusers, and Transformers 4. Chapter 3: Tracing the Foundations of Natural Language Processing and the Impact of the Transformer 5. Chapter 4: Applying Pretrained Generative Models: From Prototype to Production 6. Part 2: Practical Applications of Generative AI
7. Chapter 5: Fine-Tuning Generative Models for Specific Tasks 8. Chapter 6: Understanding Domain Adaptation for Large Language Models 9. Chapter 7: Mastering the Fundamentals of Prompt Engineering 10. Chapter 8: Addressing Ethical Considerations and Charting a Path Toward Trustworthy Generative AI 11. Index 12. Other Books You May Enjoy

Constrained generation and eliciting trustworthy outcomes

In practice, it is possible to constrain model generation and guide outcomes toward factuality and equitable outcomes. As discussed, guiding models toward trustworthy outcomes can be done through continued training and fine-tuning, or during inference. For example, methodologies such as reinforcement learning from human feedback (RLHF) and direct preference optimization (DPO) increasingly refine model outputs to align model outcomes with human judgment. Additionally, as discussed in Chapter 7, various grounding techniques help to ensure that model outputs reflect verified data, continuously guiding the model toward responsible and accurate content generation.

Constrained generation with fine-tuning

Refinement strategies such as RLHF integrate human judgments into the model training process, steering the AI toward behavior that aligns with ethical and truthful standards. By incorporating human feedback loops, RLHF ensures...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime