For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Python class
ArchVLConfigWithTextSubconfig
ArchVLConfigWithTextSubconfigβ
class max.pipelines.lib.interfaces.ArchVLConfigWithTextSubconfig
Bases: object
Mixin for VLMs that embed a language-model arch config.
Annotate llm_config or text_config with the text arch type;
otherwise ArchConfigWithStoredKVParams is used (Pixtral). The HF
subconfig is read from text_config or llm_config on the HuggingFace
config (MAX field names need not match HF attribute names).
Override construct_kv_params() / calculate_max_seq_len() when
resolution is dynamic (e.g. InternVL) or semantics differ (e.g. Gemma4 KV).
calculate_max_seq_len()β
classmethod calculate_max_seq_len(pipeline_config, huggingface_config, model_config=None)
Delegates to the annotated text config class.
-
Parameters:
-
- pipeline_config (PipelineConfig)
- huggingface_config (AutoConfig)
- model_config (MAXModelConfig | None)
-
Return type:
construct_kv_params()β
classmethod construct_kv_params(huggingface_config, pipeline_config, devices, kv_cache_config, cache_dtype)
Delegates to the annotated text config class.
-
Parameters:
-
- huggingface_config (AutoConfig)
- pipeline_config (PipelineConfig)
- devices (list[DeviceRef])
- kv_cache_config (KVCacheConfig)
- cache_dtype (DType)
-
Return type:
get_max_seq_len()β
get_max_seq_len()
Returns the maximum sequence length from the embedded text config.
-
Return type:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!