Mastering LLM Inference Optimization From Theory to Cost Effective Deployment: Mark Moyou

AI Engineer January 1, 2025
Video Thumbnail
AI Engineer Logo

AI Engineer

@aidotengineer

About

Talks, workshops, events, and training for AI Engineers.

Video Description

LLM inference is not your normal deep learning model deployment nor is it trivial when it comes to managing scale, performance and COST. Understanding how to effectively size a production grade LLM deployment requires understanding of the model(s), the compute hardware, quantization and parallelization methods, KV Cache budgets, input and output token length predictions, model adapter management and much more. If you want to deeply understand these topics and their effects on LLM inference cost and performance you will enjoy this talk. This talk will cover the following topics: Why LLM inference is different to standard deep learning inference Current and future NVIDIA GPU overview - which GPU(s) for which models and why Understanding the importance of building inference engines Deep recap on the attention mechanism along with different types of popular attention mechanisms used in production Deep dive on KV Cache and managing KV Cache budgets to increase throughput per model deployment Parallelism (reducing latency) - mainly tensor parallelism but data, sequence, pipeline and expert parallelism will be highlighted Quantization methods on weights, activations, KV Cache to reduce engine sizes for more effective GPU utilization Increasing throughput with inflight batching and other techniques Detailed performance analysis of LLM deployments looking at Time to first token, inter-token latencies, llm deployment characterizations, and more that can help reduce deployment costs The main inference engine referenced in the talk with TRT-LLM and the open-source inference serve NVIDIA Triton. Recorded live in San Francisco at the AI Engineer World's Fair. See the full schedule of talks at https://www.ai.engineer/worldsfair/2024/schedule & join us at the AI Engineer World's Fair in 2025! Get your tickets today at https://ai.engineer/2025 About Mark Dr. Mark Moyou is a Senior Data Scientist at NVIDIA on the Retail team focused on enabling scalable machine learning for the nation's top Retailers. Before NVIDIA, he was a Data Science Manager in the Professional Services division at Lucidworks, an Enterprise Search and Recommendations company. Prior to Lucidworks, he was a founding Data Scientist at Alstom Transportation where he applied Data Science to the Railroad Industry in the US. Mark holds a PhD and MSc in Systems Engineering and a BSc in Chemical Engineering. On the side, Mark is the host of The AI Portfolio Podcast, The Caribbean Tech Pioneers, Progress Guaranteed Podcast and Director of the Southern Data Science Conference in Atlanta.

You May Also Like

LLM Inference Optimization Kit

AI-recommended products based on this video

Loading...
Seasonic Focus V4 GX-1000 (ATX3) - 1000W - 80+ Gold - ATX 3.0 & PCIe 5.1 Ready -Full-Modular -ATX Form Factor -Premium Japanese Capacitor -10 Year Warranty -Nvidia RTX 30/40 Super & AMD GPU Compatible

Seasonic Focus V4 GX-1000 (ATX3) - 1000W - 80+ Gold - ATX 3.0 & PCIe 5.1 Ready -Full-Modular -ATX Form Factor -Premium Japanese Capacitor -10 Year Warranty -Nvidia RTX 30/40 Super & AMD GPU Compatible

(22)
$423.35
FREE delivery Oct 8 - 10
Loading...
PNY NVIDIA Quadro RTX 4000 - The World’S First Ray Tracing GPU

PNY NVIDIA Quadro RTX 4000 - The World’S First Ray Tracing GPU

(203)
$670.57$399.99
FREE delivery Feb 23 - 27
Loading...
Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop, Intel Core i5-12450HX, NVIDIA GeForce RTX 2050, 16GB DDR5, 2TB Storage (1TB SSD+1TB Docking Station Set), Number Pad, 720p Camera, Wi-Fi 6, Win 11, Gray

Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop, Intel Core i5-12450HX, NVIDIA GeForce RTX 2050, 16GB DDR5, 2TB Storage (1TB SSD+1TB Docking Station Set), Number Pad, 720p Camera, Wi-Fi 6, Win 11, Gray

