# Using stable-dreamfusion with Accelerate

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-stable-dreamfusion-with-accelerate%2F43647%3E%5C
**Category:** 🤗Accelerate\
**Created:** [June 18, 2023, 2:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-stable-dreamfusion-with-accelerate%2F43647 "2023-06-18T02:12:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asher-lab](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@asher-lab](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasher-lab)%5C
**Post date:** [June 18, 2023, 2:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-stable-dreamfusion-with-accelerate%2F43647%2F1 "2023-06-18T02:12:04Z")

</div>

Hi team

I’m new to ML and I’m looking how can we integrate accelerate with stable-dreamfusion? Here ([https://huggingface.co/docs/accelerate/usage\_guides/training\_zoo](https://huggingface.co/docs/accelerate/usage_guides/training_zoo)) it says that accelerate is integrated with Accelerate but when I do run the code it only run in 1 gpu. I have 8 gpus in total. Is there something that needs configuring first before I can start utilizing all gpus for training?

Code for stable-dreamfusion: [Webaverse/Stable-Dreamfusion · Hugging Face](https://huggingface.co/Webaverse/Stable-Dreamfusion)

Thank you very much

---

<div class="post-metadata">

**Author:** ![smangrul](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/smangrul/32/3791_2.png) [@smangrul](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsmangrul)%5C
**Post date:** [June 23, 2023, 9:36am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fusing-stable-dreamfusion-with-accelerate%2F43647%2F2 "2023-06-23T09:36:10Z")

</div>

Hello, you need to prepare `accelerate config` and then use `accelerate launch` for launching the training/inference. More info can be found on the official docs: [Accelerate (huggingface.co)](https://huggingface.co/docs/accelerate/index)
