In this comprehensive course, you will explore the intricate world of Large Language Models (LLMs) and gain the skills to design, train, and deploy them using cutting-edge MLOps practices. LLMs are revolutionizing the AI landscape, and understanding how to develop and manage them is essential for AI professionals.

LLM Engineer’s Handbook

Recommended experience
Recommended experience
Beginner level
Ideal for AI engineers, NLP professionals, and LLM specialists. Basic knowledge of Python and cloud platforms like AWS is recommended.
Recommended experience
Recommended experience
Beginner level
Ideal for AI engineers, NLP professionals, and LLM specialists. Basic knowledge of Python and cloud platforms like AWS is recommended.
What you'll learn
Design and manage effective LLM training and deployment pipelines.
Implement supervised fine-tuning and evaluate LLM performance.
Deploy scalable, end-to-end LLM applications using cloud tools.
Details to know

Add to your LinkedIn profile
11 assignments
November 2025
See how employees at top companies are mastering in-demand skills

There are 11 modules in this course
In this section, we delve into the concept and architecture of LLM Twin, an innovative AI model mimicking a person's writing style and personality. We discuss its significance, benefits over generic chatbots, and the planning process for creating an effective LLM product. Detailed insights into the design of the feature, training, and inference pipelines are explored to structure a robust ML system.
What's included
2 videos3 readings1 assignment
2 videos•Total 2 minutes
- Course Overview•1 minute
- Understanding the LLM Twin Concept and Architecture - Overview Video•1 minute
3 readings•Total 30 minutes
- Introduction•10 minutes
- Building ML systems with feature/training/inference pipelines•10 minutes
- Designing the System Architecture of the LLM Twin•10 minutes
1 assignment•Total 10 minutes
- Designing an LLM-Based System•10 minutes
In this section, we introduce the essential tools needed for the course, particularly for the LLM Twin project. We provide an overview of the tech stack, cover installation procedures for Python and its ecosystem, dependency management with Poetry, and task execution using Poe the Poet. This section also provides insights into MLOps and LLMOps tooling, including ZenML and Hugging Face, and explains their roles in the project. Finally, we guide users in setting up an AWS account, focusing on SageMaker for deploying ML models.
What's included
1 video2 readings1 assignment
1 video•Total 1 minute
- Tooling and Installation - Overview Video•1 minute
2 readings•Total 40 minutes
- Introduction•10 minutes
- ZenML: Orchestrator, Artifacts, and Metadata•30 minutes
1 assignment•Total 10 minutes
- MLOps and LLMOps Concepts•10 minutes
In this section, we delve into the LLM Twin project by designing a data collection pipeline for gathering raw data essential for LLM use cases, such as fine-tuning and inference. We'll focus on implementing an ETL pipeline that aggregates data from platforms like Medium and GitHub into a MongoDB data warehouse, thus simulating real-world machine learning project scenarios.
What's included
1 video4 readings1 assignment
1 video•Total 1 minute
- Data Engineering - Overview Video•1 minute
4 readings•Total 100 minutes
- Introduction•10 minutes
- ZenML Pipeline and Steps•30 minutes
- The Crawlers•30 minutes
- The ORM and ODM Software Patterns•30 minutes
1 assignment•Total 10 minutes
- Designing Data Collection Pipelines•10 minutes
In this section, we explore the Retrieval-augmented Generation (RAG) feature pipeline, a crucial technique for embedding custom data into large language models without constant fine-tuning. We introduce the fundamental components of a naive RAG system, such as chunking, embedding, and vector databases. We also delve into LLM Twin's RAG feature pipeline architecture, applying theoretical concepts through practical implementation, and discuss the importance of RAG for addressing issues like model hallucinations and old data. This section provides in-depth insights into advanced RAG techniques and the role of batch pipelines in syncing data for improved accuracy.
What's included
1 video7 readings1 assignment
1 video•Total 1 minute
- RAG Feature Pipeline - Overview Video•1 minute
7 readings•Total 170 minutes
- Introduction•10 minutes
- What are Embeddings?•30 minutes
- DB Operations•10 minutes
- Exploring the LLM Twin’s RAG Feature Pipeline Architecture•30 minutes
- Change data capture: syncing the data warehouse and feature store•30 minutes
- Querying the Data Warehouse•30 minutes
- OVM•30 minutes
1 assignment•Total 10 minutes
- Advanced Concepts in Retrieval-Augmented Generation (RAG)•10 minutes
In this section, we will explore the process of Supervised Fine-Tuning (SFT) for Large Language Models (LLMs). We'll delve into the creation of instruction datasets and how they are used to refine LLMs for specific tasks. This section covers the steps involved in crafting these datasets, the importance of data quality, and presents various techniques and strategies for enhancing the fine-tuning process. Our focus will be on transforming general-purpose models into specialized assistants through SFT, enabling them to provide more coherent and relevant responses.
What's included
1 video7 readings1 assignment
1 video•Total 1 minute
- Supervised Fine-Tuning - Overview Video•1 minute
7 readings•Total 150 minutes
- Introduction•10 minutes
- Data Deduplication•30 minutes
- Data Generation•10 minutes
- Creating Our Own Instruction Dataset•30 minutes
- Exploring SFT and its Techniques•30 minutes
- Training Parameters•10 minutes
- Fine-tuning in Practice•30 minutes
1 assignment•Total 10 minutes
- Advanced Techniques in Language Model Fine-Tuning•10 minutes
In this section, we delve into the realms of preference alignment, discussing how Direct Preference Optimization (DPO) can fine-tune language models to better align with human preferences. We elaborate on creating and evaluating preference datasets, ensuring our models capture nuanced human interactions.
What's included
1 video4 readings1 assignment
1 video•Total 1 minute
- Fine-Tuning with Preference Alignment - Overview Video•1 minute
4 readings•Total 80 minutes
- Introduction•10 minutes
- Evaluating Preferences•30 minutes
- Preference Alignment•10 minutes
- Implementing DPO•30 minutes
1 assignment•Total 10 minutes
- Understanding Preference Alignment in AI Systems•10 minutes
In this section, we delve into the evaluation of large language models (LLMs), addressing various evaluation methods and their significance. We cover general-purpose, domain-specific, and task-specific evaluations, highlighting the unique challenges each presents. Additionally, we explore retrieval-augmented generation (RAG) pipelines and introduce tools like Ragas and ARES for comprehensive LLM assessment.
What's included
1 video3 readings1 assignment
1 video•Total 1 minute
- Evaluating LLMs - Overview Video•1 minute
3 readings•Total 70 minutes
- Introduction•10 minutes
- Task-specific LLM Evaluations•30 minutes
- Generating answers•30 minutes
1 assignment•Total 10 minutes
- Advanced Evaluation Techniques for LLM Systems•10 minutes
In this section, we dive into the art of fine-tuning large language models to boost their performance and efficiency. We'll explore key strategies to optimize the inference process of these models, a crucial step given their heavy computational and memory demands. From reducing latency to improving throughput and minimizing memory usage, we examine how to deploy specialized hardware and innovative techniques to enhance model output. By learning these optimization secrets, you'll unlock more efficient deployments, be they for fast-response tasks like code completion or document generation in batches.
What's included
1 video3 readings1 assignment
1 video•Total 1 minute
- Inference Optimization - Overview Video•1 minute
3 readings•Total 90 minutes
- Introduction•30 minutes
- Optimized Attention Mechanisms•30 minutes
- Introduction to Quantization•30 minutes
1 assignment•Total 10 minutes
- Optimizing Large Language Model Inference•10 minutes
In this section, we explore the construction and implementation of a RAG inference pipeline, starting from understanding its architecture to implementing key modules such as retrieval, prompt creation, and interaction with the LLM. We introduce methods for optimizing retrieval processes like query expansion and self-querying while utilizing OpenAI's API, and integrate these techniques into a comprehensive retrieval module. We'll conclude by assembling these elements into a cohesive inference pipeline and preparing for further deployment steps.
What's included
1 video5 readings1 assignment
1 video•Total 1 minute
- RAG Inference Pipeline - Overview Video•1 minute
5 readings•Total 130 minutes
- Introduction•30 minutes
- Self-querying•30 minutes
- Advanced RAG Post-retrieval Optimization: Reranking•10 minutes
- Implementing the LLM Twin's RAG Inference Pipeline•30 minutes
- Bringing Everything Together into the RAG Inference Pipeline•30 minutes
1 assignment•Total 10 minutes
- Advanced RAG Pipeline Implementation•10 minutes
In this section, we focus on deploying the inference pipeline for large language models (LLMs) in ML applications, ensuring models are accessible and efficient for end users. We'll cover deployment strategies, architectural decisions, and optimization techniques to address challenges like computing power and feature access.
What's included
1 video5 readings1 assignment
1 video•Total 1 minute
- Inference Pipeline Deployment - Overview Video•1 minute
5 readings•Total 110 minutes
- Introduction•10 minutes
- Monolithic versus Microservices Architecture in Model Serving•10 minutes
- Exploring the LLM Twin’s Inference Pipeline Deployment Strategy•30 minutes
- Deploying the LLM Twin model to AWS SageMaker•30 minutes
- Calling the AWS SageMaker Inference Endpoint•30 minutes
1 assignment•Total 10 minutes
- Modern ML Model Deployment•10 minutes
In this section, we dive into the intricacies of MLOps and LLMOps, exploring their roles in automating machine learning processes and handling large language models. We will cover their origins in DevOps, highlight the unique challenges LLMOps addresses, such as prompt management and scaling issues, and illustrate the practical steps for deploying these systems efficiently. The section also includes discussions on the transition from manual deployment to cloud-based solutions, emphasizing the advantages of CI/CD pipelines and Dockerization in executing and managing models at scale.
What's included
1 video7 readings1 assignment
1 video•Total 1 minute
- MLOps and LLMOps - Overview Video•1 minute
7 readings•Total 210 minutes
- Introduction•30 minutes
- MLOps Principles•30 minutes
- Prompt Monitoring•30 minutes
- Setting up the ZenML Cloud•30 minutes
- Run the Pipelines on AWS•30 minutes
- GitHub Actions CI YAML File•30 minutes
- Trigger downstream pipelines•30 minutes
1 assignment•Total 10 minutes
- MLOps and LLMOps Fundamentals•10 minutes
Instructor

Offered by

Offered by

Packt helps tech professionals put software to work by distilling and sharing the working knowledge of their peers. Packt is an established global technical learning content provider, founded in Birmingham, UK, with over twenty years of experience delivering premium, rich content from groundbreaking authors on a wide range of emerging and popular technologies.
Why people choose Coursera for their career

Felipe M.

Jennifer J.

Larry W.

Chaitanya A.
Explore more from Data Science

Course
Category: Credit offeredCredit offered
Course
Category: Credit offeredCredit offered
Professional Certificate
Category: Credit offeredCredit offered
Course
Category: Credit offeredCredit offered