Skip to main content

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.

Project description

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.7 Maintained 2025-08-08 Unmaintained
2026-08-08 estimated
2026-08-08
r2.6 Maintained 2025-05-19 Unmaintained
2026-05-19 estimated
2026-05-19
r2.5 Maintained 2025-02-08 Unmaintained
2026-02-08 estimated
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

Project details


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.8.0-cp312-none-any.whl (351.7 MB view details)

Uploaded CPython 3.12

mindspore-2.8.0-cp312-cp312-win_amd64.whl (106.4 MB view details)

Uploaded CPython 3.12Windows x86-64

mindspore-2.8.0-cp312-cp312-manylinux1_x86_64.whl (766.5 MB view details)

Uploaded CPython 3.12

mindspore-2.8.0-cp312-cp312-macosx_11_0_arm64.whl (145.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mindspore-2.8.0-cp312-cp312-macosx_10_15_x86_64.whl (161.8 MB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

mindspore-2.8.0-cp311-none-any.whl (353.2 MB view details)

Uploaded CPython 3.11

mindspore-2.8.0-cp311-cp311-win_amd64.whl (107.3 MB view details)

Uploaded CPython 3.11Windows x86-64

mindspore-2.8.0-cp311-cp311-manylinux1_x86_64.whl (767.9 MB view details)

Uploaded CPython 3.11

mindspore-2.8.0-cp311-cp311-macosx_11_0_arm64.whl (146.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mindspore-2.8.0-cp311-cp311-macosx_10_15_x86_64.whl (163.6 MB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

mindspore-2.8.0-cp310-none-any.whl (351.2 MB view details)

Uploaded CPython 3.10

mindspore-2.8.0-cp310-cp310-win_amd64.whl (107.1 MB view details)

Uploaded CPython 3.10Windows x86-64

mindspore-2.8.0-cp310-cp310-manylinux1_x86_64.whl (765.1 MB view details)

Uploaded CPython 3.10

mindspore-2.8.0-cp310-cp310-macosx_11_0_arm64.whl (146.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

mindspore-2.8.0-cp310-cp310-macosx_10_15_x86_64.whl (162.9 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

mindspore-2.8.0-cp39-none-any.whl (351.2 MB view details)

Uploaded CPython 3.9

mindspore-2.8.0-cp39-cp39-win_amd64.whl (107.1 MB view details)

Uploaded CPython 3.9Windows x86-64

mindspore-2.8.0-cp39-cp39-manylinux1_x86_64.whl (765.1 MB view details)

Uploaded CPython 3.9

mindspore-2.8.0-cp39-cp39-macosx_11_0_arm64.whl (146.5 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

mindspore-2.8.0-cp39-cp39-macosx_10_15_x86_64.whl (162.9 MB view details)

Uploaded CPython 3.9macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: mindspore-2.8.0-cp312-none-any.whl
  • Upload date:
  • Size: 351.7 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.8.0-cp312-none-any.whl
Algorithm Hash digest
SHA256 e51696f11fe30eab90d4d0e45d2bfbd76c20083c0fb17717b78deae7978fff2f
MD5 9976160e7e77df8facd4ba1d08bc2fa4
BLAKE2b-256 c4cb3db9802b01bc377c748326b3bbc5fd79b426bfdea3cb762a720a813b47a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.8.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 106.4 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.8.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e9d64c23dbef5591564b3c364081dda38be0effc3e56b5c12f791d7d91206d68
MD5 0af66e39df937023a0f5a532ab4be909
BLAKE2b-256 799ec89f05b0fc1ef970940e9cc5ac3c03b2e6e64a1d5aa7f4b808dd1708e4ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a27c728e32705d90add15c8817c64317bae740a356c68f54e516479a1d8ab949
MD5 4bc8db1ddd63132d14fae1ce346d1b23
BLAKE2b-256 06e84586c651c8626d56c0887624daffdf03d40c50709339c4ad9d5da24190b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ac86d80a928df34e849cb49bead7006e69e13bc5f504748a757e15ea27e5cbd
MD5 74d28852f1b18610de5d634d7233a15c
BLAKE2b-256 fb52b2dde0375bda931b1541608b044eea12ac3797e9e6cd3fb6d2ebd0a38996

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1cc03aa7ef2d4261be6bef90d35270b8bd232b87d070a9350e0c349ae7397780
MD5 3bf79b405cad060797398aea903fc884
BLAKE2b-256 7358f7f6a08dc152b9048de161af5dacb5d374c4365d248c1e3c2dd270277b90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.8.0-cp311-none-any.whl
  • Upload date:
  • Size: 353.2 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.8.0-cp311-none-any.whl
Algorithm Hash digest
SHA256 8c32d0d244e3020871862a800c16d00ea58e5360b51cd6f9b16cf97b1db29fa1
MD5 fb38716d7393ceb486dbefbfc0824a25
BLAKE2b-256 e4fb9bf2a6cd1907e5398115cde9713e52b7317fb23673ff9387e0b62381af07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.8.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 107.3 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.8.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 510a23f055d7c5806e9fb8a5bb214133f10ccb990c1932fa9af0e25453a06768
MD5 5421c7ce78da2f2181e3840fc92f76e4
BLAKE2b-256 103050ad08fc50fc224966f3d3d66aee6682b0d43ca557bf23acf05707239409

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 40feb560289ab1d8b1d702c2fcc0051742dfeb4e4a30551f9f8a95d93119afaa
MD5 bc78791a3a4044772170dd50344e2de0
BLAKE2b-256 657b06c2e048ff6d69d05e00fc5c061ea49d083a5a51015d10f6a7b81f3b0585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8fe589c8f2d3df2b63572d62b992206a2ec34262e2f3e5d4569b8c2a29bf9d4
MD5 0354f6dd4699dea7177c4c0d44d6226f
BLAKE2b-256 825f5542a481154bd3d0072c20c56f9ddda7a2d07eb471f46f820de889884d5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 71e2666a04415e95b0d7df584d31fad1c8c09dea9661e9f03bb5759c9c634c34
MD5 3e2987e2dee9e1802e50ebe5418da38f
BLAKE2b-256 75aa47ea13886fa04168a8f8ef7f89e55a50fabd0369e1bbed998443354470fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.8.0-cp310-none-any.whl
  • Upload date:
  • Size: 351.2 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.8.0-cp310-none-any.whl
Algorithm Hash digest
SHA256 ee29c942a90a1479b47104acd069da9bab3fe3fd0a21462a13d5da80ef0562df
MD5 aaf2ae401e2a385288f95a3c521a32d6
BLAKE2b-256 26372c40911cf6730411327b883f3a6ad99460e700546438fe496120931ee790

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.8.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 107.1 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.8.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba85bd465bd919e9fe7be0444a789dec6448c3b0584fd546ec9804202820105d
MD5 1ab7962e714d3a1cce275c28f7e0b780
BLAKE2b-256 3125643bec3e7c4c1ab0b1233aa9ebf0db2d094a86fe82999acf797d48fe1611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fb7fee4457998837f6a4fda8c877f6abe52ca058233b90a17d675f398617be52
MD5 2d6deb32e3a1abcb9b0c83ef4bc8e48f
BLAKE2b-256 22519cdc2c0b5c8b074e8a9c555e936ce19cb15a43af8c408fa92ae45f63f85d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f674114f82d56a3e510a1c4a730acf0d03a6f1cef62444c475b6c2538dcdc95f
MD5 d9bbd9d2bf33479511d7bbd8954c6edf
BLAKE2b-256 fbbf4ed9c9547436ec42afd21b36f02a85c968f30c6e3fbf13683406b16cc90b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.8.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9520d93916620c39463670b03d9595c43135c8dd81be89887e7b2bc19f8f7234
MD5 db45e6b03ac2b79a3d3294493941dd64
BLAKE2b-256 e2ad9ea6956bbe9a81744bb35aa7d968a9ae072af01e2c85d41ed4aba7e0492f

See more details on using hashes here.

File details

Details for the file mindspore-2.8.0-cp39-none-any.whl.

File metadata

  • Download URL: mindspore-2.8.0-cp39-none-any.whl
  • Upload date:
  • Size: 351.2 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.8.0-cp39-none-any.whl
Algorithm Hash digest
SHA256 13e6c7831616c6d3e73d9d089cdb968c8dfbb4233418d1d67b597df0668173c3
MD5 268f8880c282690b89e1462d6b5bf350
BLAKE2b-256 49a1532c692510e57f49d323171b6af9187a6c512eb233300d6e23c0430250af

See more details on using hashes here.

File details

Details for the file mindspore-2.8.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: mindspore-2.8.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 107.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for mindspore-2.8.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7b6fa00eb6b7f57d80c190a33d1aa5d002946c77ec7cc3430634921dfd18d485
MD5 f740624fcd37b22a7383b35a08b62de5
BLAKE2b-256 af432add90ce16acc4b98da44b60396654c7568a4ac41dcb014b2a809b9e61a6

See more details on using hashes here.

File details

Details for the file mindspore-2.8.0-cp39-cp39-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.8.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 14f13fb3bdc08ebfc254c0e6109cd9137cc1c226d03b7870c24988b249176ba3
MD5 95d2c019a6dd1d07f8a8a3c3f3839e91
BLAKE2b-256 39dbe473190a71b864933dde68585251744ad67d246ef07c69e7cc83c8c921a1

See more details on using hashes here.

File details

Details for the file mindspore-2.8.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mindspore-2.8.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e128c7ec7c4d202648bb24491e18a4cf943fd8b98568f69e9f790439dc69f118
MD5 f45a5d61d678a8a350c7f303a2ce1f47
BLAKE2b-256 803067de3eaf5d2c38efe08da3dcd85d35f169f0a3969cf850d7a5d59f4f6ba8

See more details on using hashes here.

File details

Details for the file mindspore-2.8.0-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for mindspore-2.8.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 28a01dcc997c564bb9948ae18f05e97122e64f3cff2fece440398d8a2f34dc15
MD5 fe7c1c6e637143a56a760974f75e65d2
BLAKE2b-256 a75fdd9a89c83bda9cea4ddadb090038b97e33b1a9f5b3dd48c9e30bb79bf6b3

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 Pingdom Monitoring Sentry Error logging StatusPage Status page