# Starcoder: CUDA out of memory

**URL:** <https://discuss.huggingface.co/t/starcoder-cuda-out-of-memory/63765>\
**Category:** Beginners\
**Created:** [November 27, 2023, 10:24pm UTC](https://discuss.huggingface.co/t/starcoder-cuda-out-of-memory/63765 "2023-11-27T22:24:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![CKeibel](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ckeibel/32/55416_2.png) [@CKeibel](https://discuss.huggingface.co/u/CKeibel)\
**Post date:** [February 9, 2024, 7:41am UTC](https://discuss.huggingface.co/t/starcoder-cuda-out-of-memory/63765/3 "2024-02-09T07:41:53Z")

</div>

Hi!  
I searched the internet and it seems that `accelerator.device` always uses `cuda:0`, so the model is not distributed to the GPUs.

Maybe [this](https://discuss.huggingface.co/t/how-to-use-specific-gpu-in-accelerate/62810) helps you.

---

_[View the full topic](https://discuss.huggingface.co/t/starcoder-cuda-out-of-memory/63765)._
