大模型onnx模型转om报错E40021: Failed to compile Op
收藏回复举报
大模型onnx模型转om报错E40021: Failed to compile Op
t('forum.solved') 已解决
发表于2024-07-24 14:03:00
0 查看

大模型onnx转om报如下错误,使用msit工具analyze功能分析,算子都是支持的,plog日志中没有error

执行命令:atc --model=result.onnx --framework=5 --output=./output/result --soc_version=Ascend310B4

ATC run failed, Please check the detail log, Try 'atc --help' for more information 

E40021: Failed to compile Op [/llm/model/layers.39/self_attn/Slice,[/llm/model/layers.39/self_attn/Slice,/llm/model/layers.39/self_attn/Slice]]. (oppath: [Compile /home/limengkui/Ascend/ascend-toolkit/7.0.RC1/opp/built-in/op_impl/ai_core/tbe/impl/strided_slice_d.py failed with errormsg/stack: File "/home/limengkui/Ascend/ascend-toolkit/7.0.RC1/python/site-packages/tbe/tvm/error_mgr/tbe_python_error_mgr.py", line 112, in raise_tbe_python_err 

    raise TBEPythonError(args_dict) 

 

tvm.error_mgr.tbe_python_error_mgr.TBEPythonError: [EB9999] [errClass:N/A][errCode:EB9999][message:compile error In file included from <built-in>:1:In file included from /home/limengkui/Ascend/ascend-toolkit/7.0.RC1/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:39:/home/limengkui/Ascend/ascend-toolkit/7.0.RC1/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_types.h:19:2: warning: The vector size is manually reset. [-W#warnings]#warning The vector size is manually reset. ^In file included from <built-in>:1:In file included from /home/limengkui/Ascend/ascend-toolkit/7.0.RC1/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:68:/home/limengkui/Ascend/ascend-toolkit/7.0.RC1/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_intrinsics.h:20:10: fatal error: \'type_traits\' file not found#include <type_traits>         ^~~~~~~~~~~~~1 warning and 1 error generated.:][errPcause:N/A][errSolution:N/A]During handling of the above exception, another exception occurred:tvm.error_mgr.tbe_python_error_mgr.TBEPythonError: [errClass:N/A][errCode:EB9999][message:compile cce error : ][errPcause:N/A][errSolution:N/A]', 'errPcause': ' ', 'errSolution': ' '} 

], optype: [StridedSliceD]) 

        Solution: See the host log for details, and then check the Python stack where the error log is reported. 

        TraceBack (most recent call last): 

        Compile op[/llm/model/layers.39/self_attn/Slice,[/llm/model/layers.39/self_attn/Slice,/llm/model/layers.39/self_attn/Slice]] failed, oppath[/home/limengkui/Ascend/ascend-toolkit/7.0.RC1/opp/built-in/op_impl/ai_core/tbe/impl/strided_slice_d.py], optype[StridedSliceD], taskID[313]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:763] 

        Failed to compile Op [trans_TransData_3997,]. (oppath: [Compile /home/limengkui/Ascend/ascend-toolkit/7.0.RC1/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/trans_data.py failed with errormsg/stack: File "/home/limengkui/Ascend/ascend-toolkit/7.0.RC1/python/site-packages/tbe/tvm/error_mgr/tbe_python_error_mgr.py", line 112, in raise_tbe_python_err 

    raise TBEPythonError(args_dict) 

我要发帖子