def METHOD_NAME(cls, **kwargs):
    model_file = kwargs.get('am_model_name', ModelFile.TORCH_MODEL_FILE)
    ckpt_path = os.path.join(kwargs['model_dir'], model_file)
    logger.info(f'loading model from {ckpt_path}')
    model_dir = kwargs.pop('model_dir')
    model = cls(**kwargs)
    ckpt_path = os.path.join(model_dir, model_file)
    model.load_state_dict(torch.load(ckpt_path, map_location='cpu'))
    return model