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=())
Bases: object
The weights a draft inherits from its target instead of loading.
always
Prefixes the draft inherits regardless of what the checkpoint holds.
resolve()
resolve(provided)
Returns the prefixes actually aliased for one draft checkpoint.
-
Parameters:
-
provided (Collection[str])
-
Return type:
when_absent
Prefixes inherited only when the checkpoint provides no weight for them.