Ouch I had no idea download speeds were so slow in China!
You can build code inside a Docker image: it is super easy and can be done with a single command.
docker build -t pytorch .

  
      
      GitHub
  
  
    

pytorch/pytorch 12

pytorch - Tensors and Dynamic neural networks in Python  with strong GPU acceleration