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
7b203b76
Unverified
Commit
7b203b76
authored
Feb 19, 2025
by
youkaichao
Committed by
GitHub
Feb 18, 2025
Browse files
[misc] fix debugging code (#13487)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
4fb8142a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/source/getting_started/troubleshooting.md
docs/source/getting_started/troubleshooting.md
+4
-4
No files found.
docs/source/getting_started/troubleshooting.md
View file @
7b203b76
...
@@ -94,20 +94,20 @@ pynccl.disabled = False
...
@@ -94,20 +94,20 @@ pynccl.disabled = False
s
=
torch
.
cuda
.
Stream
()
s
=
torch
.
cuda
.
Stream
()
with
torch
.
cuda
.
stream
(
s
):
with
torch
.
cuda
.
stream
(
s
):
data
.
fill_
(
1
)
data
.
fill_
(
1
)
pynccl
.
all_reduce
(
data
,
stream
=
s
)
out
=
pynccl
.
all_reduce
(
data
,
stream
=
s
)
value
=
data
.
mean
().
item
()
value
=
out
.
mean
().
item
()
assert
value
==
world_size
,
f
"Expected
{
world_size
}
, got
{
value
}
"
assert
value
==
world_size
,
f
"Expected
{
world_size
}
, got
{
value
}
"
print
(
"vLLM NCCL is successful!"
)
print
(
"vLLM NCCL is successful!"
)
g
=
torch
.
cuda
.
CUDAGraph
()
g
=
torch
.
cuda
.
CUDAGraph
()
with
torch
.
cuda
.
graph
(
cuda_graph
=
g
,
stream
=
s
):
with
torch
.
cuda
.
graph
(
cuda_graph
=
g
,
stream
=
s
):
pynccl
.
all_reduce
(
data
,
stream
=
torch
.
cuda
.
current_stream
())
out
=
pynccl
.
all_reduce
(
data
,
stream
=
torch
.
cuda
.
current_stream
())
data
.
fill_
(
1
)
data
.
fill_
(
1
)
g
.
replay
()
g
.
replay
()
torch
.
cuda
.
current_stream
().
synchronize
()
torch
.
cuda
.
current_stream
().
synchronize
()
value
=
data
.
mean
().
item
()
value
=
out
.
mean
().
item
()
assert
value
==
world_size
,
f
"Expected
{
world_size
}
, got
{
value
}
"
assert
value
==
world_size
,
f
"Expected
{
world_size
}
, got
{
value
}
"
print
(
"vLLM NCCL with cuda graph is successful!"
)
print
(
"vLLM NCCL with cuda graph is successful!"
)
...
...
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