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

Release files for mindspore 2.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for mindspore 2.10.0
File
mindspore-2.10.0-cp312-none-any.whl CPython 3.12 none any Details
mindspore-2.10.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
mindspore-2.10.0-cp312-cp312-manylinux1_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.5+ x86-64 Details
mindspore-2.10.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
mindspore-2.10.0-cp312-cp312-macosx_10_15_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.15+ x86-64 Details
mindspore-2.10.0-cp311-none-any.whl CPython 3.11 none any Details
mindspore-2.10.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
mindspore-2.10.0-cp311-cp311-manylinux1_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.5+ x86-64 Details
mindspore-2.10.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
mindspore-2.10.0-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details
mindspore-2.10.0-cp310-none-any.whl CPython 3.10 none any Details
mindspore-2.10.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
mindspore-2.10.0-cp310-cp310-manylinux1_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.5+ x86-64 Details
mindspore-2.10.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
mindspore-2.10.0-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details

Total release size: 4.9 GB

Release files / mindspore-2.10.0-cp312-none-any.whl

Download URL mindspore-2.10.0-cp312-none-any.whl
Size 370.8 MB
Tags CPython 3.12
SHA-256 checksum
How to use checksums
6a7ca2ef56ea0dfa71e741933c432c29c1ce1d869b9d5532cfc2f866eef96296
BLAKE2b-256 checksum
How to use checksums
d89d38c746505a60dfe35f4c63600d58362ac5e323d6ddbd12e85245443ceaf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp312-cp312-win_amd64.whl

Download URL mindspore-2.10.0-cp312-cp312-win_amd64.whl
Size 113.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
bb716d2c5a31e22c8d4d81973d39ffa7ed64c85e44af5183527abc0e053709c8
BLAKE2b-256 checksum
How to use checksums
cc29415af7ff5d1c94d614aed19ea8a71e59aa9692c200d7ce4c64e227eb8bc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp312-cp312-manylinux1_x86_64.whl

Download URL mindspore-2.10.0-cp312-cp312-manylinux1_x86_64.whl
Size 802.8 MB
Tags CPython 3.12 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5d15b830fea2f7c4c54991aef942d2ad431ba84f7ec1e8f60471f309cd6321ee
BLAKE2b-256 checksum
How to use checksums
7485b201bd885ff415a8d51f5bf8ffdd03ed992a73f92989c829605cae3022b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL mindspore-2.10.0-cp312-cp312-macosx_11_0_arm64.whl
Size 157.6 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
52b32155b11d973c937fe2ceeb01c3c10c137ef10d8f6f52491d5a03b8024bc6
BLAKE2b-256 checksum
How to use checksums
c1028b94809617700e16ad59bf10437ba10c13c2a187f7ff926434530ded991b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp312-cp312-macosx_10_15_x86_64.whl

Download URL mindspore-2.10.0-cp312-cp312-macosx_10_15_x86_64.whl
Size 175.8 MB
Tags CPython 3.12 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
d677b6fed43bd4f124b5ca33d3572347f86ff47fcfa685b6484a8f09217f6a93
BLAKE2b-256 checksum
How to use checksums
cc4ed6a85d996789d8dac3666f33a00222057101dfed27650388e5fad9a5f72a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp311-none-any.whl

Download URL mindspore-2.10.0-cp311-none-any.whl
Size 372.3 MB
Tags CPython 3.11
SHA-256 checksum
How to use checksums
f90db87b09b9c329aae5f3e0193143a7962a0042244238bd87ec186e323ae35d
BLAKE2b-256 checksum
How to use checksums
17922f432d9ebf8f0cbd84168f9066511673144fd64b74d0715f4d973ddad93d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp311-cp311-win_amd64.whl

Download URL mindspore-2.10.0-cp311-cp311-win_amd64.whl
Size 114.5 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
865d938209229e329948976a66d5caf7a17e80209255b14620c6e6cc8d2f3950
BLAKE2b-256 checksum
How to use checksums
a697ffe0a4d38b19037012696437d3b4d0014fd2611169ae4e39469c60420190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp311-cp311-manylinux1_x86_64.whl

