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
DeepEP
Commits
a0c69317
Unverified
Commit
a0c69317
authored
Apr 14, 2025
by
Chenggang Zhao
Committed by
GitHub
Apr 14, 2025
Browse files
Merge pull request #118 from andylin-hao/main
Fix test combine args
parents
b9bb2bba
23c54150
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tests/test_internode.py
tests/test_internode.py
+1
-1
tests/test_intranode.py
tests/test_intranode.py
+1
-1
No files found.
tests/test_internode.py
View file @
a0c69317
...
@@ -143,7 +143,7 @@ def test_main(num_sms: int, local_rank: int, num_local_ranks: int, num_ranks: in
...
@@ -143,7 +143,7 @@ def test_main(num_sms: int, local_rank: int, num_local_ranks: int, num_ranks: in
if
with_topk
:
if
with_topk
:
combine_args
.
update
({
'topk_weights'
:
recv_topk_weights
})
combine_args
.
update
({
'topk_weights'
:
recv_topk_weights
})
if
previous_mode
:
if
previous_mode
:
dispatch
_args
.
update
({
'previous_event'
:
buffer
.
capture
()})
combine
_args
.
update
({
'previous_event'
:
buffer
.
capture
()})
combined_x
,
combined_topk_weights
,
event
=
buffer
.
combine
(
**
combine_args
)
combined_x
,
combined_topk_weights
,
event
=
buffer
.
combine
(
**
combine_args
)
event
.
current_stream_wait
()
if
async_mode
else
()
event
.
current_stream_wait
()
if
async_mode
else
()
check_x
=
combined_x
.
float
()
/
is_token_in_rank
.
sum
(
dim
=
1
).
unsqueeze
(
1
)
check_x
=
combined_x
.
float
()
/
is_token_in_rank
.
sum
(
dim
=
1
).
unsqueeze
(
1
)
...
...
tests/test_intranode.py
View file @
a0c69317
...
@@ -127,7 +127,7 @@ def test_main(num_sms: int, local_rank: int, num_ranks: int, rank: int, buffer:
...
@@ -127,7 +127,7 @@ def test_main(num_sms: int, local_rank: int, num_ranks: int, rank: int, buffer:
if
with_topk
:
if
with_topk
:
combine_args
.
update
({
'topk_weights'
:
recv_topk_weights
})
combine_args
.
update
({
'topk_weights'
:
recv_topk_weights
})
if
previous_mode
:
if
previous_mode
:
dispatch
_args
.
update
({
'previous_event'
:
buffer
.
capture
()})
combine
_args
.
update
({
'previous_event'
:
buffer
.
capture
()})
combined_x
,
combined_topk_weights
,
event
=
buffer
.
combine
(
**
combine_args
)
combined_x
,
combined_topk_weights
,
event
=
buffer
.
combine
(
**
combine_args
)
event
.
current_stream_wait
()
if
async_mode
else
()
event
.
current_stream_wait
()
if
async_mode
else
()
check_x
=
combined_x
.
float
()
/
is_token_in_rank
.
sum
(
dim
=
1
).
unsqueeze
(
1
)
check_x
=
combined_x
.
float
()
/
is_token_in_rank
.
sum
(
dim
=
1
).
unsqueeze
(
1
)
...
...
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