Skip to content

PyTorch 2.5.1 cannot find MPS device on a MacOS 12.7.6 arm64 #139425

@rafaelvareto

Description

@rafaelvareto

Is there a way to run the recently released PyTorch 2.5.1 with MPS enabled without upgrading the MacOS?

I have a MacBook M1 (macOS-12.7.6-arm64-arm-64bit), but whenever I try to move a tensor to a MPS device, I come across the following error:

RuntimeError: The MPS backend is supported on MacOS 12.3+.
Current OS version can be queried using `sw_vers`.

>> sw_vers
ProductName:	macOS
ProductVersion:	12.7.6
BuildVersion:	21H1320

Basically, I have a OS version satisfying PyTorch requirements, still, it does not find a MPS device.

Originally posted by @rafaelvareto in #78343 (comment)

cc @seemethere @malfet @osalpekar @atalman @kulinseth @albanD @DenisVieriu97 @jhavukainen

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: binariesAnything related to official binaries that we release to usersmodule: mpsRelated to Apple Metal Performance Shaders frameworktriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions