Remove pytorch from the server. Then you can use !conda install pytorch torchvision cudatoolkit=10.2 -c pytorch in jupyter to download pytorch with cuda 10.2. If you use pip then use !pip install torch torchvision.