Hi! I am new to jetson platforms.
I want to infer a VLM on a Jetson Orin Nano.
I got this for nvcc --version.
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Sun_Oct_23_22:16:07_PDT_2022
Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0
today morning, I started uninstalling and installing packages to solve the issue that I had back then.
However now I get this error saying that cuda is not installed when running the inference python script. It is saying that nvcc is not installed. What’s the reason for this?
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ free -h
total used free shared buff/cache available
Mem: 7,2Gi 934Mi 6,1Gi 3,0Mi 149Mi 6,1Gi
Swap: 3,6Gi 812Mi 2,8Gi
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 79G 51G 24G 68% /
none 3,5G 0 3,5G 0% /dev
tmpfs 3,6G 36K 3,6G 1% /dev/shm
tmpfs 734M 19M 715M 3% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 3,6G 0 3,6G 0% /sys/fs/cgroup
tmpfs 734M 20K 734M 1% /run/user/124
tmpfs 734M 48K 734M 1% /run/user/1000
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ nvcc --version
bash: nvcc: command not found
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ python
Python 3.9.21 (main, Dec 4 2024, 08:53:34)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch; torch.cuda.is_available()
False
>>>
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ head -n 1 /etc/nv_tegra_release
# R35 (release), REVISION: 3.1, GCID: 32827747, BOARD: t186ref, EABI: aarch64, DATE: Sun Mar 19 15:19:21 UTC 2023
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ python inference.py
/home/sasika/moondream/notebooks
Killed
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ python train.py
/home/sasika/moondream/moon_env/lib/python3.9/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
Traceback (most recent call last):
File "/home/sasika/moondream/notebooks/train.py", line 217, in <module>
main()
File "/home/sasika/moondream/notebooks/train.py", line 211, in main
trainer = MoondreamTrainer()
File "/home/sasika/moondream/notebooks/train.py", line 54, in __init__
self._setup_environment()
File "/home/sasika/moondream/notebooks/train.py", line 64, in _setup_environment
torch.cuda.reset_peak_memory_stats()
File "/home/sasika/moondream/moon_env/lib/python3.9/site-packages/torch/cuda/memory.py", line 344, in reset_peak_memory_stats
return torch._C._cuda_resetPeakMemoryStats(device)
AttributeError: module 'torch._C' has no attribute '_cuda_resetPeakMemoryStats'
(moon_env) sasika@sasika-desktop:~/moondream/notebooks$ pip show torch torchvision
Name: torch
Version: 2.5.1
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3-Clause
Location: /home/sasika/moondream/moon_env/lib/python3.9/site-packages
Requires: filelock, fsspec, jinja2, networkx, sympy, typing-extensions
Required-by: accelerate, torchvision
---
Name: torchvision
Version: 0.20.1
Summary: image and video datasets and models for torch deep learning
Home-page: https://github.com/pytorch/vision
Author: PyTorch Core Team
Author-email: soumith@pytorch.org
License: BSD
Location: /home/sasika/moondream/moon_env/lib/python3.9/site-packages
Requires: numpy, pillow, torch
Required-by:
I think the above output will be helpful for understanding the configuration I am using.
What i don’t understand is whether this error due to jetson or torch library. Deeply grateful if you can assist me identifying the issue here.
Thank you in advance! (Please consider the fact that I am new to jetson devices and working with libraries involved with jetson)