Toc 9780138199302
Toc 9780138199302
Toc 9780138199302
“By balancing the potential of both open- and closed-source models, Quick Start Guide to Large
Language Models stands as a comprehensive guide to understanding and using LLMs, bridging the
gap between theoretical concepts and practical application.”
—Giada Pistilli, Principal Ethicist at Hugging Face
“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
“When it comes to building Large Language Models (LLMs), it can be a daunting task to find
comprehensive resources that cover all the essential aspects. However, my search for such a
resource recently came to an end when I discovered this book.
“One of the stand-out features of Sinan is his ability to present complex concepts in a
straightforward manner. The author has done an outstanding job of breaking down intricate
ideas and algorithms, ensuring that readers can grasp them without feeling overwhelmed. Each
topic is carefully explained, building upon examples that serve as steppingstones for better
understanding. This approach greatly enhances the learning experience, making even the most
intricate aspects of LLM development accessible to readers of varying skill levels.
“Another strength of this book is the abundance of code resources. The inclusion of practical
examples and code snippets is a game-changer for anyone who wants to experiment and apply
the concepts they learn. These code resources provide readers with hands-on experience, allowing
them to test and refine their understanding. This is an invaluable asset, as it fosters a deeper
comprehension of the material and enables readers to truly engage with the content.
“In conclusion, this book is a rare find for anyone interested in building LLMs. Its
exceptional quality of explanation, clear and concise writing style, abundant code resources,
and comprehensive coverage of all essential aspects make it an indispensable resource. Whether
you are a beginner or an experienced practitioner, this book will undoubtedly elevate your
understanding and practical skills in LLM development. I highly recommend Quick Start Guide
to Large Language Models to anyone looking to embark on the exciting journey of building LLM
applications.”
—Pedro Marcelino, Machine Learning Engineer,
Co-Founder and CEO @overfit.study
“Ozdemir’s book cuts through the noise to help readers understand where the LLM revolution
has come from—and where it is going. Ozdemir breaks down complex topics into practical
explanations and easy to follow code examples.”
—Shelia Gulati, Former GM at Microsoft and current Managing
Director of Tola Capital
Quick Start Guide to Large Language
Models: Strategies and Best Practices
for Using ChatGPT and Other LLMs
Table of Contents
Cover
Half Title
Title Page
Copyright Page
Table of Contents
Foreword
Preface
Acknowledgments
About the Author
Part I: Introduction to Large Language Models
1 Overview of Large Language Models
What Are Large Language Models?
Definition of LLMs
Key Characteristics of LLMs
How LLMs Work
Domain-Specific LLMs
Applications of LLMs
Table of Contents
Classical NLP Tasks
Free-Text Generation
Information Retrieval/Neural Semantic Search
Chatbots
Summary
2 Semantic Search with LLMs
Introduction
The Task
Asymmetric Semantic Search
Solution Overview
The Components
Text Embedder
Document Chunking
Vector Databases
Pinecone
Open-Source Alternatives
Re-ranking the Retrieved Results
API
Batch Prompting
Prompt Chaining
Table of Contents
Chaining as a Defense Against Prompt Injection
Chaining to Prevent Prompt Stuffing
Example: Chaining for Safety Using Multimodal LLMs
Chain-of-Thought Prompting
Example: Basic Arithmetic
Summary
Summary
8 Advanced Open-Source LLM Fine-Tuning
Introduction
Example: Anime Genre Multilabel Classification with BERT
Using the Jaccard Score to Measure Performance for Multilabel Genre Prediction of
Anime Titles
A Simple Fine-Tuning Loop
General Tips for Fine-Tuning Open-Source LLMs
Summary of Results
Summary
Your Contributions Matter
Keep Going!