Version 1.1 · 142 pages · ISBN 978-0-00-100004-3 · 12 August 2026 · 10.xxxx/ctm.bk.2026.0004
Lecture notes from a graduate course on making transformer inference fast and small: attention variants, caching, speculative decoding, quantisation, batching and scheduling. Includes problem sets and a reading list.
Version 1 · 5 November 2026 · 10.xxxx/ctm.pp.2026.0009
Speculative decoding accelerates generation by letting a small draft model propose tokens that a larger model verifies, but the draft model competes with the target model for scarce memory on edge devices. We characterise the trade-off between draft-model size, speed-up and memory footprint, and propose a draft that shares the target model's embedding table and lower layers. The shared draft reduces extra memory from 11% to 3% of the target model and retains 88% of the speed-up of an independent draft.
SEODML 2026 · pp. 11–20 · 1 October 2026 · 10.xxxx/ctm.pr.2026.0007
Long conversations on a phone are limited by the size of the key-value cache. We compare eviction, quantisation and merging strategies under hard memory budgets and find that a hybrid of merging and 8-bit storage keeps perplexity within 3% at one quarter of the memory.
Version 1 · 1 reviewer report · 28 August 2026 · 10.xxxx/ctm.pb.2026.0006
Running assistant-grade language models on phones requires both small models and low-precision arithmetic, yet distillation and quantisation are usually applied one after the other. We train a 1.3B-parameter student with distillation losses computed through simulated 4-bit quantisation, so that the student learns to be robust to its own rounding error. Compared with distilling first and quantising afterwards, the joint procedure recovers 41% of the accuracy lost to 4-bit quantisation, reaches 94% of the full-precision student on a suite of assistant tasks, and runs 3.1× faster on a mid-range mobile processor.