cerebras.modelzoo.config_manager.config_classes.base.base_config#

Base implementation for config classes with helper modules

Functions

config_field

Custom field definition for config to abstract metadata usage :param default: Default value expected for the field :param constraint: The function to be invoked to set constraints to the parameter value

get_class_type

get_member_type_hints

Iterates over all members of a class and extracts their type hints.

is_union_type_hint

Check if Union type

set_constraint

Set the required constraint type if not already set

Classes

BaseConfig

This class represents a Base Model config, inherited by sub config classes