-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Auto-Parallel] Reshard API & Hybrid Parallel Unitest for dy2static mode #59856
[Auto-Parallel] Reshard API & Hybrid Parallel Unitest for dy2static mode #59856
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
@@ -164,7 +164,7 @@ def test_simple_net_hybrid_strategy(self): | |||
class TestSemiAutoParallelLlama3D(test_base.CommunicationTestDistBase): | |||
def setUp(self): | |||
super().setUp(num_of_devices=8, timeout=200, nnode=1) | |||
self._default_envs = {"dp": "2", "mp": "2", "pp": "2", "acc_step": "2"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在acc_step=2是会挂吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acc_step 需要strategy支持
@@ -501,7 +501,7 @@ def _prepare_decoder_attention_mask( | |||
combined_attention_mask = dist.shard_tensor( | |||
combined_attention_mask, | |||
get_mesh(), | |||
[dist.Shard(0), dist.Replicate()], | |||
[dist.Replicate(), dist.Replicate()], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change to Replicate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
单测超时时间设置
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for _c_ops
PR types
Function optimization
PR changes
Others
Description
Pcard-76459
Reshard API in dy2static mode
MP-SP-DP-PP Hybrid Parallelism in dy2static mode