sinanuozdemir/oreilly-hands-on-gpt-llm

Mastering the Art of Scalable and Efficient AI Model Deployment

145

stars

42

commits

Jupyter Notebook

primary language

Feb 25, 2026

updated

learning.oreilly.com/live-events/deploying-gpt-large-language-models-llms/0642572012963
deepseek
distillation
docker
gguf
gpt
groq
k8s
llamacpp
llm
mlops
quantization

README

oreilly-logo

Deploying GPT & Large Language Models

This repository contains code for the O'Reilly Live Online Training for Deploying GPT & LLMs

This course is designed to equip software engineers, data scientists, and machine learning professionals with the skills and knowledge needed to deploy AI models effectively in production environments. As AI continues to revolutionize industries, the ability to deploy, manage, and optimize AI applications at scale is becoming increasingly crucial. This course covers the full spectrum of deployment considerations, from leveraging cutting-edge tools like Kubernetes, llama.cpp, and GGUF, to mastering cost management, compute optimization, and model quantization.


Base Notebooks

Introduction to LLMs and Prompting

NotebookDescription
Introduction to 3rd Party ProvidersUsing Together.ai, HuggingFace, and Groq to run LLMs
Prompt Injection ExamplesSee how three kinds of prompt injection attacks can attempt to jailbreak an LLM

Cleaning Data and Monitoring Drift

NotebookDescription
Cleaning Data using Deep LearningUsing AUM and Cosine Similarity to clean data
Combating AI driftUsing Online Learning to combat drift

Evaluating Agents

NotebookDescription
Evaluating AI Agents: Task Automation and Tool IntegrationA basic case study on tool selection accuracy
Positional Bias on Agent Response EvaluationIdentifying and evaluating positional bias on multiple LLMs

LangGraph and Agents

NotebookDescription
From Prompts to WorkflowsWhy single LLM prompts break on multi-step tasks and how LangGraph provides structure, state, and control flow
LangGraph BasicsFoundational LangGraph primitives: StateGraph, nodes, edges, conditional routing, memory, and visualization
Tools and ReAct AgentsTool integration and the ReAct pattern with LangChain, manual StateGraph, and MCP

Advanced Deployment Techniques

NotebookDescription
Speculative DecodingUsing an assistant model to aid token decoding
Prompt Caching Llama 3Replicating prompt caching with HuggingFace tools
Distilling BERTDistilling models to optimize for speed/memory
Quantizing Llama-3 dynamicallyUsing bitsandbytes to quantize nearly any LLM on HuggingFace
Working with GGUF (no GPU)Using Llama.cpp to work with models
Working with GGUF (with a GPU)Using Llama.cpp to work with models
DeepSeek Model on GGUFRunning a DeepSeek Distilled Llama model using Llama.cpp
Qwen on GGUF with Llama.cppRunning Qwen models using Llama.cpp
K8s GGUF DemoUsing embedding models and Llama 3 with GGUF on a GPU
vLLM + Gateway on K8sProduction GPU deployment with vLLM, FastAPI gateway, and DigitalOcean K8s

More

Fine-Tuning LLMs

Prompt Engineering


Instructor

Sinan Ozdemir Sinan is a former lecturer of Data Science at Johns Hopkins University and the author of multiple textbooks on data science and machine learning. Additionally, he is the founder of the recently acquired Kylie.ai, an enterprise-grade conversational AI platform with RPA capabilities. He holds a master's degree in Pure Mathematics from Johns Hopkins University and is based in San Francisco, CA.

Contributors

sinanuozdemir

42 commits

sinanuozdemir/oreilly-hands-on-gpt-llm

Mastering the Art of Scalable and Efficient AI Model Deployment

145

stars

42

commits

Jupyter Notebook

primary language

Feb 25, 2026

updated

learning.oreilly.com/live-events/deploying-gpt-large-language-models-llms/0642572012963
deepseek
distillation
docker
gguf
gpt
groq
k8s
llamacpp
llm
mlops
quantization

README

oreilly-logo

Deploying GPT & Large Language Models

This repository contains code for the O'Reilly Live Online Training for Deploying GPT & LLMs

This course is designed to equip software engineers, data scientists, and machine learning professionals with the skills and knowledge needed to deploy AI models effectively in production environments. As AI continues to revolutionize industries, the ability to deploy, manage, and optimize AI applications at scale is becoming increasingly crucial. This course covers the full spectrum of deployment considerations, from leveraging cutting-edge tools like Kubernetes, llama.cpp, and GGUF, to mastering cost management, compute optimization, and model quantization.


Base Notebooks

Introduction to LLMs and Prompting

NotebookDescription
Introduction to 3rd Party ProvidersUsing Together.ai, HuggingFace, and Groq to run LLMs
Prompt Injection ExamplesSee how three kinds of prompt injection attacks can attempt to jailbreak an LLM

Cleaning Data and Monitoring Drift

NotebookDescription
Cleaning Data using Deep LearningUsing AUM and Cosine Similarity to clean data
Combating AI driftUsing Online Learning to combat drift

Evaluating Agents

NotebookDescription
Evaluating AI Agents: Task Automation and Tool IntegrationA basic case study on tool selection accuracy
Positional Bias on Agent Response EvaluationIdentifying and evaluating positional bias on multiple LLMs

LangGraph and Agents

NotebookDescription
From Prompts to WorkflowsWhy single LLM prompts break on multi-step tasks and how LangGraph provides structure, state, and control flow
LangGraph BasicsFoundational LangGraph primitives: StateGraph, nodes, edges, conditional routing, memory, and visualization
Tools and ReAct AgentsTool integration and the ReAct pattern with LangChain, manual StateGraph, and MCP

Advanced Deployment Techniques

NotebookDescription
Speculative DecodingUsing an assistant model to aid token decoding
Prompt Caching Llama 3Replicating prompt caching with HuggingFace tools
Distilling BERTDistilling models to optimize for speed/memory
Quantizing Llama-3 dynamicallyUsing bitsandbytes to quantize nearly any LLM on HuggingFace
Working with GGUF (no GPU)Using Llama.cpp to work with models
Working with GGUF (with a GPU)Using Llama.cpp to work with models
DeepSeek Model on GGUFRunning a DeepSeek Distilled Llama model using Llama.cpp
Qwen on GGUF with Llama.cppRunning Qwen models using Llama.cpp
K8s GGUF DemoUsing embedding models and Llama 3 with GGUF on a GPU
vLLM + Gateway on K8sProduction GPU deployment with vLLM, FastAPI gateway, and DigitalOcean K8s

More

Fine-Tuning LLMs

Prompt Engineering


Instructor

Sinan Ozdemir Sinan is a former lecturer of Data Science at Johns Hopkins University and the author of multiple textbooks on data science and machine learning. Additionally, he is the founder of the recently acquired Kylie.ai, an enterprise-grade conversational AI platform with RPA capabilities. He holds a master's degree in Pure Mathematics from Johns Hopkins University and is based in San Francisco, CA.

Contributors

sinanuozdemir

42 commits

Languages

Jupyter Notebook

99.7%