code: def load_config(fname: str) -> ModelConfig:
          
          config = ModelConfig.load(fname)
          logger.info('ModelConfig loaded from "%s"', fname)
          return cast(ModelConfig, config)
docs: Loads model configuration.
  
          :param fname: Path to load model configuration from.
          :return: Model configuration.