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

Manual management of shards #573

Open
nrs-status opened this issue Apr 10, 2024 · 1 comment
Open

Manual management of shards #573

nrs-status opened this issue Apr 10, 2024 · 1 comment

Comments

@nrs-status
Copy link

nrs-status commented Apr 10, 2024

Hi, I was wondering if anyone had recommendations of which parts of the library I should look at if I'm interested in how models are sharded, and if there's a way to manage this sharding manually? Most of all, if there's a way to load a shard from an already sharded model, for instance in a private cluster, so that there's a way to know in advance which instance will have which shard. Any reading suggestions in the repo are appreciated!

@justheuristic
Copy link
Collaborator

Hi! If you're still interested, or if someone else finds this:

a minimal shard is a single transformer block. The load-balancing algorithm can be found here https://github.com/bigscience-workshop/petals/blob/main/src/petals/server/block_selection.py

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

No branches or pull requests

2 participants