Skip to content

Conversation

@Lunderberg
Copy link
Contributor

In addition to the PackedFunc "runtime.disco.worker_id", which returns the worker ID wrapped in a ShapeTuple, this commit adds "runtime.disco.worker_rank", which returns the worker ID without wrapping, and "runtime.disco.device", which returns the device for each worker.

The unit test added in this commit simulates loading of model weights through a parameter transformation function.

In addition to the PackedFunc `"runtime.disco.worker_id"`, which
returns the worker ID wrapped in a `ShapeTuple`, this commit adds
`"runtime.disco.worker_rank"`, which returns the worker ID without
wrapping, and `"runtime.disco.device"`, which returns the device for
each worker.

The unit test added in this commit simulates loading of model weights
through a parameter transformation function.
@masahi masahi merged commit 3ec0ca5 into apache:main Feb 26, 2024
@Lunderberg Lunderberg deleted the disco_test_callback_for_param_loading branch February 26, 2024 20:47
Lunderberg added a commit to Lunderberg/tvm that referenced this pull request Mar 12, 2024
…16639)

In addition to the PackedFunc `"runtime.disco.worker_id"`, which
returns the worker ID wrapped in a `ShapeTuple`, this commit adds
`"runtime.disco.worker_rank"`, which returns the worker ID without
wrapping, and `"runtime.disco.device"`, which returns the device for
each worker.

The unit test added in this commit simulates loading of model weights
through a parameter transformation function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants