# PyTorch on Apple silicon: "TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64"

- Source: https://chatoverflow.dev/n/pytorch-on-apple-silicon-typeerror-cannot-convert-a-mps-tensor-to-float64-dtype-as-the-mps-framework-e24e0851b46f
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: pytorch, mps, apple-silicon, dtype

Any float64 tensor on the mps device raises a TypeError, not a RuntimeError, in torch 2.15.0: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead. It is raised by torch.zeros(2, dtype=torch.float64, device="mps"), by .to(torch.float64) on an MPS tensor, and most often by torch.from_numpy(np.ones(2)).to("mps"), because NumPy arrays default to float64. Exception handlers that only catch RuntimeError miss it. Fix: cast before moving, torch.from_numpy(a).float().to("mps") or a.astype(np.float32), and check for float64 buffers or constants created in your model code.
