# Conflict in pytorch CUDA version and space CUDA version

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconflict-in-pytorch-cuda-version-and-space-cuda-version%2F88383%3E%5C
**Category:** Spaces\
**Created:** [May 25, 2024, 2:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconflict-in-pytorch-cuda-version-and-space-cuda-version%2F88383 "2024-05-25T02:15:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle-Liz](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@Kyle-Liz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FKyle-Liz)%5C
**Post date:** [May 25, 2024, 2:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconflict-in-pytorch-cuda-version-and-space-cuda-version%2F88383%2F1 "2024-05-25T02:15:37Z")

</div>

Hi there.

I have this space that worked perfectly weeks ago.

> **[3DFauna Demo - a Hugging Face Space by Kyle-Liz](https://huggingface.co/spaces/Kyle-Liz/3DFauna_demo)**
>
> Discover amazing ML apps made by the community

It seems previously HF spaces were using cuda 11.3, and it worked well with the pytorch version in my space, I used the following lines at the beginning of requirements.txt:

```txt
--extra-index-url https://download.pytorch.org/whl/cu113
torch==1.10.0+cu113
torchvision==0.11.0+cu113

```

and at the beginning of app.py I installed the tiny-cuda-nn package with:

```python
os.system('pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch')

```

It worked well several months ago. But recently I found the space are using CUDA12.3, and it will cause an error when installing the tiny-cuda-nn as the system cuda version and compiled pytorch cuda version don’t match:

```bash
The detected CUDA version (12.3) mismatches the version that was used to compile PyTorch (11.3). Please make sure to use the same CUDA versions

```

Is there any solution to this? For example set the default CUDA version of this space as 11.3? On pytorch documentation I can’t find one version specific for CUDA12.3, especially when I still want to use pytorch 1.x in this space.

Thanks
