glm5.3_flash补丁失败

Open
#10,378 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

The entry point is python -m mcore_bridge.tools.apply_megatron_patch, and the two error messages come from its target checks: "Partially applied patch; no target files changed" and "Missing or symlinked patch target" for megatron/core/ssm/gated_delta_net/kda.py. Start by reading how the tool decides a target is present and why install order changes that result. Done means the patch applies cleanly whether mcore_bridge or megatron is installed first. The reproduction command is cut off, so confirm it before testing.

Written by the indexing model from the issue text.

Description

bug
Checklist / 检查清单
  • I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述

打补丁失败:

  1. 先安装megatron-lm后安装mcore_bridge报错
    Partially applied patch; no target files changed: /opt/nas/p/conda/envs/tcxia_swift_head/lib/python3.12/site-packages
  2. 先安装mcore_bridge后安装megatron报错
    Missing or symlinked patch target: /opt/nas/p/conda/envs/tcxia_swift_head/lib/python3.12/site-packages/megatron/core/ssm/gated_delta_net/kda.py
How to Reproduce / 如何复现

python -m mcore_bridge.tools.apply_megatron_patch &&
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 megatron sft \

Additional Information / 补充信息

No response

Dominant language
Python
Stars
16.2k
Forks
1.8k
Avg merge
1d 14h
Merged PRs (30d)
68

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelscope/ms-swift

All issues in modelscope/ms-swift

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.