pytorch/serve

Torchserve M1 support detailed plan

Open

#2,555 创建于 2023年8月30日

在 GitHub 查看
 (4 评论) (15 反应) (0 负责人)Java (3,844 star) (790 fork)batch import
dependenciesenhancementgood first issuem1

描述

🚀 The feature

Update Jan 31 2024 - we should speed this up PyTorch on MacOS x86 is being deprecated https://github.com/pytorch/pytorch/issues/114602

Officially support torchserve on M1-M2 mac hardware. A bunch of people have asked for this, if you're interested please either upvote or volunteer to do this work, would be happy to review

We have 6 issues of people asking for M1 support https://github.com/pytorch/serve/labels/m1

Motivation, pitch

I've seen a bunch of issues asking for this but we haven't managed to prioritize it yet so thought I'd highlight what needs to be done to support this. There's two components to this work, most of this work is parallelizable with the exception of the official release script so feel free to pick up an issue and work on it

Code changes

Build changes

  • Ensure ts_scripts/install_dependencies.py installs the right binaries for M1
  • Ensure setup.py works on M1
  • Ensure that conda binaries work with osx-arm64
  • Change our CI job to run tests on M1 and deprecate the x86 version (Not deprecated yet simply added M1 compatibility)
  • Ensure build scripts in binaries still work for M1 for both pip and conda
  • In our official-release.yaml github action we should deprecate pushing regular mac binaries and instead move to using ARM M1 binaries
  • Update our docker build scripts to also work with M1 https://github.com/pytorch/serve/issues/1363#issuecomment-1112769676

cc @agunapal @mreso @malfet

Alternatives

No response

Additional context

No response

贡献者指南

Torchserve M1 support detailed plan · pytorch/serve#2555 | Good First Issue