Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
573915c9
Commit
573915c9
authored
Jan 22, 2026
by
zhuwenwen
Browse files
fix rn_add_forward_autograd import
parent
9ddd0f97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vllm/_custom_ops.py
vllm/_custom_ops.py
+6
-6
No files found.
vllm/_custom_ops.py
View file @
573915c9
...
@@ -18,7 +18,7 @@ try:
...
@@ -18,7 +18,7 @@ try:
except
Exception
:
except
Exception
:
print
(
"INFO: Please install lmslim if you want to infer gptq or awq or w8a8 model.
\n
"
)
print
(
"INFO: Please install lmslim if you want to infer gptq or awq or w8a8 model.
\n
"
)
try
:
try
:
import
lightop
from
lightop
import
op
except
Exception
:
except
Exception
:
print
(
"INFO: Please install lightop if you want to infer awq of marlin.
\n
"
)
print
(
"INFO: Please install lightop if you want to infer awq of marlin.
\n
"
)
...
@@ -351,20 +351,20 @@ def fused_add_rms_norm(
...
@@ -351,20 +351,20 @@ def fused_add_rms_norm(
# layer norm ops (opt)
# layer norm ops (opt)
def
rms_norm_opt
(
input
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
out
:
torch
.
Tensor
,
def
rms_norm_opt
(
input
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
out
:
torch
.
Tensor
,
epsilon
:
float
,
training
:
Optional
[
bool
]
=
False
)
->
None
:
epsilon
:
float
,
training
:
Optional
[
bool
]
=
False
)
->
None
:
light
op
.
rmsnorm_forward
(
input
,
weight
,
out
,
epsilon
,
training
)
op
.
rmsnorm_forward
(
input
,
weight
,
out
,
epsilon
,
training
)
def
rms_norm_opt_fake
(
def
rms_norm_opt_fake
(
input
:
torch
.
Tensor
,
input
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
out
:
torch
.
Tensor
,
out
:
torch
.
Tensor
,
epsilon
:
float
,
epsilon
:
float
,
training
:
Optional
[
bool
]
=
False
training
:
Optional
[
bool
]
=
False
,
)
->
torch
.
Tensor
:
)
->
torch
.
Tensor
:
return
torch
.
empty_like
(
input
)
return
torch
.
empty_like
(
input
)
def
fused_add_rms_norm_opt
(
input
:
torch
.
Tensor
,
residual
:
torch
.
Tensor
,
def
fused_add_rms_norm_opt
(
input
:
torch
.
Tensor
,
residual
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
epsilon
:
float
,
training
:
Optional
[
bool
]
=
False
,
inplace
:
Optional
[
bool
]
=
Fals
e
)
->
None
:
weight
:
torch
.
Tensor
,
epsilon
:
float
,
training
:
Optional
[
bool
]
=
False
,
inplace
:
Optional
[
bool
]
=
Tru
e
)
->
None
:
light
op
.
rn_add_forward_autograd
(
input
,
residual
,
weight
,
epsilon
,
training
,
inplace
)
op
.
rn_add_forward_autograd
(
input
,
residual
,
weight
,
epsilon
,
training
,
inplace
)
def
fused_add_rms_norm_opt_fake
(
def
fused_add_rms_norm_opt_fake
(
input
:
torch
.
Tensor
,
input
:
torch
.
Tensor
,
...
@@ -372,7 +372,7 @@ def fused_add_rms_norm_opt_fake(
...
@@ -372,7 +372,7 @@ def fused_add_rms_norm_opt_fake(
weight
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
epsilon
:
float
,
epsilon
:
float
,
training
:
Optional
[
bool
]
=
False
,
training
:
Optional
[
bool
]
=
False
,
inplace
:
Optional
[
bool
]
=
False
inplace
:
Optional
[
bool
]
=
False
,
)
->
torch
.
Tensor
:
)
->
torch
.
Tensor
:
return
torch
.
empty_like
(
input
)
return
torch
.
empty_like
(
input
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment