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
zhaoyu6
sglang
Commits
d693ec04
"vscode:/vscode.git/clone" did not exist on "b10b2e1e7f1223fcd1201f517d893a6c6d4e14c7"
Unverified
Commit
d693ec04
authored
Dec 04, 2024
by
Ke Wen
Committed by
GitHub
Dec 04, 2024
Browse files
Make torch TP composable with torch.compile (#2352)
parent
18ea841f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
python/sglang/srt/model_parallel.py
python/sglang/srt/model_parallel.py
+1
-5
No files found.
python/sglang/srt/model_parallel.py
View file @
d693ec04
...
@@ -54,11 +54,7 @@ class RowwiseParallelMaybeWait(RowwiseParallel):
...
@@ -54,11 +54,7 @@ class RowwiseParallelMaybeWait(RowwiseParallel):
).
_prepare_output_fn
(
).
_prepare_output_fn
(
output_layouts
,
use_local_output
,
mod
,
outputs
,
device_mesh
output_layouts
,
use_local_output
,
mod
,
outputs
,
device_mesh
)
)
# wait for the output to be ready
return
torch
.
distributed
.
_functional_collectives
.
wait_tensor
(
outputs
)
if
isinstance
(
outputs
,
AsyncCollectiveTensor
):
return
outputs
.
wait
()
else
:
return
outputs
def
tensor_parallel
(
def
tensor_parallel
(
...
...
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