Repository navigation
fix(xing_4): 拒绝未被消费的 SwiGLU 训练策略 - #363
Draft
xingleixu123 wants to merge 1 commit into
Draft
xingleixu123 wants to merge 1 commit into
xingleixu123 wants to merge 1 commit into
Conversation
Reject nonempty activation options until the model forwards their semantics. Reuse the fixed-recipe boundary and preserve the default training configuration.
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
What does this PR do / why do we need it:
mindspore-ai#1477 的
create_config会接受非空swiglu_limit与swiglu_compute_dtype,但当前构造的官方 dense/shared MLP 和公共 GroupedExperts 不消费这两个配置,训练会静默采用默认激活。复用现有固定训练配置的边界,仅在
_REQUIRED_OPTIONS中增加两项None:缺省或显式空值保持原行为,非空策略在构造前明确拒绝。没有新增激活实现、逐专家校验、CPU 分支或算子替换。当前 MF→HP 基线两项均为空。对其完整 model.config,用实际配置类和真实
create_config前后验证,112 个解析字段完全一致;不改变模型、优化器、精度或训练超参。这是基于 主仓 #1477 head
eb1121470917789ce641e3f12b4b6bad65b6ba54的 stacked Draft。相对 JT 的refactor/xing4-construct-time-modules仅 1 文件、2 行逻辑;不重复带入或改写 mindspore-ai#1477/mindspore-ai#1439 的提交和检视。公共 SwiGLU 策略能力仍复用 JT #356,不能仅合入该公共能力就宣称模型已传递对应策略。Which issue(s) this PR fixes:
关联已有 mindspore-ai#1456 的激活策略语义问题,记录 mindspore-ai#1477 构造期改造后的新反例,避免重复问题单。
总跟踪:JT #362。
Test Plan and Test result:
Code review checklist [illustration]: