Skip to content
English

Switch theme

// Stage 6 · Inference, Deployment & Efficiency

Quantization, Pruning & Distillation

INT8/INT4, GPTQ, AWQ, SmoothQuant, BitNet and knowledge distillation.

about 8 hours7 algorithms4 paperslesson text in progress

01Goals

Do these first: Decoding, Sampling & KV Cache

02Algorithms to master

Each card has the original paper, prerequisites and resources.

03Must-read papers

04Courses & videos

05Hands-on: project, code & exercises

Free, official or author-published pages. Most run in the browser or on a free Colab GPU.

PROJECT

Quantise the same 7B model to 8, 4 and 3 bits; measure perplexity, speed and memory, and plot the trade-off.

  1. 1
    ggml-org/llama.cpp ↗Reference code

    Convert a model to GGUF, quantise to Q8/Q4 and compare speed and perplexity.

  2. 2
    huggingface.co ↗Official docs

    Load one model via bitsandbytes / GPTQ / AWQ and compare memory.

  3. 3
    hanlab.mit.edu ↗Courses

    Do the MIT 6.5940 labs (pruning, quantisation, distillation).

06Self-test

Answer in your head, then open to check.

Which is harder to quantise, weights or activations?

Activations, because of outliers.

Which weights does AWQ protect?

The salient weights tied to large-activation channels.

What information do “soft labels” carry in distillation?

The relative similarity between wrong classes.

On these routes: Algorithm Researchers

Data updated: AI algorithms & curriculum(UTC+8)