# Training Diffuser Model on Colab GPU - 'nvidia-smi' Error & Feasibility

**URL:** <https://discuss.huggingface.co/t/training-diffuser-model-on-colab-gpu-nvidia-smi-error-feasibility/103634>\
**Category:** Beginners\
**Created:** [August 23, 2024, 3:38am UTC](https://discuss.huggingface.co/t/training-diffuser-model-on-colab-gpu-nvidia-smi-error-feasibility/103634 "2024-08-23T03:38:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manansi](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@Manansi](https://discuss.huggingface.co/u/Manansi)\
**Post date:** [August 23, 2024, 3:38am UTC](https://discuss.huggingface.co/t/training-diffuser-model-on-colab-gpu-nvidia-smi-error-feasibility/103634/1 "2024-08-23T03:38:53Z")

</div>

Hi everyone,

I’m trying to train a diffuser model for image generation using the Diffusers library, following the code from Hugging Face. However, I’m encountering an error when trying to use the Colab GPU:  
**FileNotFoundError: [Errno 2] No such file or directory: ‘nvidia-smi’**  
What might be causing this error? Is it related to the GPU setup on Colab, or is there something wrong with my environment configuration?  
Also, is it actually feasible to train a diffuser model on Colab, given its GPU limitations? Any advice on the best way to approach this would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![mahmutc](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mahmutc/32/64626_2.png) [@mahmutc](https://discuss.huggingface.co/u/mahmutc)\
**Post date:** [August 23, 2024, 7:44am UTC](https://discuss.huggingface.co/t/training-diffuser-model-on-colab-gpu-nvidia-smi-error-feasibility/103634/2 "2024-08-23T07:44:45Z")

</div>

hi @Manansi  
Which notebook do you follow? Did you modify the model, dataset or code?

I just tried [Diffusion Models from Scratch - Hugging Face Diffusion Course](https://huggingface.co/learn/diffusion-course/unit1/3). Even thought UNet2DModel takes more time, it seems Colab GPU can handle it.
