設備資訊
caesar@ubuntu: $ 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
caesar@ubuntu: $ cat /etc/nv_tegra_release
# KERNEL_VARIANT: oot
R36 (release), REVISION: 4.4, GCID: 41062509, BOARD: generic, EABI: aarch64, DATE: Mon Jun 16 16:07:13 UTC 2025
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
nvidia-smi
NVIDIA-SMI 540.4.0
Drive Version:540.4.0
Cuda Version 12.6
Orin(nvgpu)
python3 --version
pip 22.0.2
pip3 --version
Python 3.10.12
=======================================================================
安裝torch
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
檢查
Python3
import torch
print(torch.cuda.is_available())
True
print(torch.cuda.get_device_name(0))
Orin
=======================================================================
pip3 install openai-whisper
pip3 install huggingface_hub
這裡報錯
python3 -c “import whisper; whisper.load_model(‘base’)”
Traceback (most recent call last):
File “”, line 1, in
File “/home/caesar/.local/lib/python3.10/site-packages/whisper/init_.py”, line 155,in load_model
model.load_state_dict(checkpoint[“model_state_dict”])
File “/home/caesar/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line in load_state_dict
raise RuntimeError(
RuntimeErrorг: Еггог(s) in loading state_dict for Whisper:
While copying the parameter named “encoder.blocks.0.attn.query.weight”, whose dimens in the model are torch. Size([512, 512]) and whose dimensions in the checkpoint are torch.Siz 2, 512]), an exception occurred: ('CUDA error: no kernel image is available for execution o device\nCUDA kernel errors might be asynchronously reported at some other API call, so the trace below might be incorrect.\nFor debugging consider passing CUDA_LAUNCH_BLOCKING=1\nComp ith TORCH_USE_CUDA_DSA to enable device-side assertions.\n’,)
嘗試幾個PYTORCH版本都不行,求各位大大指點!