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
ArchConfigWithPermissiveMaxSeqLen
ArchConfigWithPermissiveMaxSeqLenβ
class max.pipelines.lib.interfaces.ArchConfigWithPermissiveMaxSeqLen
Bases: object
Mixin for configs that honor max_length without bounding.
calculate_max_seq_len()β
classmethod calculate_max_seq_len(huggingface_config, model_config)
Uses max_length when set, else 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_position_embeddingsβ
max_position_embeddings: int