麻烦老师看看,如何装CUDA驱动,才能调用GPU? #490
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#490
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
我的CUDA驱动版本是12.4,pytorch版本是2.5.1,都已经手动装好了,接下来要如何做,才能调用GPU?我家有4090的显卡,这样正好可以试。这是我下载的驱动,但依然是GPU用不了
CUDA available: False
No CUDA device found. Using CPU.显示这个
import torch
print(torch.__version__) # 检查 PyTorch 版本
print(torch.cuda.is_available()) # 检查 CUDA 是否可用
print(torch.cuda.get_device_name(0)) # 检查 GPU 设备名称
可以参考:https://blog.csdn.net/wokaowokaowokao12345/article/details/131134993