ann-maree-hannon-3iICWN_Nmhs-unsplash

Speculative Decoding

Autoregressive decoding normally asks the target model for one token at a time. This is inefficient when each step reads a large set of weights but performs little parallel work. Speculative decoding uses a cheaper process to propose several tokens, then asks the target model to verify them together. Verification is the essential step. Greedy […]

Continue Reading
robert-bye-ymX6FQ6dAZI-unsplash

Decoding Policies in a Serving Engine

Decoding Strategies and Output Control explained how greedy decoding, sampling, beam search, stopping rules, and output constraints select tokens. This post focuses on what those choices cost in an inference engine. A decoding policy can add work after every model call, create several live sequences for one request, keep KV cache blocks alive for longer, […]

Continue Reading
kutan-ural-MZPwImQUDM0-unsplash

Model Compression Beyond Quantization

Quantization changes how model values are represented. Other compression methods reduce the number of values or the size of model structures. Pruning removes weights or structures, while knowledge distillation trains a smaller student to reproduce a teacher’s behavior. Serving a smaller model is often an effective inference optimization. It reads fewer weights and may use […]

Continue Reading
bruno-martins-DrhYt-kAe9s-unsplash

Activation and Floating-Point Quantization

Weight-Only Quantization focused on weights, which are fixed after training and can be quantized once before deployment. This post turns to tensors created during inference. Activations depend on the input token, sequence position, and previous layers. Their ranges can change from request to request, and a few channels may contain persistent outliers. This makes activation […]

Continue Reading

Machine Learning Mastery is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Visit our corporate website to learn more about our mission and team.