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
ArchConfigWithBoundedMaxSeqLen
ArchConfigWithBoundedMaxSeqLenβ
class max.pipelines.lib.interfaces.ArchConfigWithBoundedMaxSeqLen
Bases: object
Mixin for configs that store a bounded max_seq_len computed at init.
calculate_max_seq_len()β
classmethod calculate_max_seq_len(pipeline_config, huggingface_config, model_config=None)
Bounds max_length by max_position_embeddings.
-
Parameters:
-
- pipeline_config (PipelineConfig)
- huggingface_config (AutoConfig)
- model_config (MAXModelConfig | None)
-
Return type:
get_max_seq_len()β
get_max_seq_len()
Returns the maximum sequence length computed during initialization.
-
Return type:
max_seq_lenβ
max_seq_len: int
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!