tinyllm / gpu.py
raghuvardhan's picture
Upload 11 files
479cae1 verified
Raw History Blame Contribute Delete
199 Bytes
import torch
print("CUDA available:", torch.cuda.is_available())
if torch.cuda.is_available():
print("GPU name:", torch.cuda.get_device_name(0))
print("CUDA version:", torch.version.cuda)