Book description
The Practical, Step-by-Step Guide to Using LLMs at Scale in Projects and Products
Large Language Models (LLMs) like Llama 3, Claude 3, and the GPT family are demonstrating breathtaking capabilities, but their size and complexity have deterred many practitioners from applying them. In Quick Start Guide to Large Language Models, Second Edition, pioneering data scientist and AI entrepreneur Sinan Ozdemir clears away those obstacles and provides a guide to working with, integrating, and deploying LLMs to solve practical problems.
Ozdemir brings together all you need to get started, even if you have no direct experience with LLMs: step-by-step instructions, best practices, real-world case studies, and hands-on exercises. Along the way, he shares insights into LLMs' inner workings to help you optimize model choice, data formats, prompting, fine-tuning, performance, and much more. The resources on the companion website include sample datasets and up-to-date code for working with open- and closed-source LLMs such as those from OpenAI (GPT-4 and GPT-3.5), Google (BERT, T5, and Gemini), X (Grok), Anthropic (the Claude family), Cohere (the Command family), and Meta (BART and the LLaMA family).
Learn key concepts: pre-training, transfer learning, fine-tuning, attention, embeddings, tokenization, and more
Use APIs and Python to fine-tune and customize LLMs for your requirements
Build a complete neural/semantic information retrieval system and attach to conversational LLMs for building retrieval-augmented generation (RAG) chatbots and AI Agents
Master advanced prompt engineering techniques like output structuring, chain-of-thought prompting, and semantic few-shot prompting
Customize LLM embeddings to build a complete recommendation engine from scratch with user data that outperforms out-of-the-box embeddings from OpenAI
Construct and fine-tune multimodal Transformer architectures from scratch using open-source LLMs and large visual datasets
Align LLMs using Reinforcement Learning from Human and AI Feedback (RLHF/RLAIF) to build conversational agents from open models like Llama 3 and FLAN-T5
Deploy prompts and custom fine-tuned LLMs to the cloud with scalability and evaluation pipelines in mind
Diagnose and optimize LLMs for speed, memory, and performance with quantization, probing, benchmarking, and evaluation frameworks
"A refreshing and inspiring resource. Jam-packed with practical guidance and clear explanations that leave you smarter about this incredible new field."
--Pete Huang, author of The Neuron
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
Table of contents
- Cover Page
- About This eBook
- Title Page
- Copyright Page
- Contents
- Foreword
- Preface
- Acknowledgments
- About the Author
- Part I: Introduction to Large Language Models
- Part II: Getting the Most Out of LLMs
- Part III: Advanced LLM Usage
-
Part IV: Appendices
-
A. LLM FAQs
- The LLM already knows about the domain I’m working in. Why should I add any few-shot examples or grounded content as in RAG?
- I just want to deploy a closed-source API. What are the main things I need to look out for?
- I really want to deploy an open-source model. What are the main things I need to look out for?
- Creating and fine-tuning my own model architecture seems hard. What can I do to make it easier?
- I think my model is susceptible to prompt injections or going off task. How do I correct it?
- Why didn’t we talk about third-party LLM tools like LangChain?
- How do I deal with overfitting or underfitting in LLMs?
- How can I use LLMs for non-English languages? Are there any unique challenges?
- How can I implement real-time monitoring or logging to understand the performance of my deployed LLM better?
- What are some things we didn’t talk about in this book?
-
B. LLM Glossary
- Transformer Architecture
- Attention Mechanism
- Large Language Model (LLM)
- Autoregressive Language Models
- Autoencoding Language Models
- Transfer Learning
- Prompt Engineering
- Alignment
- Reinforcement Learning from Human Feedback (RLHF)
- Reinforcement Learning from AI Feedback (RLAIF)
- Corpora
- Fine-Tuning
- Labeled Data
- Hyperparameters
- Learning Rate
- Batch Size
- Training Epochs
- Evaluation Metrics
- Incremental/Online Learning
- Overfitting
- Underfitting
- Knowledge Distillation
- Task-Specific Distillation
- Task-Agnostic Distillation
- Multimodal Models
- Alignment
-
C. LLM Application Archetypes
- General Chatbots / Retrieval Augmented Generation (RAG)
- Agents
- Fine-Tuning a Closed-Source LLM
- Fine-Tuning an Open-Source LLM
- Fine-Tuning a Bi-encoder to Learn New Embeddings
- Fine-Tuning an LLM for Following Instructions Using Both LM Training and Reinforcement Learning from Human / AI Feedback (RLHF and RLAIF)
- Open-Book Question-Answering
- Visual Question-Answering
-
A. LLM FAQs
- Index
- Credits
- Code Snippets
Product information
- Title: Quick Start Guide to Large Language Models: Strategies and Best Practices for ChatGPT, Embeddings, Fine-Tuning, and Multimodal AI, 2nd Edition
- Author(s):
- Release date: October 2024
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780135346570
You might also like
book
Quick Start Guide to Large Language Models: Strategies and Best Practices for Using ChatGPT and Other LLMs
The advancement of Large Language Models (LLMs) has revolutionized the field of Natural Language Processing in …
book
Hands-On Large Language Models
AI has acquired startling new language capabilities in just the past few years. Driven by rapid …
video
Quick Guide to ChatGPT, Embeddings, and Other Large Language Models (LLMs)
9+ Hours of Video Instruction Learn how to use and launch large language models (LLMs) like …
book
Modern Generative AI with ChatGPT and OpenAI Models
Harness the power of AI with innovative, real-world applications, and unprecedented productivity boosts, powered by the …