-
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
[fleet_executor] Parse pipeline config #37319
[fleet_executor] Parse pipeline config #37319
Conversation
Thanks for your contribution! |
@@ -27,4 +27,6 @@ message FleetExecutorDesc { | |||
optional int32 dp_degree = 4 [ default = 1 ]; | |||
optional int32 mp_degree = 5 [ default = 1 ]; | |||
optional int32 pp_degree = 6 [ default = 1 ]; | |||
optional int64 num_micro_batches = 7 [ default = 1 ]; |
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.
大概不是num_micro_steps?
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.
这个在python端就是global batch size / micro batch size,所以叫num_mircro_batches?一共有多少个mirco batch?其实就是num_micro_steps
@@ -27,4 +27,6 @@ message FleetExecutorDesc { | |||
optional int32 dp_degree = 4 [ default = 1 ]; | |||
optional int32 mp_degree = 5 [ default = 1 ]; | |||
optional int32 pp_degree = 6 [ default = 1 ]; | |||
optional int64 num_micro_batches = 7 [ default = 1 ]; | |||
optional int64 num_slots = 8 [ default = 1 ]; |
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.
这个是啥
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.
就是一次最多能跑多少步
@@ -96,6 +96,9 @@ class Interceptor { | |||
// local mailbox, written by FetchRemoteMailbox() | |||
// read by PoolTheMailbox() | |||
std::queue<InterceptorMessage> local_mailbox_; | |||
|
|||
int64_t already_run_times_{0}; |
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.
这个建议加到后面的compute_interceptor中
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.
这个是为了fake run准备的,留着吧,后面的子类可以不用?
if (role_to_ops.find(role_id) == role_to_ops.end()) { | ||
task_nodes_.emplace_back( | ||
TaskNode::CreateEmptyTaskNode(role_id, cur_rank, task_id)); | ||
task_nodes_.emplace_back(TaskNode::CreateEmptyTaskNode( |
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.
后续可能需要有ComputeTaskNode
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.
没理解,为啥要单搞一个新的tasknode出来?
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
PR types
Others
PR changes
Others
Describe
parse pipeline config.