Skip to main content
Module 12 · Lesson 3 of 447/48 in the course~20 min
Module lessons (3/4)

Weight Quantization: GGUF, AWQ & FP8

Lesson preview3 hands-on exercises readyAI Engineering & Production RAG · Module 12 — Local Serving, Quantization & Speculative Decoding

Compressing model weights from FP16 to FP8 and INT4; preserving salient activation channels with AWQ.

What you'll learn in this lesson

  • Understand model weight quantization techniques: FP16, FP8, INT8, and INT4 (AWQ & GPTQ).
  • Master Activation-aware Weight Quantization (AWQ) and why protecting salient channels preserves model intelligence.
  • Calculate memory footprints, compression ratios, and memory bandwidth requirements in Python.
  • Implement uniform quantization scale and zero-point estimators from scratch.

Overview

Deploying a 70-billion-parameter foundation model in full FP16 precision requires:

This requires two expensive 80GB NVIDIA H100 GPUs just to load the model weights, before allocating a single megabyte for the KV-cache!

Sections covered in this lesson

  1. 1Model Quantization: Fitting Giant Models on Standard GPUs
  2. 2Activation-Aware Weight Quantization (AWQ)
  3. 3Uniform Quantization Equation
  4. 4Check Your Understanding
  5. 5Practice: Footprint Math & Quantization Scales in Python
Pro Lesson · Module 12 — Local Serving, Quantization & Speculative Decoding

Unlock "Weight Quantization: GGUF, AWQ & FP8" and the full AI Engineering & Production RAG curriculum

Compressing model weights from FP16 to FP8 and INT4; preserving salient activation channels with AWQ.

Unlock all 3 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in AI Engineering & Production RAG plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.