toolkit / obsolete /version_check.py
k4d3's picture
more renames
dd352bf
raw
history blame
281 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import torch
import safetensors
print(f"PyTorch version: {torch.__version__}\nsafetensors version: {safetensors.__version__}")
if torch.cuda.is_available():
print("CUDA is available.")
else:
print("CUDA is not available.")