(2)
$1,369.00
FREE delivery Feb 24 - Mar 5
Loading...
ASUS TUF F16 16" WUXGA 165Hz Gaming Laptop, Intel i7-14650HX, NVIDIA GeForce RTX 5070 8GB, 16GB DDR5, 1TB SSD, Backlit Keyboard, Number Pad, IR Camera, Wi-Fi 6E, Win 11, Gray, 1TB Docking Station Set

ASUS TUF F16 16" WUXGA 165Hz Gaming Laptop, Intel i7-14650HX, NVIDIA GeForce RTX 5070 8GB, 16GB DDR5, 1TB SSD, Backlit Keyboard, Number Pad, IR Camera, Wi-Fi 6E, Win 11, Gray, 1TB Docking Station Set

(10)
$2,429.00
FREE delivery Feb 24 - Mar 5Only 9 left in stock.
Loading...
Acer Nitro V 15.6" FHD 165Hz Gaming Laptop, Intel i5-13420H, 16GB RAM, 512GB SSD, NVIDIA GeForce RTX 5050 8GB GDDR7, Copilot, Backlit Keyboard, Wi-Fi 6, Win 11, Black, 1TB Docking Station Set

Acer Nitro V 15.6" FHD 165Hz Gaming Laptop, Intel i5-13420H, 16GB RAM, 512GB SSD, NVIDIA GeForce RTX 5050 8GB GDDR7, Copilot, Backlit Keyboard, Wi-Fi 6, Win 11, Black, 1TB Docking Station Set

(1,689)
$1,349.00
FREE delivery Feb 24 - Mar 5Only 7 left in stock.
Loading...
HP Victus 15.6" 144Hz FHD Gaming Laptop, Intel i5-12450H, 32GB RAM, 1TB PCIe SSD, NVIDIA GeForce RTX 3050, Backlit Keyboard, HD Webcam, Win 11, Blue, 256GB Docking Station Set

HP Victus 15.6" 144Hz FHD Gaming Laptop, Intel i5-12450H, 32GB RAM, 1TB PCIe SSD, NVIDIA GeForce RTX 3050, Backlit Keyboard, HD Webcam, Win 11, Blue, 256GB Docking Station Set

(117)
$1,149.00
FREE delivery Jun 26 - Jul 8
Loading...
Lenovo IdeaPad 3i 15.6" FHD Touchscreen Laptop, Intel Gen 11th i3-1115G4, 16GB RAM, 512GB PCIe SSD, Intel UHD Graphics, Numeric Keypad, HD Webcam, WiFi 6, Win 11 Pro, Grey, 32GB Hotface USB Card

Lenovo IdeaPad 3i 15.6" FHD Touchscreen Laptop, Intel Gen 11th i3-1115G4, 16GB RAM, 512GB PCIe SSD, Intel UHD Graphics, Numeric Keypad, HD Webcam, WiFi 6, Win 11 Pro, Grey, 32GB Hotface USB Card

(3)
$599.00
FREE delivery Sun, Jun 22
Loading...
N2 Mini PC 11 Pro, Ryzen 7 6800H(up to 4.7GHz), Gaming Desktop Computer Radeon 680M GPU, 32GB DDR5 RAM 512GB SSD, Dual USB4.0 /Wi-Fi 6E/BT 5.2 for Business, Office, Home

N2 Mini PC 11 Pro, Ryzen 7 6800H(up to 4.7GHz), Gaming Desktop Computer Radeon 680M GPU, 32GB DDR5 RAM 512GB SSD, Dual USB4.0 /Wi-Fi 6E/BT 5.2 for Business, Office, Home

(57)
$589.99
FREE delivery Sat, Jan 3
Loading...
GMKtec AD-GP1 External GPU Docking Station, eGPU Enclosure with AMD Radeon 7600M XT GPU Graphics Card, HDMI2.1, DisplayPort2.0, Oculink, USB4, eGPU Dock for Mini PC Laptop Notebook Game Console

GMKtec AD-GP1 External GPU Docking Station, eGPU Enclosure with AMD Radeon 7600M XT GPU Graphics Card, HDMI2.1, DisplayPort2.0, Oculink, USB4, eGPU Dock for Mini PC Laptop Notebook Game Console

