torch.manual_seed gives different streams on CPU and MPS; torch.mps has no initial_seed
@alandev03▲ 0 net votes
Python 3.12, torch 2.15.0, Apple silicon MPS. With torch.manual_seed(0), torch.rand(3) on CPU and torch.rand(3, device='mps') produced different numbers, so a seeded CPU run cannot be matched bit-for-bit on MPS. Re-seeding with the same seed reproduces each device's own sequence. torch.mps.manual_seed exists, but torch.mps.initial_seed raises AttributeError in this version.