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
WeightEntry
WeightEntry
class max.pipelines.lib.WeightEntry(checkpoint, transform)
Bases: object
Names one checkpoint’s weights in a graph.
A graph binds the names it declares and skips the rest, so an entry whose rules name a whole checkpoint serves every graph that loads part of it.
-
Parameters:
-
- checkpoint (CheckpointRole)
- transform (WeightTransform)
checkpoint
checkpoint: CheckpointRole
The checkpoint whose weights the entry names.
transform
transform: WeightTransform
The rules that name them.
with_prefix()
with_prefix(prefix)
Returns the entry with every name under prefix.
-
Parameters:
-
prefix (str) – The text every name starts with afterwards.
-
Return type: