Skip to content

Commit

Permalink
modify rms norm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzefeng92 committed Apr 1, 2024
1 parent 27da2ec commit 3f894a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deeplink_ext/common/rms_norm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .deeplink import rms_norm_out, rms_norm, rms_norm_backward_out, rms_norm_backward


all = ["rms_norm_out", "rms_norm", "rms_norm_backward_out", "rms_norm_backward"]
all = ["rms_norm_out", "rms_norm", "rms_norm_backward_out", "rms_norm_backward"]
1 change: 0 additions & 1 deletion deeplink_ext/common/rms_norm/deeplink.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ def rms_norm_backward(input, grad_output, inv_rms, normalized_shape, weight, bia
)

return [grad_input, grad_weight, grad_bias]

1 change: 1 addition & 0 deletions deeplink_ext/patch_lightllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def patch_token_softmax_reducev_inference():

def patch_rms_norm_lightllm():
from .common.rms_norm.deeplink import rms_norm

rms_norm_pack.rmsnorm_forward = rms_norm

def patch_rotary_emb():
Expand Down

0 comments on commit 3f894a2

Please sign in to comment.