I installed pytorch from jp6/cu126 index
The issue is that the torch (torch-2.8.0-cp310-cp310-linux_aarch64.whl) is not available for cuda.
I installed pytorch from jp6/cu126 index
The issue is that the torch (torch-2.8.0-cp310-cp310-linux_aarch64.whl) is not available for cuda.
I had to build it.
Hi,
Please see the updated command below
$ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126 --force-reinstall
Hi,
Sorry for the incorrect message above.
Please use the packages from the jetson-ai-lab instead:
$ pip3 install torch torchvision --index-url https://pypi.jetson-ai-lab.io/jp6/cu126 --force-reinstall
Thanks
thanks, in the end it worked, but I had to use the cu129 folder instead.
Hi,
Could you share more about the fix?
Suppose you should have CUDA 12.6 installed when setting up with JetPack 6.2.x.
So itβs expected to use the packages in jp6/cu126.
Thanks.
The pytorch file in the cu126 folder was only enabling cpu and not CUDA support. I was able to install without issue but after running the test it was saying that cuda was not supported. When I tried the same for the file in the cu129 folder, it worked immediatly, saying cuda βsupportedβ
Hi,
Do you have CUDA 12.6 installed in your environment?
Since the package depends on the library, it might use CPU instead if the required library doesnβt exist.
Thanks.
Hi, I am trying to launch a ros2 package which needs CUDA compatible PyTorch. I think there is a requirements file which installed torch with pip, which obviously is CPU only and does not work on GPU.
I am using Jetson Orin Nano 8GB with JetPack 6.2
nvidia@localhost:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:14:07_PDT_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0
Can you please let me know how to install compatible version of PyTorch? It would be really helpful.
Thanks.
Hi,
The package from jetson-ai-lab should work.
But do you have any dependencies for CUDA 12.9 with the ros setting?
Thatβs maybe the reason you need the packages from CUDA 12.9?
Thanks.
Hi, can I use the below command to install PyTorch with CUDA support in JP 6.2 and CUDA 12.6?
$ pip3 install torch torchvision --index-url jp6/cu126 index --force-reinstall
Hi,
Please use the command below:
$ pip3 install torch torchvision --index-url https://pypi.jetson-ai-lab.io/jp6/cu126 --force-reinstall
Then you can double-confirm that it downloads the file from the expected URL:
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: jp6/cu126 index, https://pypi.ngc.nvidia.com
Collecting torch
Downloading https://pypi.jetson-ai-lab.io/jp6/cu126/%2Bf/62a/1beee9f2f1470/torch-2.8.0-cp310-cp310-linux_aarch64.whl (226.0 MB)
ββββββββββββββββββββββββββββββββββββββββ 0.3/226.0 MB ? eta -:β:β
Thanks.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.