Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9d834fdc
"src/array/vscode:/vscode.git/clone" did not exist on "8ae50c422b81de5734b971722d580c433d669fe8"
Unverified
Commit
9d834fdc
authored
Aug 10, 2025
by
Yineng Zhang
Committed by
GitHub
Aug 10, 2025
Browse files
Revert "feat: update flashinfer ar oneshot params (#8687)" (#9054)
parent
b3279251
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/layers/communicator.py
python/sglang/srt/layers/communicator.py
+1
-0
python/sglang/srt/layers/flashinfer_comm_fusion.py
python/sglang/srt/layers/flashinfer_comm_fusion.py
+1
-1
No files found.
python/sglang/srt/layers/communicator.py
View file @
9d834fdc
...
@@ -441,6 +441,7 @@ class CommunicateWithAllReduceAndLayerNormFn:
...
@@ -441,6 +441,7 @@ class CommunicateWithAllReduceAndLayerNormFn:
and
_is_flashinfer_available
and
_is_flashinfer_available
and
hasattr
(
layernorm
,
"forward_with_allreduce_fusion"
)
and
hasattr
(
layernorm
,
"forward_with_allreduce_fusion"
)
and
global_server_args_dict
[
"enable_flashinfer_allreduce_fusion"
]
and
global_server_args_dict
[
"enable_flashinfer_allreduce_fusion"
]
and
hidden_states
.
shape
[
0
]
<=
128
):
):
hidden_states
,
residual
=
layernorm
.
forward_with_allreduce_fusion
(
hidden_states
,
residual
=
layernorm
.
forward_with_allreduce_fusion
(
hidden_states
,
residual
hidden_states
,
residual
...
...
python/sglang/srt/layers/flashinfer_comm_fusion.py
View file @
9d834fdc
...
@@ -125,7 +125,7 @@ def flashinfer_allreduce_residual_rmsnorm(
...
@@ -125,7 +125,7 @@ def flashinfer_allreduce_residual_rmsnorm(
weight
:
torch
.
Tensor
,
weight
:
torch
.
Tensor
,
eps
:
float
=
1e-6
,
eps
:
float
=
1e-6
,
max_token_num
:
int
=
128
,
max_token_num
:
int
=
128
,
use_oneshot
:
Optional
[
bool
]
=
Non
e
,
use_oneshot
:
bool
=
Tru
e
,
trigger_completion_at_end
:
bool
=
False
,
trigger_completion_at_end
:
bool
=
False
,
fp32_acc
:
bool
=
False
,
fp32_acc
:
bool
=
False
,
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
...
...
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