Repository navigation
Refactor - #1804
Open
yanwei-liu-hw wants to merge 1 commit into
Open
Refactor#1804yanwei-liu-hw wants to merge 1 commit into
yanwei-liu-hw wants to merge 1 commit into
Conversation
yanwei-liu-hw
requested review from
kisnwangg,
liuchongming74,
suteng,
yangzhenzhang02 and
yaoyifanx
as code owners
December 2, 2026 07:02
yanwei-liu-hw
commented
Dec 2, 2026
| @@ -0,0 +1,44 @@ | |||
| # Copyright 2026 Huawei Technologies Co., Ltd | |||
Author
There was a problem hiding this comment.
compressed_sparse_attention跟 vison中使用的 NativeRMSNormModule 不一样。
CSA2
weight * normalized.to(x.dtype)
Vision
(normalized * weight.float()).to(x.dtype)
所以有两个,看看怎么保留。将使用NativeRMSNormModule 都改成融合算子的rms_Norm?
yanwei-liu-hw
commented
Dec 2, 2026
yanwei-liu-hw
commented
Dec 2, 2026
yanwei-liu-hw
force-pushed
the
refactor
branch
from
December 2, 2026 08:58
6638d32 to
d9c7883
Compare
Author
|
/check-pr |
1 task done
yanwei-liu-hw
force-pushed
the
refactor
branch
from
December 2, 2026 12:25
d9c7883 to
a8962c9
Compare
Author
|
/retest |
|
🔵 The pipeline #2610 is running. Please wait a moment... (Link) |
Author
|
/check-pr |
|
Author
|
/retest |
|
🔵 The pipeline #2618 is running. Please wait a moment... (Link) |
|
yanwei-liu-hw
force-pushed
the
refactor
branch
from
December 3, 2026 11:52
a8962c9 to
de68569
Compare
Author
|
/retest |
Author
|
/retest |
|
🔵 The pipeline #2768 is running. Please wait a moment... (Link) |
|
|
yanwei-liu-hw
force-pushed
the
refactor
branch
2 times, most recently
from
December 4, 2026 12:20
04e5c26 to
0ba6060
Compare
Author
|
/retest |
|
🔵 The pipeline #2812 is running. Please wait a moment... (Link) |
|
yanwei-liu-hw
force-pushed
the
refactor
branch
from
December 4, 2026 12:29
0ba6060 to
09710d8
Compare
Author
|
/retest |
|
🔵 The pipeline #2814 is running. Please wait a moment... (Link) |
|
|
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.
Paired: GitHub #1804 ↔ GitCode !2138
What type of PR is this?
/kind refactor
What does this PR do / why do we need it:
简化公共 RMSNorm 的构造与执行接口,统一使用 hidden_size/eps 或 module=source,移除 config、use_fused_ops、cast_order、fp32_weight 等旧参数,并迁移相关调用方。
主要改动:
Which issue(s) this PR fixes:
#1812
Test Plan and Test result:
本地验证:
Special notes for your reviewers: