Skip to main content

Python class

VLMContextType

VLMContextType

class max.pipelines.modeling.types.pipeline_variants.VLMContextType

source

Type variable for VLM context types, constrained to VLMTextGenerationContext.

This allows generic typing of VLM pipeline components to accept any context type that implements the VLMTextGenerationContext protocol.

alias of TypeVar(‘VLMContextType’, bound=VLMTextGenerationContext)