-
Notifications
You must be signed in to change notification settings - Fork 600
Add Gloo communication to turobmind #3362
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
base: main
Are you sure you want to change the base?
Conversation
oc evaluate diff.csv |
cfg.devices = cfg.devices if cfg.devices else list(range(cfg.device_num)) | ||
cfg.ngpus_per_node = cfg.ngpus_per_node or len(cfg.devices) | ||
# for simplicity, each node has dp | ||
assert cfg.outer_dp_size * cfg.attn_dp_size % cfg.nnodes == 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.
It is possible that the model does not fit into a single node
std::string host = std::getenv("LMDEPLOY_DP_MASTER_ADDR"); | ||
int port = std::stoi(std::getenv("LMDEPLOY_DP_MASTER_PORT")); |
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.
how is DP related to the surrounding context of this code?
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.
pt engine use this variables to build dist group. Do we need to choose a new name like dist_init_addr ?
for (int local_rank = 0, offset = engine_param_.ngpus_per_node * engine_param_.node_rank; | ||
local_rank < engine_param_.ngpus_per_node; | ||
++local_rank) { | ||
auto& e = engine_params_[offset + local_rank]; |
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.
adjust the size of engine_params_
to fit ngpus_per_node
Usage
A two node example with tp=4, dp=4 and device_num=4
proxy_server
lmdeploy serve proxy --server-name 10.140.24.141
node 0
node 1