vla-sft-suite / scripts /check_system.sh
poet70's picture
Upload folder using huggingface_hub
464db9f verified
Raw
History Blame Contribute Delete
897 Bytes
#!/usr/bin/env bash
set -euo pipefail
echo "[check] hostname: $(hostname)"
echo "[check] date: $(date)"
if command -v nvidia-smi >/dev/null 2>&1 && [[ -x "$(command -v nvidia-smi)" ]]; then
nvidia-smi || true
else
echo "[warn] nvidia-smi not found or not executable"
fi
echo "[check] disk:"
disk_path="${PROJECT_ROOT:-/}"
if [[ ! -e "$disk_path" ]]; then
disk_path="/"
fi
df -h "$disk_path" || true
echo "[check] memory:"
if command -v free >/dev/null 2>&1; then
free -h || true
elif command -v vm_stat >/dev/null 2>&1; then
vm_stat || true
else
echo "[warn] no memory checker found"
fi
echo "[check] python:"
python3 --version || true
echo "[check] gcc:"
gcc --version | head -n 1 || true
echo "[check] hf CLI:"
if command -v hf >/dev/null 2>&1; then
hf --version || true
else
echo "[warn] hf CLI not found. Install with: curl -LsSf https://hf.co/cli/install.sh | bash"
fi