已关闭
静态图并行 mp > 1 + GQA场景,开关Ulysees序列并行精度不一致 #179
liu_luobin创建于  2024年11月29日关闭于  2024年12月30日
liu_luobin
2024年11月29日 创建

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

样例: (根据实际修改和增删)

llama网络,配置执行参数:gqa + tp > 1 + cp_ds > 1,精度不正确

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

  • Hardware Environment / 硬件环境(Mandatory / 必填):
    Hardware (e.g.Ascend910B1/Mac CPU)

    样例:

后端类型 硬件具体类别
Ascend 910B1
CPU Mac CPU/Win CPU
  • Software Environment / 软件环境 (Mandatory / 必填):
    迭代版本新增问题样例:(根据实际修改和增删)
Software Version(根据实际修改,必填)
MindSpore MindSpore 2.4.0.B011
MindFormers dev_12be3272
MindIE 1.0.RC2.B101
CANN MILAN&Florence-ASL/ABL V100R001C18SPC001B254
Python Python 3.9.3
OS platform Ubuntu 20.04
GCC/Compiler version 7.3

bugfix版本问题引入样例:(根据实际修改和增删)

Software Version(根据实际修改,必填)
MindSpore MindSpore 2.4.0.B011 (失败)master_20240713153844_a4230c71d(成功)
CANN Milan_C18/20240705(成功) Milan_C18/20240710(失败)
MindIE 1.0.RC2.B101(成功) 1.0.RC2.B101(失败)
Python Python 3.9.3
OS platform Ubuntu 20.04
GCC/Compiler version 7.3

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

  • Testcase Name/ 用例名 (Mandatory / 必填):
    -- Testcase Name(e.g.test_mf_llama_7b_wiki4096_train_cell_dp1mp4pp4mb4_910_16p_0005): *
  • Excute Mode / 执行模式 (Mandatory / 必填):
    -- Excute Mode(e.g., Graph\PyNative): *
    -- Excute Mode(e.g., O0\O1\O2):O*

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

llama,设置tp > 1 + cp_ds > 1 + kv_head_num < head_num,即可复现精度问题。

(1)get code from mindformers
(2)cd mindformers/research/qwen1_5
(3)bash ../../scripts/msrun_launcher.sh "python run_qwen1_5_long_seq.py --config research/qwen1_5/predict_qwen1_5_72b_chat.yaml --load_checkpoint /home/workspace/large_model_ckpt//qwen1_5/72b/qwen1_5_72b_chat_181 --run_mode predict --use_parallel True --do_sample False --auto_trans_ckpt False --seq_length 32768 --predict_length 32768" 8
(4)验证网络推理精度是否正常

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

开关ulysses cp精度一致。

【预期结果】:qwen1_5 推理精度正常

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

报错关键日志截图:
image

完整日志(通过附件上传):

image

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

**【定位人】**黄磊(根据实际修改)

likedislike
Lliu_luobin
2024年11月29日 创建了Bug-Report
此处折叠了20条事件消息 查看更多
AAtomGit-Bot
2025年12月14日 关联了看板:MindSpore Bug Tracking System