name | about | labels |
---|---|---|
Bug Report | Use this template for reporting a bug | kind/bug |
910A环境,非下沉模式,resnet50网络 ,pynative模式下开启profiler,单卡训练,profiler解析耗时太长
Ascend
/GPU
/CPU
) / 硬件环境:Please delete the backend not involved / 请删除不涉及的后端:
/device ascend
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :
-- Python version (e.g., Python 3.7.5) :
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):
-- GCC/Compiler version (if compiled from source):
commit_id = '[sha1]:aa16e0b8,[branch]:(HEAD,origin/r2.3,r2.3)'
runpkg_version:Milan_C17/20240408
Excute Mode / 执行模式 (Mandatory / 必填)(PyNative
/Graph
):
Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
test_ms_mi_profiler_pynative_resnet50_1p_0001
1、取mindspore model_zoo中网络resnet50,将训练脚本中的图模式参数设置为pynative,设置为数据非下沉模式,然后开启profiler,执行网络训练,检查生成profiling数据及mindinsight展示情况
用例复现步骤:
source /home/miniconda3/bin/activate ci
export TRAIN_MODE=PYNATIVE_MODE
export DEVICE_TYPE=Ascend_Arm
export ENV_DEVICE=0
source solution_test/env_set.source -e ascend
cd solution_test/cases/03subject_test/02usability/perf_tuning/profiler_pynative
pytest -s test_ms_mi_profiler_pynative_resnet50_1p_0001.py
用例执行不能超过30分钟,训练需时5分钟左右,profiler解析耗时正常,最好20分钟内完成
训练日志: 如下几个告警步骤都耗时33分钟了
[INFO] PROFILING(5613,python):2024-04-15-14:22:56.234.356 [prof_inner_api.cpp:105] >>> (tid:5613) total_size_report [additional] read size: 924301 bytes, write size: 924301 bytes
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:22:56.488.414 [mindspore/profiler/parser/ascend_msprof_exporter.py:76] [Profiler]The msprof command was not found. Searching from environment variables...
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:45:25.226.868 [mindspore/profiler/parser/ascend_timeline_generator.py:168] Could not find cpu op file in /home/jenkins/wenli/solution_test/cases/03subject_test/02usability/perf_tuning/profiler_pynative/test_ms_mi_profiler_pynative_resnet50_1p_0001/pynative_resnet50_1p/profiler
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:51:50.519.448 [mindspore/profiler/profiling.py:1308] [Profiler]The parameter profile_memory is not supported on Ascend PyNative mode currently.
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:51:50.526.479 [mindspore/profiler/parser/memory_usage_parser.py:141] The memory file does not exist! Please ignore the warning if you are running heterogeneous training.
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:51:50.526.972 [mindspore/profiler/profiling.py:1314] The file </home/jenkins/wenli/solution_test/cases/03subject_test/02usability/perf_tuning/profiler_pynative/test_ms_mi_profiler_pynative_resnet50_1p_0001/pynative_resnet50_1p/profiler/memory_usage_0.pb> not found.
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:55:28.685.133 [mindspore/profiler/parser/msadvisor_parser.py:161] The aicore timeline file does not exist!
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:55:28.685.508 [mindspore/profiler/profiling.py:1421] MSAdvisor running failed. [ProfilerFileNotFoundException] code: 50546084, msg: The file </home/jenkins/wenli/solution_test/cases/03subject_test/02usability/perf_tuning/profiler_pynative/test_ms_mi_profiler_pynative_resnet50_1p_0001/pynative_resnet50_1p/profiler/output_timeline_data_0.txt> not found.
[WARNING] ME(5613:281472934203408,MainProcess):2024-04-15-14:55:28.686.584 [mindspore/profiler/profiling.py:1425] Pynative mode does not support MSAdvisor analyzer currently.
走给 臧庆香
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:
ms版本:commit_id = '[sha1]:13fef1e8,[branch]:(HEAD,origin/master,origin/HEAD,master)'
run包:runpkg_version:Milan_C18/20240522
master分支也存在该问题
0606进展:使用测试环境复现用例,发现网络无法跑通
与测试沟通,待此问题解决https://e.gitee.com/mind_spore/issues/list?issue=I9UIIN
报错截图:
登录 后才可以发表评论