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

查看中文

What Is MindSpore Lite

MindSpore lite is a high-performance, lightweight open source reasoning framework that can be used to meet the needs of AI applications on mobile devices. MindSpore Lite focuses on how to deploy AI technology more effectively on devices. It has been integrated into HMS (Huawei Mobile Services) to provide inferences for applications such as image classification, object detection and OCR. MindSpore Lite will promote the development and enrichment of the AI software/hardware application ecosystem.

MindSpore Lite Architecture

For more details please check out our MindSpore Lite Architecture Guide.

MindSpore Lite features

  1. Cooperative work with MindSpore training

    • Provides training, optimization, and deployment.
    • The unified IR realizes the device-cloud AI application integration.
  2. Lightweight

    • Provides model compress, which could help to improve performance as well.
    • Provides the ultra-lightweight reasoning solution MindSpore Micro to meet the deployment requirements in extreme environments such as smart watches and headphones.
  3. High-performance

    • The built-in high-performance kernel computing library NNACL supports multiple convolution optimization algorithms such as Slide window, im2col+gemm, winograde, etc.
    • Assembly code to improve performance of kernel operators. Supports CPU, GPU, and NPU.
  4. Versatility

    • Supports IOS, Android.
    • Supports Lite OS.
    • Supports mobile device, smart screen, pad, and IOT devices.
    • Supports third party models such as TFLite, CAFFE and ONNX.

MindSpore Lite AI deployment procedure

  1. Model selection and personalized training

    Select a new model or use an existing model for incremental training using labeled data. When designing a model for mobile device, it is necessary to consider the model size, accuracy and calculation amount.

    The MindSpore team provides a series of pre-training models used for image classification, object detection. You can use these pre-trained models in your application.

    The pre-trained model provided by MindSpore: Image Classification. More models will be provided in the feature.

    MindSpore allows you to retrain pre-trained models to perform other tasks.

  2. Model converter and optimization

    If you use MindSpore or a third-party model, you need to use MindSpore Lite Model Converter Tool to convert the model into MindSpore Lite model. The MindSpore Lite model converter tool provides the converter of TensorFlow Lite, Caffe, ONNX to MindSpore Lite model, fusion and quantization could be introduced during convert procedure.

    MindSpore also provides a tool to convert models running on IoT devices .

  3. Model deployment

    This stage mainly realizes model deployment, including model management, deployment, operation and maintenance monitoring, etc.

  4. Inference

    Load the model and perform inference. Inference is the process of running input data through the model to get output.

    MindSpore provides pre-trained model that can be deployed on mobile device example.

MindSpore Lite benchmark test result

We test a couple of networks on HUAWEI Mate40 (Hisilicon Kirin9000e) mobile phone, and get the test results below for your reference.

NetWork Thread Number Average Run Time(ms)
basic_squeezenet 4 6.415
inception_v3 4 36.767
mobilenet_v1_10_224 4 4.936
mobilenet_v2_10_224 4 3.644
resnet_v2_50 4 25.071

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

mindspore_lite-2.0.0-cp37-none-any.whl (56.0 MB view details)

Uploaded CPython 3.7

mindspore_lite-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (168.6 MB view details)

Uploaded CPython 3.7m

File details

Details for the file mindspore_lite-2.0.0-cp37-none-any.whl.

File metadata

  • Download URL: mindspore_lite-2.0.0-cp37-none-any.whl
  • Upload date:
  • Size: 56.0 MB
  • Tags: CPython 3.7
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.1

File hashes

Hashes for mindspore_lite-2.0.0-cp37-none-any.whl
Algorithm Hash digest
SHA256 9006b56a0285833802b4880f34cbce5f94111ef5ca4071d5df5c61e8c2a3a6f7
MD5 5be5ab9cb33a0d569a95d2319a0a7cf0
BLAKE2b-256 28cb928ff13776e770db06d5da286fdbf996e465b48cc5a4a052f3e59b5933db

See more details on using hashes here.

File details

Details for the file mindspore_lite-2.0.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: mindspore_lite-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 168.6 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.1

File hashes

Hashes for mindspore_lite-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 199cd0605cc985b88eddb273db9dfe9000a585ba10ca2292b6b36ebfff07b3ec
MD5 592dbed5fa97202b7df41dc6f3c458ed
BLAKE2b-256 7998e7c9c632205761f21bdd3ea9d0034e72df25eaa0ba34117087b18e18dfd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page