wrkspace-backup-ttl / print_env.py
agreeupon's picture
Add files using upload-large-folder tool
72a5beb verified
import os, torch, transformers, socket
print(
f"rank={os.environ.get('LOCAL_RANK')} "
f"torch={torch.__version__} "
f"TPflag={os.environ.get('ACCELERATE_DISABLE_TORCH2_AND_TF_TENSOR_PARALLELISM')} "
f"python={os.__file__[:30]} host={socket.gethostname()}"
)