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
ArchConfigWithBoundedMaxSeqLen
ArchConfigWithBoundedMaxSeqLenβ
class max.pipelines.lib.interfaces.ArchConfigWithBoundedMaxSeqLen
Bases: object
Mixin for configs that store the received max_seq_len.
calculate_max_seq_len()β
classmethod calculate_max_seq_len(huggingface_config, model_config)
Bounds max_length by max_position_embeddings.
-
Parameters:
-
- huggingface_config (AutoConfig)
- model_config (MAXModelConfig)
-
Return type:
get_max_seq_len()β
get_max_seq_len()
Returns the maximum sequence length received at initialization.
-
Return type:
max_seq_lenβ
max_seq_len: int