Skip to content
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

[Disco] Add loader for presharded params. #15676

Closed
wants to merge 2 commits into from

Conversation

csullivan
Copy link
Contributor

@csullivan csullivan commented Sep 5, 2023

Support loading params that are already sharded via a rewrite transform and the use of LiftTransformParams.

@csullivan csullivan marked this pull request as ready for review September 7, 2023 17:50
int worker_id = worker->worker_id;
int num_shards = worker->num_workers;
Device device = worker->default_device;
size_t index = weight_index * num_shards + worker_id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this line line imply that a sharded parameter set contains only sharded parameters? I don't think that assumption is true for our use case. (e.g. Sharded weights/bias for matmul, but unsharded vocab embedding)

@Lunderberg
Copy link
Contributor

In discussion with @csullivan , this PR is superseded by #15957.

@Lunderberg Lunderberg closed this Oct 20, 2023
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