cerebras.modelzoo.config_manager.config_loader.create_config_obj_from_params#

cerebras.modelzoo.config_manager.config_loader.create_config_obj_from_params(params_dict, model_name)[source]#

Convert given dictionary to a config object based on the model name.

Parameters
  • params_dict (dict) – The config params passed as a dict.

  • model_name (str) – The model name to be used for getting the config class from registry.

Returns

The validated config class instance.

Return type

cerebras.modelzoo.config_manager.config_classes.base.base_config.BaseConfig