# Issue with CUDA Availability on A10 GPU Instance of space

**URL:** <https://discuss.huggingface.co/t/issue-with-cuda-availability-on-a10-gpu-instance-of-space/61458>\
**Category:** Spaces\
**Created:** [November 8, 2023, 3:27am UTC](https://discuss.huggingface.co/t/issue-with-cuda-availability-on-a10-gpu-instance-of-space/61458 "2023-11-08T03:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanahhh](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/tanahhh/32/19227_2.png) [@tanahhh](https://discuss.huggingface.co/u/tanahhh)\
**Post date:** [November 8, 2023, 3:27am UTC](https://discuss.huggingface.co/t/issue-with-cuda-availability-on-a10-gpu-instance-of-space/61458/1 "2023-11-08T03:27:08Z")

</div>

We have been using the Huggingface Spaces to host a model demo, utilizing the A10 GPU instance. Until recently, everything was functioning as expected and our demo was running smoothly.

However, we have suddenly encountered an issue where our demo ceased to operate. Upon investigation, we found out that we are no longer able to utilize CUDA with PyTorch on our instance. Specifically, when we run the code torch.cuda.is\_available(), it returns False. Moreover, the error message suggests that the issue might be related to an outdated version of the CUDA driver.

Anyone knows of a solution to this problem?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [November 8, 2023, 6:49am UTC](https://discuss.huggingface.co/t/issue-with-cuda-availability-on-a10-gpu-instance-of-space/61458/2 "2023-11-08T06:49:03Z")

</div>

@chris-rannou i @tanahhh ,

Could you please share more about your Space? Are you using a Docker or Gradio SDK?  
cc @chris-rannou maybe recent internal infra change has impact on this?

---

<div class="post-metadata">

**Author:** ![tanahhh](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/tanahhh/32/19227_2.png) [@tanahhh](https://discuss.huggingface.co/u/tanahhh)\
**Post date:** [November 8, 2023, 10:00am UTC](https://discuss.huggingface.co/t/issue-with-cuda-availability-on-a10-gpu-instance-of-space/61458/3 "2023-11-08T10:00:15Z")

</div>

@radames

We don’t use Docker.  
Our project has just requirements.txt and app.py. Each code is the following.

```auto
accelerate
protobuf
sentencepiece
torch>=2.0.1
pillow
transformers

```

```auto
import gradio as gr
import torch

if __name__ == " __main__":
    device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
    print(device, flush=True)

```
