IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python module

max.pipelines.speculative.spec_target

The target-side contract a spec-decode driver verifies through.

A target is the model being verified, so nothing here depends on how the draft proposes. The drafting strategy shows up in one place only: which batch type the driver hands SpecDecodeTarget.verify().

Target interface​

SpecDecodeTargetThe target model's entry point and output layout.
VerifiedWhat the target contributes: verification logits and hidden states.