2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

 / 详情

[ST][MS][910A]pangu_alpha网络在910A上8卡模式非pipeline场景训练存在接口弃用告警

DONE
Bug-Report
创建于  
2024-04-15 17:11
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

pangu_alpha网络在910A上8卡模式训练存在接口弃用告警
网络路径:https://e.gitee.com/mind_spore/repos/mindspore/models/tree/master/official/nlp/Pangu_alpha

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(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):
    失败版本:r2.3_aa16e0b8 Milan_C17/20240408

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

用例路径:solution_test/cases/01frame_func/19large_model_feature_test/distributed_training_capability
关联用例:test_ms_large_model_data_parallel_004.py

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

1、修改models仓盘古脚本的src/pangu_alpha_config.py文件,其中2.6B的参数args_opt.op_level_model_parallel_num从1 2 4 8中随机生成
2、将train.py中所有的PipelineCell替换为GradAccumulationCell
3、启动训练:bash scripts/run_distribute_train.sh /home/workspace/mindspore_dataset/pangu-data/pangu_30_step_bs64/ /home/workspace/config/hccl_8p.json 8 fp16 2.6B 1 4 8 0 8
4、检查loss收敛情况,以及检查日志无报错

Describe the expected behavior / 预期结果 (Mandatory / 必填)

loss收敛正常,日志无报错

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

1 mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_collective_comm_lib.cc:126] Initialize] Launch Ascend distributed job in RankTable manner. This manner will be deprecated in later version of MindSpore. 
1 mindspore/common/_decorator.py:40] 'Parameter' is deprecated from version 2.3 and will be removed in a future version, use 'add_pipeline_stage' instead.

Special notes for this issue/备注 (Optional / 选填)

走给刘崇鸣

评论 (4)

baimz 创建了Bug-Report
baimz 添加了
 
kind/bug
标签
baimz 添加了
 
attr/function
标签
baimz 添加了
 
stage/coding
标签
baimz 添加了
 
v2.3.0.rc2
标签
baimz 添加了
 
sig/parallel
标签
展开全部操作日志

Please assign maintainer to check this issue.
请为此issue分配处理人。
@baimz

感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
  1. 如果您遇到动态图问题,可以设置set_context(pynative_synchronize=True)查看报错栈协助定位
  2. 模型精度调优问题可参考官网调优指南
  3. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  4. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review
duanjiali 添加协作者duanjiali
duanjiali 负责人duanjiali 修改为刘崇鸣
fangwenyi 移除了
 
v2.3.0.rc2
标签
fangwenyi 移除了
 
v2.3.0.rc2
标签
fangwenyi 添加了
 
v2.3.0
标签
baimz 添加了
 
v2.3.0.rc2
标签
刘崇鸣 任务状态TODO 修改为WIP

根因:弃用接口告警
修改:models中对应脚本已适配
是否需要增加ut、st:不需要

tanghuikang 任务状态WIP 修改为VALIDATION
tanghuikang 负责人刘崇鸣 修改为baimz
tanghuikang 添加协作者刘崇鸣
tanghuikang 添加了
 
rct/refactor
标签
tanghuikang 添加了
 
rca/others
标签
tanghuikang 添加了
 
ctl/solutiontest
标签

回归版本:
master_20240505061518_ba6602334 Milan_C17/20240414
回归步骤:参考issue步骤
测试结论:回归通过

INFO 2024-05-05 21:03:02 - test_ms_large_model_data_parallel_004 - process_handle.py:is_process_exist:173 - No residual processes need to be cleaned.
INFO 2024-05-05 21:03:02 - test_ms_large_model_data_parallel_004 - base.py:teardown:140 - The base teardown is running


=============================================================================== warnings summary ================================================================================
/home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:549
  /home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
    setattr(self, word, getattr(machar, word).flat[0])

/home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:89
  /home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
    return self._float_to_str(self.smallest_subnormal)

/home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:549
  /home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
    setattr(self, word, getattr(machar, word).flat[0])

/home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:89
  /home/miniconda3/envs/feature_39/lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
    return self._float_to_str(self.smallest_subnormal)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=================================================================== 1 passed, 4 warnings in 811.55s (0:13:31) ===================================================================
[INFO] RUNTIME(58676,python):2024-05-05-21:03:03.401.924 [runtime.cc:1831] 58676 ~Runtime: deconstruct runtime
[INFO] RUNTIME(58676,python):2024-05-05-21:03:03.401.976 [runtime.cc:1838] 58676 ~Runtime: wait monitor success, use=0.

回归人员:白梦真
回归时间:2024.05.05

i-robot 添加了
 
docs
标签
baimz 任务状态VALIDATION 修改为DONE
fangwenyi 移除了
 
v2.3.0.rc2
标签
fangwenyi 添加了
 
master
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
6574048 hulktang 1584443870 6579380 liuchongming74 1593503138
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助