昇腾910上CodeLlama报错Session options is not equal in diff config infos when models' weights are shared, last session options

1 系统环境

硬件环境(Ascend/GPU/CPU): Ascend910
MindSpore版本: mindspore=2.2.10
执行模式(PyNative/ Graph):不限
Python版本: Python=3.8.15
操作系统平台: linux

2 问题描述

报错信息如下

Session options is not equal in diff config infos when models' weights are shared, last session options

3 根因分析

根据日志提示,注释符号错误,不能使用分号";"

4 解决方案

检查配置.ini文件,注释配置不能用;

;[graph_kernel_param]  
;opt_level=2  
;disable_cluster_ops=MatMul,Reshape

注释配置应使用#

#[graph_kernel_param]  
#opt_level=2  
#disable_cluster_ops=MatMul,Reshape