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

DraftAliases

DraftAliases​

class max.pipelines.speculative.DraftAliases(always=(), when_absent=())

source

Bases: object

The weights a draft inherits from its target instead of loading.

Parameters:

always​

always: tuple[str, ...] = ()

source

Prefixes the draft inherits regardless of what the checkpoint holds.

resolve()​

resolve(provided)

source

Returns the prefixes actually aliased for one draft checkpoint.

Parameters:

provided (Collection[str])

Return type:

tuple[str, …]

when_absent​

when_absent: tuple[str, ...] = ()

source

Prefixes inherited only when the checkpoint provides no weight for them.