Optimize Your AI - Quantization Explained

Matt Williams December 28, 2024
Video Thumbnail
Matt Williams Logo

Matt Williams

@technovangelist

About

I was a founding maintainer of Ollama, the first evangelist at Datadog, and a former organizer of DevOps Days Seattle, DevOps Days Boston, and Serverless Days Boston. I am passionate about gadgets and AI and automation. Some folks don't think that word is appropriate, but it totally fits here. If you meet me in person you will see me light up when I can share with you my latest gadget, tool, or utility. And this is where I get to share that with all of you. You can find more about me at my website (http://technovangelist.com) or on Twitter (http://twitter.com/technovangelist)

Video Description

🚀 Run massive AI models on your laptop! Learn the secrets of LLM quantization and how q2, q4, and q8 settings in Ollama can save you hundreds in hardware costs while maintaining performance. 🎯 In this video, you'll learn: • How to run 70B parameter AI models on basic hardware • The simple truth about q2, q4, and q8 quantization • Which settings are perfect for YOUR specific needs • A brand new RAM-saving trick with context quantization ⏱️ Timestamps: [00:00] Introduction & Quick Overview [01:04] Why AI Models Need So Much Memory [02:00] Understanding Quantization Basics [03:20] K-Quants Explained [04:20] Performance Comparisons [04:40] Context Quantization Game-Changer [05:20] Practical Demo & Memory Savings [09:00] How to Choose the Right Model [09:50] Quick Action Steps & Conclusion 🔗 Resources mentioned: • Ollama: https://ollama.com • Our Discord Community: https://discord.gg/uS4gJMCRH2 💡 Want more AI optimization tricks? Hit subscribe and the bell - next week's video will show you even more ways to maximize your AI performance! #AIOptimization #Ollama #MachineLearning My Links 🔗 👉🏻 Subscribe (free): https://www.youtube.com/technovangelist 👉🏻 Join and Support: https://www.youtube.com/channel/UCHaF9kM2wn8C3CLRwLkC2GQ/join 👉🏻 Newsletter: https://technovangelist.substack.com/subscribe 👉🏻 Twitter: https://www.twitter.com/technovangelist 👉🏻 Discord: https://discord.gg/uS4gJMCRH2 👉🏻 Patreon: https://patreon.com/technovangelist 👉🏻 Instagram: https://www.instagram.com/technovangelist/ 👉🏻 Threads: https://www.threads.net/@technovangelist?xmt=AQGzoMzVWwEq8qrkEGV8xEpbZ1FIcTl8Dhx9VpF1bkSBQp4 👉🏻 LinkedIn: https://www.linkedin.com/in/technovangelist/ 👉🏻 All Source Code: https://github.com/technovangelist/videoprojects Want to sponsor this channel? Let me know what your plans are here: https://www.technovangelist.com/sponsor

AI Optimization Essentials

AI-recommended products based on this video

Loading...
Fit for GIGABYTE B365M AORUS Elite Micro ATX Intel B365 M.2 SSD 64G Double Channel Support 8 9 Gen LGA 1151 CPU Motherboard Gaming Motherboard

Fit for GIGABYTE B365M AORUS Elite Micro ATX Intel B365 M.2 SSD 64G Double Channel Support 8 9 Gen LGA 1151 CPU Motherboard Gaming Motherboard

(0)
$230.25
$5.54 delivery Aug 27 - Sep 18
Loading...
Pc Motherboard Fit for Gigabyte B560M AORUS Elite LGA 1200 Micro ATX Intel B560 DDR4 128G SATA M.2

Pc Motherboard Fit for Gigabyte B560M AORUS Elite LGA 1200 Micro ATX Intel B560 DDR4 128G SATA M.2

(0)
$251.41
$5.54 delivery Oct 28 - Nov 18
Loading...
STGAubron Gaming PC Desktop Computer, Intel Core i7 8th Gen up to 4.1G, GeForce RTX 3060 12G, 32GB DDR4, 2TB SSD, WiFi 6, BT 5.0, RGB Fan x9, Windows 11 Home

STGAubron Gaming PC Desktop Computer, Intel Core i7 8th Gen up to 4.1G, GeForce RTX 3060 12G, 32GB DDR4, 2TB SSD, WiFi 6, BT 5.0, RGB Fan x9, Windows 11 Home

(89)
$1,424.99
FREE delivery Mon, Feb 16
Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)
Best Seller

Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)

(78)
$6.99
FREE delivery Fri, Sep 5 on your first order
1K+ bought in past month
Loading...
100W USB C Universal Laptop Charger Fit for Lenovo MacBook HP Dell Acer Asus Thinkpad Google MSI LG Samsung Huawei, ROG Ally, Steam Deck, Chromebook Computer and All USB-C Devices

100W USB C Universal Laptop Charger Fit for Lenovo MacBook HP Dell Acer Asus Thinkpad Google MSI LG Samsung Huawei, ROG Ally, Steam Deck, Chromebook Computer and All USB-C Devices

(19)
$25.99$24.69
FREE delivery Tue, Jun 17 on your first order
100+ bought in past month
Loading...
INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

(520)
$41.42
PrimeFREE delivery Sat, Jun 14
500+ bought in past month
Loading...
Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

(213)
$12.99
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
8000mAh Hand Warmers Rechargeable 2 Pack, AI Smart Chip Long Safe Heat, Quick Charge Electric Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

8000mAh Hand Warmers Rechargeable 2 Pack, AI Smart Chip Long Safe Heat, Quick Charge Electric Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

(9)
$20.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Hand Warmers Rechargeable 2 Pack, AI Smart Chip 20Hrs Long Safe Heat, 2s Fast Heating Up to 140℉, Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

Hand Warmers Rechargeable 2 Pack, AI Smart Chip 20Hrs Long Safe Heat, 2s Fast Heating Up to 140℉, Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

(6)
$20.29
FREE delivery Sat, Jun 14 on your first order