Datasets:
File size: 803 Bytes
6044d56 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | import importlib
import sys
print("exe", sys.executable)
print("ver", sys.version.replace("\n", " "))
try:
import torch
print("torch", torch.__version__, "cuda", torch.cuda.is_available(), "n", torch.cuda.device_count())
for i in range(torch.cuda.device_count()):
print("gpu", i, torch.cuda.get_device_name(i))
except Exception as e:
print("torch_fail", type(e).__name__, e)
for name in (
"chronos",
"tirex2",
"yaml",
"pandas",
"numpy",
"transformers",
"accelerate",
"safetensors",
"einops",
"scipy",
"sklearn",
):
try:
m = importlib.import_module(name)
print("ok", name, getattr(m, "__version__", "?"))
except Exception as e:
print("miss", name, type(e).__name__, e)
|