When I run the code I get a different plot:
torch: 2.3.1 numpy: 1.26.4 cuda: 12.2 NVIDIA-Driver: 535.183.01 (Ubuntu)