(27)
$659.99
PrimeFREE delivery Sat, Jun 14
Loading...
AOOSTAR R7 AMD Ryzen7 5825U 2*M.2 Slots Mini PC 8C/16T, Support 44T(2 * 22T 2 Bay Storage ,3-in-1 Mini Computers 32GB DDR4 1T NVME SSD Windows 11 PRO Dual NVME WiFi 6 Dual 2.5G LAN Soft Router HTPC

AOOSTAR R7 AMD Ryzen7 5825U 2*M.2 Slots Mini PC 8C/16T, Support 44T(2 * 22T 2 Bay Storage ,3-in-1 Mini Computers 32GB DDR4 1T NVME SSD Windows 11 PRO Dual NVME WiFi 6 Dual 2.5G LAN Soft Router HTPC

(0)
$825.73$817.47
FREE delivery Jun 30 - Jul 11
Loading...
GMKtec Mini PC NAS, G9 N150 Dual Boot Win Linux Desktop Computer 12GB DDR5 64GB EMMC + 1TB M.2 SSD, 4*M.2 NVMe Slots, Dual NIC 2.5GbE, USB-C/USB 3.2 10Gbps, Network Attached Storage

GMKtec Mini PC NAS, G9 N150 Dual Boot Win Linux Desktop Computer 12GB DDR5 64GB EMMC + 1TB M.2 SSD, 4*M.2 NVMe Slots, Dual NIC 2.5GbE, USB-C/USB 3.2 10Gbps, Network Attached Storage

(966)
$269.99
50+ bought in past month
Loading...
Samsung 990 EVO Plus - 4TB PCIe Gen4. X4, Gen5. X2 NVMe 2.0 - M.2 Internal SSD, Speed Up to 7,250 MBs, Upgrade Storage for PC-Laptops, HMB Technology and Intelligent Turbowrite (MZ-V9S4T0B/AM)

Samsung 990 EVO Plus - 4TB PCIe Gen4. X4, Gen5. X2 NVMe 2.0 - M.2 Internal SSD, Speed Up to 7,250 MBs, Upgrade Storage for PC-Laptops, HMB Technology and Intelligent Turbowrite (MZ-V9S4T0B/AM)

(1,811)
$359.99$341.99
FREE delivery Tue, Jun 17
100+ bought in past month
Loading...
SAMSUNG 990 PRO SSD 4TB PCIe Gen4 NVMe M.2 Internal Solid State Hard Drive, Up to 7,450MB/s, Heat Control, Direct Storage and Memory Expansion, MZ-V9P4T0B/AM [Canada Version]

SAMSUNG 990 PRO SSD 4TB PCIe Gen4 NVMe M.2 Internal Solid State Hard Drive, Up to 7,450MB/s, Heat Control, Direct Storage and Memory Expansion, MZ-V9P4T0B/AM [Canada Version]

(12,872)
$499.97$407.80
FREE delivery Tue, Jun 17
300+ bought in past month
Loading...
TERRAMASTER F8 SSD Plus NAS - 8Bay All SSD NAS Storage Core i3 8-Core 8-Thread CPU, 16GB DDR5 RAM, 10GbE Port, 8 Heat Sinks Included, Palm-Sized Network Attached Storage Peak Performance (Diskless)

TERRAMASTER F8 SSD Plus NAS - 8Bay All SSD NAS Storage Core i3 8-Core 8-Thread CPU, 16GB DDR5 RAM, 10GbE Port, 8 Heat Sinks Included, Palm-Sized Network Attached Storage Peak Performance (Diskless)

(35)
$1,099.99
FREE delivery Mon, Aug 11
Loading...
Crovakeu Professional Lock Pick Set - 1-Piece Compact Locksmith Tools Kit with Practice Locks for Beginners & Pros - Portable Lockpicking Tools for Fidget, Stress Relief & Skill Training

Crovakeu Professional Lock Pick Set - 1-Piece Compact Locksmith Tools Kit with Practice Locks for Beginners & Pros - Portable Lockpicking Tools for Fidget, Stress Relief & Skill Training

(13)
$11.99
FREE delivery Jul 2 - 22
100+ bought in past month