DDP is DistributedDataParallel, so a multi-GPU training, but as you’ve already mentioned you are using a single device, so skip this part please.
If the code hangs, are you seeing any GPU utilization in nvidia-smi?