samin_hamidi:

I wonder why they behave like this? shouldn’t they produce the exact same values?


Not necessarily, if different hardware and potentially software versions (CUDA, PyTorch) are used.
You could run some tests and see, if you would be getting the same random numbers on both platforms in the first place.