Download URL mindspore-2.10.0-cp311-cp311-manylinux1_x86_64.whl
Size 804.3 MB
Tags CPython 3.11 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
068346f4fd716a64fb7ac93a7fc029645cffa9663cec1ccb5924d355647f7f70
BLAKE2b-256 checksum
How to use checksums
d20124da269d0c75efbce42f405d11b9e96eb804f7e1e8c1764d66291b020549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL mindspore-2.10.0-cp311-cp311-macosx_11_0_arm64.whl
Size 147.2 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ddff33a84d2276aa02d4ca00003fa4eff10020a8d6b3255ec9e4bb2d98bc250c
BLAKE2b-256 checksum
How to use checksums
4c187c689b118bed8164b6ad896d6694873e9ccfabc1e123369a6b169bb4ef7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp311-cp311-macosx_10_15_x86_64.whl

Download URL mindspore-2.10.0-cp311-cp311-macosx_10_15_x86_64.whl
Size 177.5 MB
Tags CPython 3.11 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
6314e2322e0a7042ec28b2560a1c54c22d884fc6b970652a85e25909bec3715a
BLAKE2b-256 checksum
How to use checksums
29abd792fe4ca1ac82bb65f830637c17475b048fa3b8b9d0f8c0189af5d4377b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp310-none-any.whl

Download URL mindspore-2.10.0-cp310-none-any.whl
Size 372.1 MB
Tags CPython 3.10
SHA-256 checksum
How to use checksums
ec3bf45a4ad9a272cd9cca6b7f64de82fd13cdce371db1649fe0064eb2ad4feb
BLAKE2b-256 checksum
How to use checksums
d28adaf1119f2e6376e5aa2b5e2ecd23fdd08d1b3ad79347bbf54f94274b587e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp310-cp310-win_amd64.whl

Download URL mindspore-2.10.0-cp310-cp310-win_amd64.whl
Size 114.5 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
36027d5f54629f14a3fa957c985b1906321405eb3827128c0b0ebf750cc4b16d
BLAKE2b-256 checksum
How to use checksums
ba30fff4a4e18f4d8da3e5482e32c239b6acf9db43ff6065cd0b474ef88e30da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp310-cp310-manylinux1_x86_64.whl

Download URL mindspore-2.10.0-cp310-cp310-manylinux1_x86_64.whl
Size 804.1 MB
Tags CPython 3.10 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
6f381a34b1fb5407a3aab3e83f34245928c6bedf4c4a158f6d1f7bf5eb416d37
BLAKE2b-256 checksum
How to use checksums
6ea94d888b86bde2b5cc776e1519a69ea4f63c59894406a12254cf3ede5d09d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL mindspore-2.10.0-cp310-cp310-macosx_11_0_arm64.whl
Size 159.2 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a329e4f038d2faa1f33ac9522590b69768814b1bd4c9479fce68dd9383e01c13
BLAKE2b-256 checksum
How to use checksums
946d1bf66d30a28e8ec0866144fc8218261f6124267884729ee9f96e85c334cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / mindspore-2.10.0-cp310-cp310-macosx_10_15_x86_64.whl

Download URL mindspore-2.10.0-cp310-cp310-macosx_10_15_x86_64.whl
Size 177.5 MB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
50fe3faa66aed0be1ae2eff4e56beb46ea4d240ededba11dc962e72b152a161e
BLAKE2b-256 checksum
How to use checksums
cff91a4e70e7b050e7bd080d82fb6c93d6037af566d257e504b27bc89e772466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release history Release notifications | RSS feed

This release

2.10.0 This release

15 release files

2.8.0

20 release files

2.7.2

19 release files

2.7.1

14 release files

2.7.0

14 release files

2.6.0

15 release files

2.0.0

13 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page