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 class

EagleDraftAdapter

EagleDraftAdapter​

class max.pipelines.speculative.eagle.EagleDraftAdapter(draft, hidden_dim)

source

Bases: EagleProposer

Adapts a registered EAGLE’s typed calls to the existing driver.

Parameters:

prefill()​

prefill(batch, tokens, target_hidden)

source

Runs the initial draft call over the corrected target window.

Parameters:

Return type:

Proposed

step()​

step(batch, draft_input, index)

source

Runs a later draft call using the previous hidden carry.

Parameters:

Return type:

Proposed