tony0014 commited on
Commit
1993b5d
·
verified ·
1 Parent(s): 10b5a3b

add env check

Browse files
Files changed (1) hide show
  1. scripts/check_env.sh +10 -0
scripts/check_env.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ echo "python: $(python --version 2>&1)"
4
+ python -c "import torch, sys; print('torch', torch.__version__, 'cuda_available', torch.cuda.is_available())"
5
+ echo "code mount:"
6
+ ls /code
7
+ echo "scripts:"
8
+ ls /code/scripts
9
+ echo "gpu:"
10
+ nvidia-smi --query-gpu=name,memory.total --format=csv,noheader || true