| 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()}" | |
| ) | |