Skip to main content

MindSpore Logo

PyPI - Python Version PyPI Downloads DockerHub LICENSE PRs Welcome

查看中文

What Is MindSpore

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios. MindSpore is designed to provide development experience with friendly design and efficient execution for the data scientists and algorithmic engineers, native support for Ascend AI processor, and software hardware co-optimization. At the meantime MindSpore as a global AI open source community, aims to further advance the development and enrichment of the AI software/hardware application ecosystem.

MindSpore Architecture

For more details please check out our Architecture Guide.

Automatic Differentiation

Currently, there are two automatic differentiation techniques in mainstream deep learning frameworks:

  • Operator Overloading (OO): Overloading the basic operators of the programming language to encapsulate their gradient rules. Record the operation trajectory of the network during forward execution in an operator overloaded manner, then apply the chain rule to the dynamically generated data flow graph to implement automatic differentiation.
  • Source Transformation (ST): This technology is evolving from the functional programming framework and performs automatic differential transformation on the intermediate expression (the expression form of the program during the compilation process) in the form of just-in-time compilation (JIT), supporting complex control flow scenarios, higher-order functions and closures.

PyTorch used OO. Compared to ST, OO generates gradient graph in runtime, so it does not need to take function call and control flow into consideration, which makes it easier to develop. However, OO can not perform gradient graph optimization in compilation time and the control flow has to be unfolded in runtime, so it is difficult to achieve extreme optimization in performance.

MindSpore implemented automatic differentiation based on ST. On the one hand, it supports automatic differentiation of automatic control flow, so it is quite convenient to build models like PyTorch. On the other hand, MindSpore can perform static compilation optimization on neural networks to achieve great performance.

Automatic Differentiation

The implementation of MindSpore automatic differentiation can be understood as the symbolic differentiation of the program itself. Because MindSpore IR is a functional intermediate expression, it has an intuitive correspondence with the composite function in basic algebra. The derivation formula of the composite function composed of arbitrary basic functions can be derived. Each primitive operation in MindSpore IR can correspond to the basic functions in basic algebra, which can build more complex flow control.

Automatic Parallel

The goal of MindSpore automatic parallel is to build a training method that combines data parallelism, model parallelism, and hybrid parallelism. It can automatically select a least cost model splitting strategy to achieve automatic distributed parallel training.

Automatic Parallel

At present, MindSpore uses a fine-grained parallel strategy of splitting operators, that is, each operator in the figure is split into a cluster to complete parallel operations. The splitting strategy during this period may be very complicated, but as a developer advocating Pythonic, you don't need to care about the underlying implementation, as long as the top-level API compute is efficient.

Installation

Pip mode method installation

MindSpore offers build options across multiple backends:

Hardware Platform Operating System Status
Ascend Linux-x86 ✔️
Linux-aarch64 ✔️
GPU CUDA 11.6 Linux-x86 ✔️
CPU Linux-x86 ✔️
Linux-aarch64 ✔️
Windows-x86 ✔️
MacOS-x86 ✔️
MacOS-aarch64 ✔️

For installation using pip, take CPU and Linux-x86 build version as an example:

  1. Download whl from MindSpore download page, and install the package.

    pip install mindspore==2.7.1 -i https://repo.mindspore.cn/pypi/simple --trusted-host repo.mindspore.cn --extra-index-url https://repo.huaweicloud.com/repository/pypi/simple
    
  2. Run the following command to verify the install.

    python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()"
    

Use pip mode method to install MindSpore in different environments. Refer to the following documents.

Source code compilation installation

Use the source code compilation method to install MindSpore in different environments. Refer to the following documents.

Docker Image

MindSpore docker image is hosted on Huawei SWR. Use Docker to install MindSpore in different environments, refer to the following documents.

Quickstart

See the Quick Start to implement the image classification.

Docs

More details about installation guide, tutorials and APIs, please see the User Documentation.

Community

Governance

Check out how MindSpore Open Governance works.

Communication

Contributing

Welcome contributions. See our Contributor Wiki for more details.

Maintenance phases

Project stable branches will be in one of the following states:

State Time frame Summary
Planning 1 - 3 months Features are under planning.
Development 3 months Features are under development.
Maintained 6 - 12 months All bugfixes are appropriate. Releases produced.
Unmaintained 0 - 3 months All bugfixes are appropriate. No Maintainers and No Releases produced.
End Of Life (EOL) N/A Version no longer accepting changes.

Maintenance status

