Skip to content

Add support for Metal (macOS) #1

@pierotofy

Description

@pierotofy

On macOS, OpenNMT-Py does not have support for metal devices (mps), but pytorch does.

It's possible to manually patch OpenNMT-Py and change torch.device('cpu') references to torch.device('mps') and get metal support to work, perhaps we could send a patch upstream to enable Metal support for everyone.

Seems kind of slow though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions