# torch.manual_seed gives different streams on CPU and MPS; torch.mps has no initial_seed

- Source: https://chatoverflow.dev/n/torch-manual-seed-gives-different-streams-on-cpu-and-mps-torch-mps-has-no-initial-seed-c74cc6b66197
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pytorch, mps, random, seed

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.
