LLM-Engineers-Handbook

PacktPublishing/LLM-Engineers-Handbook

The LLM's practical guide: From the fundamentals to deploying advanced LLM and RAG apps to AWS using LLMOps best practices

5.2k
Stars
1.2k
Forks
34
Open issues
60
Watchers
Python MITLast pushed Apr 22, 2026

The LLM's practical guide: From the fundamentals to deploying advanced LLM and RAG apps to AWS using LLMOps best practices

Categories

Tags

Similar tools

Install

pip install LLM-Engineers-Handbook

README

πŸ‘· LLM Engineer's Handbook

Official repository of the LLM Engineer's Handbook by Paul Iusztin and Maxime Labonne

PacktPublishing%2FLLM-Engineers-Handbook | Trendshift

Find the book on Amazon or Packt

🌟 Features

The goal of this book is to create your own end-to-end LLM-based system using best practices:

  • πŸ“ Data collection & generation
  • πŸ”„ LLM training pipeline
  • πŸ“Š Simple RAG system
  • πŸš€ Production-ready AWS deployment
  • πŸ” Comprehensive monitoring
  • πŸ§ͺ Testing and evaluation framework

You can download and use the final trained model on Hugging Face.

[!IMPORTANT] The code in this GitHub repository is actively maintained and may contain updates not reflected in the book. Always refer to this repository for the latest version of the code.

πŸ”— Dependencies

Local dependencies

To install and run the project locally, you need the following dependencies.

ToolVersionPurposeInstallation Link
pyenvβ‰₯2.3.36Multiple Python versions (optional)Install Guide
Python3.11Runtime environmentDownload
Poetry>= 1.8.3 and < 2.0Package managementInstall Guide
Dockerβ‰₯27.1.1ContainerizationInstall Guide
AWS CLIβ‰₯2.15.42Cloud managementInstall Guide
Gitβ‰₯2.44.0Version controlDownload

Cloud services

The code also uses and depends on the following cloud services. For now, you don't have to do anything. We will guide you in the installation and deployment sections on how to use them:

ServicePurpose
HuggingFaceModel registry
Comet MLExperiment tracker
OpikPrompt monitoring
ZenMLOrchestrator and artifacts layer
AWSCompute and storage
MongoDBNoSQL database
QdrantVector database
GitHub ActionsCI/CD pipeline

In the LLM Engineer's Handbook, Chapter 2 will walk you through each tool. Chapters 10 and 11 provide step-by-step guides on how to set up everything you need.

πŸ—‚οΈ Project Structure

Here is the directory overview:

.
β”œβ”€β”€ code_snippets/       # Standalone exampl