Python class
ArchConfig
ArchConfigโ
class max.pipelines.lib.interfaces.ArchConfig(*args, **kwargs)
Bases: Protocol
Config for a model architecture.
get_max_seq_len()โ
get_max_seq_len()
Returns the default maximum sequence length for the model.
Subclasses should determine whether this value can be overridden by
setting the --max-length (pipeline_config.model.max_length) flag.
-
Return type:
initialize()โ
classmethod initialize(pipeline_config)
Initialize the config from a PipelineConfig.
-
Parameters:
-
pipeline_config (PipelineConfig)
-
Return type:
-
Self
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!