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
d6a856f5
Commit
d6a856f5
authored
Jun 21, 2025
by
zhuwenwen
Browse files
skip silu_and_mul_quant
parent
e87de76c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
csrc/ops.h
csrc/ops.h
+2
-2
csrc/torch_bindings.cpp
csrc/torch_bindings.cpp
+3
-3
No files found.
csrc/ops.h
View file @
d6a856f5
...
@@ -260,8 +260,8 @@ void rotary_embedding_tgi(
...
@@ -260,8 +260,8 @@ void rotary_embedding_tgi(
void
silu_and_mul
(
torch
::
Tensor
&
out
,
torch
::
Tensor
&
input
);
void
silu_and_mul
(
torch
::
Tensor
&
out
,
torch
::
Tensor
&
input
);
void
silu_and_mul_quant
(
torch
::
Tensor
&
out
,
torch
::
Tensor
&
input
,
//
void silu_and_mul_quant(torch::Tensor& out, torch::Tensor& input,
torch
::
Tensor
&
scale
);
//
torch::Tensor& scale);
void
mul_and_silu
(
torch
::
Tensor
&
out
,
torch
::
Tensor
&
input
);
void
mul_and_silu
(
torch
::
Tensor
&
out
,
torch
::
Tensor
&
input
);
...
...
csrc/torch_bindings.cpp
View file @
d6a856f5
...
@@ -259,9 +259,9 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
...
@@ -259,9 +259,9 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops
.
def
(
"silu_and_mul(Tensor! result, Tensor input) -> ()"
);
ops
.
def
(
"silu_and_mul(Tensor! result, Tensor input) -> ()"
);
ops
.
impl
(
"silu_and_mul"
,
torch
::
kCUDA
,
&
silu_and_mul
);
ops
.
impl
(
"silu_and_mul"
,
torch
::
kCUDA
,
&
silu_and_mul
);
ops
.
def
(
//
ops.def(
"silu_and_mul_quant(Tensor! result, Tensor input, Tensor scale) -> ()"
);
//
"silu_and_mul_quant(Tensor! result, Tensor input, Tensor scale) -> ()");
ops
.
impl
(
"silu_and_mul_quant"
,
torch
::
kCUDA
,
&
silu_and_mul_quant
);
//
ops.impl("silu_and_mul_quant", torch::kCUDA, &silu_and_mul_quant);
ops
.
def
(
"mul_and_silu(Tensor! out, Tensor input) -> ()"
);
ops
.
def
(
"mul_and_silu(Tensor! out, Tensor input) -> ()"
);
ops
.
impl
(
"mul_and_silu"
,
torch
::
kCUDA
,
&
mul_and_silu
);
ops
.
impl
(
"mul_and_silu"
,
torch
::
kCUDA
,
&
mul_and_silu
);
...
...
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