exo icon indicating copy to clipboard operation
exo copied to clipboard

[BOUNTY - $500] Distributed stable diffusion

Open AlexCheema opened this issue 1 year ago • 8 comments

Will require some core changes to how distributed inference works, hence higher bounty of $500. This would be a great contribution to exo.

AlexCheema avatar Aug 20 '24 17:08 AlexCheema

Hi @AlexCheema , Can I take this up?

pranav4501 avatar Aug 21 '24 18:08 pranav4501

Hi @AlexCheema , Can I take this up?

Yes please! Added you to the sheet @pranav4501

AlexCheema avatar Aug 22 '24 14:08 AlexCheema

Btw you mentioned you only have one device to test. You can still run multiple nodes on a single device. The easiest way is to do something like

python3 main.py —listen-port 5678 —broadcast-port 5679 —chatgpt-api-port 8000 —node-id “node1” python3 main.py —listen-port 5679 —broadcast-port 5678 —chatgpt-api-port 8001 —node-id “node2”

This is a trick to make sure ports don’t conflict and the nodes can still discover each other.

you can also write tests which should be a faster way of iterating.

AlexCheema avatar Aug 22 '24 14:08 AlexCheema

Yes, this works. Thank you Alex.

pranav4501 avatar Aug 22 '24 20:08 pranav4501

Hi @AlexCheema,

  • [ ] Stable diffusion (text to image) => Stable Diffusion v2-1
  • [ ] MLX distributed inference
  • [ ] Tinygrad distributed inference

This is my understanding of the requirements and the model I am using. Please let me know of any changes to this.

pranav4501 avatar Aug 23 '24 16:08 pranav4501

Hi @AlexCheema,

  • [ ] Stable diffusion (text to image) => Stable Diffusion v2-1
  • [ ] MLX distributed inference
  • [ ] Tinygrad distributed inference

This is my understanding of the requirements and the model I am using. Please let me know of any changes to this.

Looks good to me.

There's already examples for MLX and Tinygrad for stable diffusion v2. Example inference code for MLX: https://github.com/ml-explore/mlx-examples/tree/main/stable_diffusion Example inference code for Tinygrad: https://github.com/tinygrad/tinygrad/blob/master/examples/sdv2.py

AlexCheema avatar Aug 23 '24 17:08 AlexCheema

Bumping. Any progress @pranav4501

AlexCheema avatar Nov 15 '24 14:11 AlexCheema

Can I take this up?

I have experience with SVD, but very little to exo.

jayhsu0627 avatar Feb 07 '25 05:02 jayhsu0627