AI engineering glossary · Inference serving optimisation

What is prompt lookup decoding?

Prompt lookup decoding: A simple speculative technique that needs no draft model: it finds the latest words of the output in the prompt and proposes the words that followed them there as guesses. It works well when answers copy from the input, such as summaries or code edits.

Level: advancedTopic: Inference serving optimisation

Prompt lookup decoding: an example

When rewriting a document with small edits, most output tokens are copied runs from the prompt and are accepted in bulk.

Related terms

More Inference serving optimisation terms

Where you learn it

Prompt lookup decoding is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.