Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
TRI-ML
/
vlm-demo
like
3
Paused
App
Files
Files
Community
4a92242
vlm-demo
/
gpu_test.py
mattb512
add python gpu test
df85439
9 months ago
raw
Copy download link
history
blame
Safe
179 Bytes
import
torch
print
(
f"is availeble =
{torch.cuda.is_available()}
"
)
print
(
f"device count =
{torch.cuda.device_count()}
"
)
print
(
f"current device =
{torch.cuda.current_device()}
"
)