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.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 Maintained 2025-05-19 Unmaintained
2026-05-19 estimated
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

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

Uploaded CPython 3.12

mindspore-2.9.0-cp312-cp312-win_amd64.whl (112.1 MB view details)

Uploaded CPython 3.12Windows x86-64

mindspore-2.9.0-cp312-cp312-manylinux1_x86_64.whl (779.8 MB view details)

Uploaded CPython 3.12

mindspore-2.9.0-cp312-cp312-macosx_11_0_arm64.whl (140.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mindspore-2.9.0-cp312-cp312-macosx_10_15_x86_64.whl (169.7 MB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

mindspore-2.9.0-cp311-none-any.whl (362.2 MB view details)

Uploaded CPython 3.11

mindspore-2.9.0-cp311-cp311-win_amd64.whl (113.0 MB view details)

Uploaded CPython 3.11Windows x86-64

mindspore-2.9.0-cp311-cp311-manylinux1_x86_64.whl (781.3 MB view details)

Uploaded CPython 3.11

mindspore-2.9.0-cp311-cp311-macosx_11_0_arm64.whl (153.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mindspore-2.9.0-cp311-cp311-macosx_10_15_x86_64.whl (171.4 MB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

mindspore-2.9.0-cp310-none-any.whl (360.1 MB view details)

Uploaded CPython 3.10

mindspore-2.9.0-cp310-cp310-win_amd64.whl (112.6 MB view details)

Uploaded CPython 3.10Windows x86-64

mindspore-2.9.0-cp310-cp310-manylinux1_x86_64.whl (778.2 MB view details)

Uploaded CPython 3.10

mindspore-2.9.0-cp310-cp310-macosx_11_0_arm64.whl (141.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

mindspore-2.9.0-cp310-cp310-macosx_10_15_x86_64.whl (170.7 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

mindspore-2.9.0-cp39-none-any.whl (360.2 MB view details)

Uploaded CPython 3.9

mindspore-2.9.0-cp39-cp39-win_amd64.whl (112.6 MB view details)

Uploaded CPython 3.9Windows x86-64

mindspore-2.9.0-cp39-cp39-manylinux1_x86_64.whl (778.3 MB view details)

Uploaded CPython 3.9

mindspore-2.9.0-cp39-cp39-macosx_11_0_arm64.whl (153.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

mindspore-2.9.0-cp39-cp39-macosx_10_15_x86_64.whl (170.7 MB view details)

Uploaded CPython 3.9macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp312-none-any.whl
  • Upload date:
  • Size: 360.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.9.0-cp312-none-any.whl
Algorithm Hash digest
SHA256 ab1b08e80d0a9717a85f0dc3dc23ad5ab63f87a8bdcadda0603b77bc394adb2c
MD5 8ac9f1f9aaa62ebe7721fb1de14353fa
BLAKE2b-256 f0b4b3f7f4ebd55920c8d7c5c3d2d6f9d432b17f358010abd38496207cc661da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.1 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.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 50a0d64c077c603b17b3144c50a111902256bb49e6699a9187572d678d63e10d
MD5 86cca9da82e1431927f8ad8540f5a01d
BLAKE2b-256 3214b5b6544882bd881906cb9f512514b546ecf802b786cc1ebc84f09cf15bf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2b91f07f60be253ed3ad04774060214c3dfa064854618f70f0bc519f83437230
MD5 313304ca31ef3cc9e466f19eb48349c8
BLAKE2b-256 d6ede41b954a2abaabb6601ee6b57a017b568c332a65c2ab5b7cafc0930faccd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e2e2f9e1f38f844626e4c8c395e618343493d06f2e5d71da811ca13701216eb
MD5 6dfa410020a8dc546040018ed9b94749
BLAKE2b-256 842e5de9b575b2e617c31b55a07c3765eeec5f777a96ce918de818d71ac42d5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 571caceec0979b93f5675d77acd53bb60254227b7c3e53be9224755405205bd3
MD5 9ed40abccc390c11cc8f8f926280ed76
BLAKE2b-256 04d3785790857a16d337e0c62052c1afcceb51757d1229e10deaa53bd1dc4163

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp311-none-any.whl
  • Upload date:
  • Size: 362.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.9.0-cp311-none-any.whl
Algorithm Hash digest
SHA256 563e1b78e96ac66df20003420ddb9a02d0251c3d13cfc0c1ac07a5064260683f
MD5 2128ffefddd08c4a35578592aab66f5b
BLAKE2b-256 c2e884bd9e17bdc779b7e14a6315c2b79c76e4c6c8c6040f647a96922e87b047

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3bf2bc89c44d0299d36cb8a2137f8e8cc3e83fa70d953f6e0416de2e9c319b21
MD5 840b62a2dd53c3749a433d92754445af
BLAKE2b-256 2ddbb47231f264e8a2a411f6ef4036091cf4be4964ca21b0607552680a258dff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e521c4494b1a96681e0c89aa534b75dfc8daa76c7e3868cb3403fea6834a212f
MD5 452f6e3862767b3e143b599f3247289a
BLAKE2b-256 312f4a98a9131273c1fba6a6635ccfd12504fe4f6aef94964d3c45cd2b1c426a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19aadf62bb76f1f9248aef47508fb871762866e11f09f118ef40ab78ec42b245
MD5 30645029d46d615a3660006691d0579f
BLAKE2b-256 3a40e64185b596c5c8492a5639592578c50a1888dbb2c69fa6cec5a5af4d5f54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 fb7f2dc0a67531a5a20cba5e0b9a9b813ac6ef1aaab74b952894423147f7a7c8
MD5 1bad3b4ff7fd12aabb38d05a536f3341
BLAKE2b-256 5fd5759161a737185db24ce084b346e19d090c2796ea7b03edba4cc4a13f6e9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp310-none-any.whl
  • Upload date:
  • Size: 360.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.9.0-cp310-none-any.whl
Algorithm Hash digest
SHA256 55d305c8cf1fc88262b2217c586879a144ecd0e4312e76298875c48987a422d0
MD5 39edb01dd0ec85c17e11643d62b28ff8
BLAKE2b-256 29d43e313dc1523401a933ac3df792270de46355d7b88ddab6692001fe7560df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc83869e19f067f6dfa6f1b241762ebc782d9f083610af1ee9ba7a8e19a5ba1b
MD5 3a1a1b40724308af7879f611426548a0
BLAKE2b-256 02fde9a951ad806277cabe6bebd420f325d6de7fc87bc3030f43a51fb28339fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b3a06a051a580c8699a0e027673439b8320850af052c1fa6806dea3eed0f2711
MD5 2777d113f472d9ebcb6b226c597b1e50
BLAKE2b-256 12987a7b6b447aa4aff43c0aa53c5fb7327eaf30a40bc28d1eddba02defda2b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84dffc97b8b164161353f8fbb86acd3a90598dbc76c63e62e1b756a5cd01e436
MD5 f38e785b7be8ca62fc7d8c79226d0b88
BLAKE2b-256 b21a0a55c893e44d1f35d80557a7074e538d2748e2c1ea0bc43b287f2c5d31df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 5a458e2a88cd1e7a47133ff647fca90b3778bb70389dabed2bd37f8d6dd7e7c0
MD5 3975613ad06246ab2aed208c4ac78f6c
BLAKE2b-256 9c82ab03b3d939cf5d5b1dbe858dda94f6c286204e3183e578726787896eeab6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp39-none-any.whl
  • Upload date:
  • Size: 360.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.9.0-cp39-none-any.whl
Algorithm Hash digest
SHA256 555a67f0c63d140b38b4342b6e937126a1b76b3592a84cab2f008ece14200c5b
MD5 cd728021c0829b06dcd8613ab7b81df1
BLAKE2b-256 e0d36c83a050d34722e6a0565dafdc599a55db54108160ef1dee336b2a65f40f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindspore-2.9.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.9.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ed42b78f8db2b472546f7c49c027b09df0a5f2b8b0d113c2ac13fe3c2427e8d2
MD5 789d9e1820582269942d5bf3241383d5
BLAKE2b-256 40437337b6be2402784873b0045d20ee6d2de9043acc95a86c40093f10c40b6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 44570b13ca5f285145373217c0f523b5f3eb65c3ca87b892c83bdb66ebbf9e6d
MD5 2e40f1021d886266a2d03f7599a7a49b
BLAKE2b-256 ea7b3db432dd83a387d7adbb300686f2d69c54f2a2e974f406aea5e5efb740c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5dd4e0467cb16c37d5cfe4cd1ebb376bfd9a51787489307e9fefc6df71d88096
MD5 023a30a5ee51d885f227af00ea76abe0
BLAKE2b-256 93b6dcac02104b1cbec7fd8f1b2d75db32c1c4a6b1c13ff79e0e224d277bf603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mindspore-2.9.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2324f8b6f48469da2a7ef7740fa65a5b525f1628d8e733310514cbc1be3a1b6f
MD5 2c2094311e96bcab9d0f6d2d39f72233
BLAKE2b-256 3b89870eec8c9a2ec72f9c9c1859da6a6e7376ab754e28573685b617b8ab531c

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