IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

source

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)

source

Bounds max_length by max_position_embeddings.

Parameters:

Return type:

int

get_max_seq_len()​

get_max_seq_len()

source

Returns the maximum sequence length received at initialization.

Return type:

int

max_seq_len​

max_seq_len: int

source