cerebras.modelzoo.config_manager.config_validators#

Validators for all param level validation for config classes

Functions

LossScalingFactor

Custom check for loss scaling factor values

PositiveInteger

Check if param is a positive integer

check_field_type

Validate the field against the type hint

check_loss_scaling_factor

Custom check for loss scaling factor values

check_positive_integer

Check if param is a positive integer

check_valid_bool

Check if param is a bool

check_valid_float

Check if param is a float

check_valid_integer

Check if param is a valid integer

check_valid_string

Check if param is a string

get_constraint_for_type

Get type of constraint to be added

validate_field_type

Validate the field against the type hint

validate_literal

Check if param is a valid literal