Which version of Pytorch should I use with my Geforce RTX 2080 and the nvidia driver 570 to install Stable Diffusion?

Hello to everyone.

I would like to install Stable Diffusion on FreeBSD,using the Linux emulation layer. This is what I did to configure everything :

# pkg install linux-miniconda-installer linux-c7
# nvidia-smi

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.124.04             Driver Version: 570.124.04     CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1060 3GB    Off |   00000000:01:00.0  On |                  N/A |
| 53%   33C    P8              7W /  120W |     325MiB /   3072MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA GeForce RTX 2080 Ti     Off |   00000000:02:00.0 Off |                  N/A |
| 31%   36C    P8             20W /  250W |       2MiB /  11264MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            4117      G   /usr/local/libexec/Xorg                 174MiB |
|    0   N/A  N/A            4156      G   xfwm4                                     2MiB |
|    0   N/A  N/A            4291      G   firefox                                 144MiB |
+-----------------------------------------------------------------------------------------+


# conda-shell

# source conda.sh

# conda activate

(base) # conda create --name pytorch python=3.10
(base) # conda activate pytorch

# pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128

(pytorch) # LD_PRELOAD="/compat/dummy-uvm.so" python3 -c 'import torch; print(torch.cuda.is_available())'

home/username/miniconda3/envs/pytorch/lib/python3.10/site-packages/torch/_subclasses/functional_tensor.py:279: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at /pytorch/torch/csrc/utils/tensor_numpy.cpp:81.)

  cpu = _conversion_method_template(device=torch.device("cpu"))
/home/username/miniconda3/envs/pytorch/lib/python3.10/site-packages/torch/cuda/__init__.py:181: 

UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? 

Error 304: OS call failed or operation not supported on this OS (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:109.)
  return torch._C._cuda_getDeviceCount() > 0

I suspect that this version of pytorch is wrong :

# pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128

The tutorial that I’ve followed is this one :

as you can see he uses :

# pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113

with the driver 525 and it worked good. But I’m using driver 570 now,so I think that I should use the appropriate version of pytorch and maybe even python ?

I mean even this could be wrong ?

(base) # conda create --name pytorch python=3.10

Please help me,thanks.