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
RetrievedPipeline
RetrievedPipelineβ
class max.pipelines.lib.registry.RetrievedPipeline(tokenizer, factory, memory_plan)
Bases: object
Everything PipelineRegistry.retrieve_factory() resolves.
Carries the tokenizer, a factory that constructs the pipeline, and the memory plan the pipeline was sized against.
-
Parameters:
-
- tokenizer (PipelineTokenizer[Any, Any, Any])
- factory (Callable[[], Pipeline[Any, Any]])
- memory_plan (MemoryPlan)
factoryβ
Zero-argument callable that constructs the pipeline instance.
memory_planβ
memory_plan: MemoryPlan
Memory plan (batch size, sequence length, and cache budgets) the pipeline was sized against.
tokenizerβ
tokenizer: PipelineTokenizer[Any, Any, Any]
Tokenizer paired with the pipeline.