Version Status Initial Release Date Next Phase EOL Date
r2.9 Maintained 2026-04-29 Unmaintained
2027-04-29 estimated
2027-04-29
r2.8 Maintained 2026-01-28 Unmaintained
2027-01-28 estimated
2027-01-28
r2.7 Maintained 2025-08-08 Unmaintained
2026-08-08 estimated
2026-08-08
r2.6 End Of Life 2025-05-19 2026-05-19
r2.5 End Of Life 2025-02-08 2026-02-08
r2.4 End Of Life 2024-10-30 2025-10-30
r2.3 End Of Life 2024-07-15 2025-07-15
r2.2 End Of Life 2023-10-18 2024-10-18
r2.1 End Of Life 2023-07-29 2024-07-29
r2.0 End Of Life 2023-06-15 2024-06-15
r1.10 End Of Life 2023-02-02 2024-02-02
r1.9 End Of Life 2022-10-26 2023-10-26
r1.8 End Of Life 2022-07-29 2023-07-29
r1.7 End Of Life 2022-04-29 2023-04-29
r1.6 End Of Life 2022-01-29 2023-01-29
r1.5 End Of Life 2021-10-15 2022-10-15
r1.4 End Of Life 2021-08-15 2022-08-15
r1.3 End Of Life 2021-07-15 2022-07-15
r1.2 End Of Life 2021-04-15 2022-04-29
r1.1 End Of Life 2020-12-31 2021-09-30
r1.0 End Of Life 2020-09-24 2021-07-30
r0.7 End Of Life 2020-08-31 2021-02-28
r0.6 End Of Life 2020-07-31 2020-12-30
r0.5 End Of Life 2020-06-30 2021-06-30
r0.3 End Of Life 2020-05-31 2020-09-30
r0.2 End Of Life 2020-04-30 2020-08-31
r0.1 End Of Life 2020-03-28 2020-06-30

Release Notes

The release notes, see our RELEASE.

License

Apache License 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mindspore-2.10.0-cp312-none-any.whl (370.8 MB view details)

Uploaded CPython 3.12

mindspore-2.10.0-cp312-cp312-win_amd64.whl (113.6 MB view details)

Uploaded CPython 3.12Windows x86-64

mindspore-2.10.0-cp312-cp312-manylinux1_x86_64.whl (802.8 MB view details)

Uploaded CPython 3.12

