course.md
Speculative and MoE Systems Lab
Course Contract
Speculative and MoE Systems Lab is an advanced implementation course for techniques that change real inference economics: quantization, speculative decoding, MoE routing, paged cache allocation, and reproducible benchmark evidence.
The course assumes the learner can already build or read a small decoder path. It focuses on interventions that are easy to talk about and hard to implement correctly.
Audience
Engineers who completed NanoTransformer in MLX or have equivalent from-scratch transformer experience.
Prerequisites
- NanoTransformer in MLX
- Local AI Model Systems Advanced Lab
- Comfort reading MLX, vLLM, or serving-runtime code
Course Outcome
By the end, the learner has implemented small versions of the systems ideas behind modern inference optimization and can write a defensible evidence report about when each idea helps or hurts.
Chapters
- Quantization Internals
- Speculative Decoding Beyond DFlash
- MoE Routing and Load Forensics
- Cache Allocation, Runtime Comparison, and Evidence
Source-First Rule
This course is assessed through runnable artifacts, traces, and systems memos. Platform lessons are optional wrappers around the artifact contract.