Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
TRI-ML
/
vlm-demo
like
3
Paused
App
Files
Files
Community
157fd87
vlm-demo
/
gpu_test.py
mattb512
add python gpu test
df85439
11 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()}
"
)