mindspore-2.10.0-cp312-cp312-macosx_11_0_arm64.whl (157.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mindspore-2.10.0-cp312-cp312-macosx_10_15_x86_64.whl (175.8 MB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

mindspore-2.10.0-cp311-none-any.whl (372.3 MB view details)

Uploaded CPython 3.11

mindspore-2.10.0-cp311-cp311-win_amd64.whl (114.5 MB view details)

Uploaded CPython 3.11Windows x86-64

mindspore-2.10.0-cp311-cp311-manylinux1_x86_64.whl (804.3 MB view details)

Uploaded CPython 3.11

mindspore-2.10.0-cp311-cp311-macosx_11_0_arm64.whl (147.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mindspore-2.10.0-cp311-cp311-macosx_10_15_x86_64.whl (177.5 MB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

mindspore-2.10.0-cp310-none-any.whl (372.1 MB view details)

Uploaded CPython 3.10

mindspore-2.10.0-cp310-cp310-win_amd64.whl (114.5 MB view details)

Uploaded CPython 3.10Windows x86-64

mindspore-2.10.0-cp310-cp310-manylinux1_x86_64.whl (804.1 MB view details)

Uploaded CPython 3.10

mindspore-2.10.0-cp310-cp310-macosx_11_0_arm64.whl (159.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

mindspore-2.10.0-cp310-cp310-macosx_10_15_x86_64.whl (177.5 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

File details

Details for the file mindspore-2.10.0-cp312-none-any.whl.

File metadata

  • Download URL: mindspore-2.10.0-cp312-none-any.whl
  • Upload date:
  • Size: 370.8 MB
  • Tags: CPython 3.12
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.10.0-cp312-none-any.whl
Algorithm Hash digest
SHA256 6a7ca2ef56ea0dfa71e741933c432c29c1ce1d869b9d5532cfc2f866eef96296
MD5 b7bcf0189eb9074451a05a0f7e5cd213
BLAKE2b-256 d89d38c746505a60dfe35f4c63600d58362ac5e323d6ddbd12e85245443ceaf5

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: mindspore-2.10.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 113.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.10.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bb716d2c5a31e22c8d4d81973d39ffa7ed64c85e44af5183527abc0e053709c8
MD5 f8c14305079dcfde5196259befb9d67a
BLAKE2b-256 cc29415af7ff5d1c94d614aed19ea8a71e59aa9692c200d7ce4c64e227eb8bc7

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp312-cp312-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5d15b830fea2f7c4c54991aef942d2ad431ba84f7ec1e8f60471f309cd6321ee
MD5 cfc275f04ccda64c36d66ff9b47ca750
BLAKE2b-256 7485b201bd885ff415a8d51f5bf8ffdd03ed992a73f92989c829605cae3022b6

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52b32155b11d973c937fe2ceeb01c3c10c137ef10d8f6f52491d5a03b8024bc6
MD5 0de22b590b03ccc26ca61979dd2f0713
BLAKE2b-256 c1028b94809617700e16ad59bf10437ba10c13c2a187f7ff926434530ded991b

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp312-cp312-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d677b6fed43bd4f124b5ca33d3572347f86ff47fcfa685b6484a8f09217f6a93
MD5 7c218955085db542a9faccc91e1dba69
BLAKE2b-256 cc4ed6a85d996789d8dac3666f33a00222057101dfed27650388e5fad9a5f72a

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp311-none-any.whl.

File metadata

  • Download URL: mindspore-2.10.0-cp311-none-any.whl
  • Upload date:
  • Size: 372.3 MB
  • Tags: CPython 3.11
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.10.0-cp311-none-any.whl
Algorithm Hash digest
SHA256 f90db87b09b9c329aae5f3e0193143a7962a0042244238bd87ec186e323ae35d
MD5 5081892dad42f41124b5f58cab98a876
BLAKE2b-256 17922f432d9ebf8f0cbd84168f9066511673144fd64b74d0715f4d973ddad93d

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: mindspore-2.10.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 114.5 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.10.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 865d938209229e329948976a66d5caf7a17e80209255b14620c6e6cc8d2f3950
MD5 9ce75a56048d663f01b04c25cc9ab2d7
BLAKE2b-256 a697ffe0a4d38b19037012696437d3b4d0014fd2611169ae4e39469c60420190

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp311-cp311-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 068346f4fd716a64fb7ac93a7fc029645cffa9663cec1ccb5924d355647f7f70
MD5 57dd9d06c78a37b78d229daacd62c8ca
BLAKE2b-256 d20124da269d0c75efbce42f405d11b9e96eb804f7e1e8c1764d66291b020549

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddff33a84d2276aa02d4ca00003fa4eff10020a8d6b3255ec9e4bb2d98bc250c
MD5 88842ece1846b49da522b3d51bfdf13d
BLAKE2b-256 4c187c689b118bed8164b6ad896d6694873e9ccfabc1e123369a6b169bb4ef7b

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6314e2322e0a7042ec28b2560a1c54c22d884fc6b970652a85e25909bec3715a
MD5 2e64c6dcaba3ee91912e90849e3587cb
BLAKE2b-256 29abd792fe4ca1ac82bb65f830637c17475b048fa3b8b9d0f8c0189af5d4377b

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp310-none-any.whl.

File metadata

  • Download URL: mindspore-2.10.0-cp310-none-any.whl
  • Upload date:
  • Size: 372.1 MB
  • Tags: CPython 3.10
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.10.0-cp310-none-any.whl
Algorithm Hash digest
SHA256 ec3bf45a4ad9a272cd9cca6b7f64de82fd13cdce371db1649fe0064eb2ad4feb
MD5 de54112a178133b62c2c891ea40d7e56
BLAKE2b-256 d28adaf1119f2e6376e5aa2b5e2ecd23fdd08d1b3ad79347bbf54f94274b587e

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: mindspore-2.10.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 114.5 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.10.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36027d5f54629f14a3fa957c985b1906321405eb3827128c0b0ebf750cc4b16d
MD5 4e4b54fc230b50fb65801e4a263cde01
BLAKE2b-256 ba30fff4a4e18f4d8da3e5482e32c239b6acf9db43ff6065cd0b474ef88e30da

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp310-cp310-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6f381a34b1fb5407a3aab3e83f34245928c6bedf4c4a158f6d1f7bf5eb416d37
MD5 0ec6bcd85e41cbf9d329cdc8f4551c27
BLAKE2b-256 6ea94d888b86bde2b5cc776e1519a69ea4f63c59894406a12254cf3ede5d09d7

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a329e4f038d2faa1f33ac9522590b69768814b1bd4c9479fce68dd9383e01c13
MD5 9e5dc6af1621665d5411465e9a15593b
BLAKE2b-256 946d1bf66d30a28e8ec0866144fc8218261f6124267884729ee9f96e85c334cc

See more details on using hashes here.

File details

Details for the file mindspore-2.10.0-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.10.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 50fe3faa66aed0be1ae2eff4e56beb46ea4d240ededba11dc962e72b152a161e
MD5 f8c60dd5d8307074aae8ee8b8516b881
BLAKE2b-256 cff91a4e70e7b050e7bd080d82fb6c93d6037af566d257e504b27bc89e772466

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page