| import deepspeed | |
| deepspeed.init_distributed() | |
| import torch | |
| rank = deepspeed.comm.get_rank() | |
| print(f"Rank {rank} → CUDA available? {torch.cuda.is_available()}") | |
| import deepspeed | |
| deepspeed.init_distributed() | |
| import torch | |
| rank = deepspeed.comm.get_rank() | |
| print(f"Rank {rank} → CUDA available? {torch.cuda.is_available()}") | |