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
CheckpointerFactory
CheckpointerFactory
class max.pipelines.kv_cache.checkpoint.CheckpointerFactory
Bases: object
Builds a checkpointer once every query its context needs is provided.
build()
build()
Returns the checkpointer.
-
Raises:
-
ValueError – If the checkpointer is enabled and lacks a candidate query.
-
Return type:
disabled()
disabled()
Makes the checkpointer drop every event.
-
Return type:
with_candidate_at_or_before()
with_candidate_at_or_before(query)
Sets the query that answers the context’s candidates.
with_heuristics()
with_heuristics(*heuristics)
Adds heuristics for the checkpointer to run.
-
Parameters:
-
heuristics (Heuristic)
-
Return type: