使用Atlas 300I Duo进行pytorch训练时,报错507018
收藏回复举报
使用Atlas 300I Duo进行pytorch训练时,报错507018
t('forum.solved') 已解决
新人帖
发表于2025-06-25 17:00:15
0 查看
出现报错
 

  ************************************************************************************************************* 

    The torch.Tensor.cuda and torch.nn.Module.cuda are replaced with torch.Tensor.npu and torch.nn.Module.npu now.. 

    The torch.cuda.DoubleTensor is replaced with torch.npu.FloatTensor cause the double type is not supported now.. 

    The backend in torch.distributed.init_process_group set to hccl now.. 

    The torch.cuda.* and torch.cuda.amp.* are replaced with torch.npu.* and torch.npu.amp.* now.. 

    The device parameters have been replaced with npu in the function below: 

    torch.logspace, torch.randint, torch.hann_window, torch.rand, torch.full_like, torch.ones_like, torch.rand_like, torch.randperm, torch.arange, torch.frombuffer, torch.normal, torch._empty_per_channel_affine_quantized, torch.empty_strided, torch.empty_like, torch.scalar_tensor, torch.tril_indices, torch.bartlett_window, torch.ones, torch.sparse_coo_tensor, torch.randn, torch.kaiser_window, torch.tensor, torch.triu_indices, torch.as_tensor, torch.zeros, torch.randint_like, torch.full, torch.eye, torch._sparse_csr_tensor_unsafe, torch.empty, torch._sparse_coo_tensor_unsafe, torch.blackman_window, torch.zeros_like, torch.range, torch.sparse_csr_tensor, torch.randn_like, torch.from_file, torch._cudnn_init_dropout_state, torch._empty_affine_quantized, torch.linspace, torch.hamming_window, torch.empty_quantized, torch._pin_memory, torch.autocast, torch.load, torch.Generator, torch.set_default_device, torch.Tensor.new_empty, torch.Tensor.new_empty_strided, torch.Tensor.new_full, torch.Tensor.new_ones, torch.Tensor.new_tensor, torch.Tensor.new_zeros, torch.Tensor.to, torch.nn.Module.to, torch.nn.Module.to_empty 

    ************************************************************************************************************* 

     

  warnings.warn(msg, ImportWarning) 

/root/Ethos/python_envs/ethos3.11/lib/python3.11/site-packages/torch_npu/contrib/transfer_to_npu.py:246: RuntimeWarning: torch.jit.script and torch.jit.script_method will be disabled by transfer_to_npu, which currently does not support them, if you need to enable them, please do not use transfer_to_npu. 

  warnings.warn(msg, RuntimeWarning) 

2025-06-25 16:46:51.409 | INFO     | __main__:main:59 - Tokens per iteration per worker: 8,000 

/root/Ethos/ethos-ares-master/src/ethos/datasets/base.py:30: ResourceWarning: unclosed file <_io.BufferedReader name='/root/Ethos/data/tokenized_datasets/mimic_train/static_data.pickle'> 

  self.static_data = pickle.load((input_dir / STATIC_DATA_FN).open("rb")) 

2025-06-25 16:46:57.452 | INFO     | __main__:main:90 - Train dataset size: 322,065,298, Val dataset size: 100,000 (eval_iters=63) 

2025-06-25 16:46:57.482 | INFO     | __main__:main:130 - Model parameters: 0.34M 

.Error executing job with overrides: [] 

Traceback (most recent call last): 

  File "/root/Ethos/ethos-ares-master/src/ethos/train/run_training.py", line 158, in main 

    scaler.scale(loss).backward()  # backward pass 

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 

  File "/root/Ethos/python_envs/ethos3.11/lib/python3.11/site-packages/torch/_tensor.py", line 521, in backward 

    torch.autograd.backward( 

  File "/root/Ethos/python_envs/ethos3.11/lib/python3.11/site-packages/torch/autograd/__init__.py", line 289, in backward 

    _engine_run_backward( 

  File "/root/Ethos/python_envs/ethos3.11/lib/python3.11/site-packages/torch/autograd/graph.py", line 768, in _engine_run_backward 

    return Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass 

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 

RuntimeError: Sync:build/CMakeFiles/torch_npu.dir/compiler_depend.ts:229 NPU function error: c10_npu::acl::AclrtSynchronizeStreamWithTimeout(stream), error code is 507018 

[ERROR] 2025-06-25-16:47:56 (PID:1154042, Device:0, RankID:-1) ERR00100 PTA call acl api failed 

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtStreamSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.149.406 synchronize stream failed, runtime result = 507018[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 

DEVICE[0] PID[1154042]:  

EXCEPTION STREAM: 

  Exception info:TGID=1154042, model id=65535, stream id=2, stream phase=SCHEDULE 

  Message info[0]:RTS_HWTS: Aicpu exception, slot_id=6, stream_id=2 

    Other info[0]:time=2025-06-25-16:47:55.410.572, function=process_hwts_error_exception, line=646, error code=0x2a 

 

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace. 

[W625 16:47:56.249390283 compiler_depend.ts:487] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EZ9999: Inner Error! 

EZ9999: [PID: 1154042] 2025-06-25-16:47:56.365.711 Kernel task happen error, retCode=0x2a, [aicpu exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1356] 

        TraceBack (most recent call last): 

       Aicpu kernel execute failed, device_id=0, stream_id=2, task_id=90, errorCode=2a.[FUNC:PrintAicpuErrorInfo][FILE:davinci_kernel_task.cc][LINE:1120] 

       Aicpu kernel execute failed, device_id=0, stream_id=2, task_id=90, fault op_name=[FUNC:GetError][FILE:stream.cc][LINE:1124] 

       rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

       wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

 (function npuSynchronizeUsedDevices) 

[W625 16:47:56.251524814 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.368.300 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.253256145 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.370.058 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.254927152 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.371.795 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.256576968 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.373.429 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.258249946 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.375.102 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.259918223 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.376.772 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.261591751 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.378.449 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.263227576 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.380.092 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.264874482 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.381.748 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.266505727 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.383.372 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.268160114 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.385.027 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.269784879 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.386.658 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.271451036 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.388.305 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.273083421 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.389.953 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function npuSynchronizeDevice) 

[W625 16:47:56.274727877 compiler_depend.ts:122] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.391.604 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 

 (function empty_cache) 

[W625 16:47:56.276357912 compiler_depend.ts:469] Warning: NPU warning, error code is 507018[Error]:  

[Error]: The aicpu execution is abnormal.  

        Rectify the fault based on the error information in the ascend log. 

EH9999: Inner Error! 

        rtDeviceSynchronizeWithTimeout execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53] 

EH9999: [PID: 1154042] 2025-06-25-16:47:56.393.224 wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        TraceBack (most recent call last): 



想咨询下这个是我库安装的有问题 还是这张卡做训练就是会遇到这种问题?

我要发帖子