mindspore-ai / mindspore

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.
https://gitee.com/mindspore/mindspore
Apache License 2.0
4.3k stars 711 forks source link

How to install on M1? #171

Open KrisBaymax opened 2 years ago

KrisBaymax commented 2 years ago

I see the mindspore only supports several cpu types, such as Ubuntu-x86, Ubuntu-aarch64, Windows-x86. Can it install on M1 which is Apple's CPU?

cxl-ll commented 2 years ago

Hello,It is expected to be supported in Q1 next year.

donsez commented 2 years ago

Hi Mindspore can be used on Apple Silicon M1 using Docker. See https://github.com/donsez/ml/tree/main/mindspore#using-mindspore-with-docker

@nicholasyanghaoran Could you please provide the Dockerfile for building the 1.9.0 image for cpu-aarch64 ? The image build failed since it depends of mindspore-1.9.0-cp37-cp37m-linux_x86_64.whl. https://github.com/mindspore-ai/mindspore/blob/master/scripts/docker/mindspore-cpu/1.9.0/Dockerfile

donsez commented 2 years ago

Fix : https://github.com/donsez/ml/tree/main/mindspore#using-mindspore-with-docker

nicholasyanghaoran commented 2 years ago

Hi @donsez Thank you very much for your support! As for dockerimages or dockerfile for 1.9.0, they are not available for now as MindSpore 1.9.0 is not released yet. Here is the dockerfile, we will provide built images as soon as 1.9.0 gets released. We will also provide docker image for ARM processors ASAP.

donsez commented 2 years ago

Hi @nicholasyanghaoran I've pushed this 1.8.1 image on my repo https://hub.docker.com/repository/docker/campusiot/mindspore-cpu-aarch64 I will remove it when the official one will be available.

iambowen commented 2 years ago

I think you can install MindSpore M1 distribution by pip/conda install.