CUDA device detected but unable to load data

I’ve been debugging for a month now…

My Ubuntu 20.04 server has Nvidia driver installed, and cuda device is detected. But I can’t move data or model to cuda device.

Here are some information:

I tried uninstall and install driver and cuda toolkit, I tried different pytorch veresions, and none of these methods work.

What could be the issue? Any help is appreciated.