# 日志显示没有成功加载预训练模型：model built, but weights is unloaded, since the config has no attribute or is None.

**1. 系统环境**

硬件环境\(Ascend/GPU/CPU\): Ascend

软件环境: MindSpore 版本: 2.2

执行模式： 不限

**2. 问题描述**

日志显示没有成功加载预训练模型

```
model built, but weights is unloaded, since the config has no attribute or is None.
```

**3. 解决方案**

模型mode如果为train或者finetune，则该阶段其实不需要设置checkpoint\_name\_or\_path，所以这里的日志正常，只要在load\_checkpoint设置了模型地址即可。

