FAQ_en.md 8.9 KB
Newer Older
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
1 2 3 4 5 6 7
# FAQ

<!-- TOC -->

- [FAQ](#faq)
    - [Installation](#installation)
        - [Pip Installation](#pip-installation)
8
        - [Source Code Compilation Installation](#source-code-compilation-installation)
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
9 10 11
    - [Support](#support)
        - [Model Support](#model-support)
        - [Backend Support](#backend-support)
12
        - [System Support](#system-support)
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
        - [Programming Language](#programming-language)
        - [Others](#others)
    - [Features](#features)
    - [Capabilities](#capabilities)

<!-- /TOC -->

## Installation

### Pip Installation

Q: Any specific requirements for Python version when pip install MindSpore?

A: MindSpore utilizes many of the new features in Python3.7+,therefore we recommend you add Python3.7.5 develop environment via `conda`.

<br/>

Z
zhoufeng 已提交
30 31 32 33 34 35
Q: What should I do when error `SSL: CERTIFICATE_VERIFY_FAILED` occurs during pip install?

A: Please append parameter `--trusted-host=ms-release.obs.cn-north-4.myhuaweicloud.com` after pip install command and try again.

<br/>

L
liubuyu 已提交
36 37 38 39 40 41 42 43 44 45 46 47
Q:What should I do when error `ProxyError(Cannot connect to proxy)` prompts during pip install?

A:It is generally a proxy configuration problem, you can using `export http_proxy={your_proxy}` on Ubuntu environment, and using `set http_proxy={your_proxy}` in cmd on Windows environment to config your proxy.

<br/>

Q:Some frequently-used environment settings need to be reset in the newly started terminal window, which is easy to be forgotten, What should I do?

A:You can write the frequently-used environment settings to `~/.bash_profile` or `~/.bashrc` so that the settings can take effect immediately when you start a new terminal window.

<br/>

Y
yingchen 已提交
48
Q: What should I do when error prompts during pip install?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
49 50 51 52 53 54

A: Please execute `pip -V` to check if pip is linked to Python3.7+. If not, we recommend you
use `python3.7 -m pip install` instead of `pip install` command.

<br/>

Y
yingchen 已提交
55
Q: What should I do if I cannot find whl package for MindInsight or MindArmour on the installation page of MindSpore website?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
56 57 58

A: You can download whl package from the official [MindSpore Website download page](https://www.mindspore.cn/versions) and manually install it via `pip install`.

59
### Source Code Compilation Installation
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
60

Y
yingchen 已提交
61
Q: What should I do if the compilation time of MindSpore source code takes too long or the process is constantly interrupted by errors?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
62

63
A: MindSpore imports third party dependencies through submodule mechanism, among which `protobuf` v3.8.0 might not have the optimal or steady download speed, it is recommended that you perform package cache in advance.
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
64 65 66

<br/>

67 68 69 70 71 72
Q: How to change installation directory of the third party libraries?

A: The third party libraries will be installed in build/mindspore/.mslib, you can change the installation directory by setting the environment variable MSLIBS_CACHE_PATH, eg. `export MSLIBS_CACHE_PATH = ~/.mslib`.

<br/>

Y
yingchen 已提交
73
Q: What should I do if the software version required by MindSpore is not the same with the Ubuntu default software version?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
74 75 76 77 78

A: At the moment some software might need manual upgrade. (**Note**:MindSpore requires Python3.7.5 and gcc7.3,the default version in Ubuntu 16.04 are Python3.5 and gcc5,whereas the one in Ubuntu 18.04 are Python3.7.3 and gcc7.4)

<br/>

Y
yingchen 已提交
79
Q: What should I do if there is a prompt `tclsh not found` when I compile MindSpore from source code?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
80 81 82

A: Please install the software manually if there is any suggestion of certain `software not found`.

昇思MindSpore's avatar
fix FAQ  
昇思MindSpore 已提交
83 84 85 86 87 88
<br/>

Q: What should I do if prompt message is that the directory path has Chinese garbled code when I compile MindSpore from source code in Windows system?

A: Please change the Chinese directory to English, and make sure there are no Chinese characters in the directory.

昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
89 90 91 92
## Support

### Model Support

Y
yingchen 已提交
93
Q: What types of model is currently supported by MindSpore for training?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
94 95 96

A: MindSpore has basic support for common training scenarios, please refer to [Release note](https://gitee.com/mindspore/mindspore/blob/master/RELEASE.md) for detailed information.

97 98 99 100
<br/>

Q: What are the available recommendation or text generation networks or models provided by MindSpore?

T
Ting Wang 已提交
101
A: Currently, recommendation models such as Wide & Deep, DeepFM, and NCF are under development. In the natural language processing (NLP) field, Bert\_NEZHA is available and models such as MASS are under development. You can rebuild the network into a text generation network based on the scenario requirements. Please stay tuned for updates on the [MindSpore Model Zoo](https://gitee.com/mindspore/mindspore/tree/master/model_zoo).
102

昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
103 104
### Backend Support

Y
yingchen 已提交
105
Q: When install or run MindSpore, are there any requirements for hardwares like GPU, NPU and so forth?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
106 107 108 109 110

A: MindSpore currently supports Ascend AI processor, CPU and GPU。For common models like lenet you can try run MindSpore on CPU alone.

<br/>

Y
yingchen 已提交
111
Q: Does MindSpore have any plan on supporting other types of heterogeneous computing hardwares?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
112 113 114

A: MindSpore provides pluggable device management interface so that developer could easily integrate other types of heterogeneous computing hardwares like FPGA to MindSpore. We welcome more backend support in MindSpore from the community.

115 116 117 118 119 120 121 122 123 124
<br/>

Q: What hardware does MindSpore require?

A: Currently, you can try out MindSpore through Docker images on laptops or in environments with GPUs. Some models in MindSpore Model Zoo support GPU-based training and inference, and other models are being improved. For distributed parallel training, MindSpore supports multi-GPU training. You can obtain the latest information from [RoadMap](https://www.mindspore.cn/docs/en/master/roadmap.html) and project [Release Notes](https://gitee.com/mindspore/mindspore/blob/master/RELEASE.md).

### System Support

Q: Does MindSpore support Windows 10?

J
JunYuLiu 已提交
125
A: The MindSpore CPU version can be installed on Windows 10.
126

昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
127 128
### Programming Language

Y
yingchen 已提交
129
Q: The recent announced programming language such as taichi got Python extensions that could be directly used as `import taichi as ti`. Does MindSpore have similar support?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
130 131 132 133 134

A: MindSpore supports Python native expression via `import mindspore`

<br/>

Y
yingchen 已提交
135
Q: Does MindSpore plan to support more programming languages other than Python?
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
136 137 138 139 140 141 142 143 144

A:MindSpore currently supports Python extensions,bindings for languages like C++、Rust、Julia are on the way.

### Others

Q: How does MindSpore implement semantic collaboration and processing? Is the popular Formal Concept Analysis (FCA) used?

A: The MindSpore framework does not support FCA. For semantic models, you can call third-party tools to perform FCA in the data preprocessing phase. MindSpore supports Python therefore `import FCA` could do the trick.

145 146 147 148 149 150
<br/>

Q: Where can I view the sample code or tutorial of MindSpore training and inference?

A: Please visit the [MindSpore official website](https://www.mindspore.cn/tutorial/en/master/index.html).

昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
151 152 153 154
## Features

Q: Does MindSpore have any plan or consideration on the edge and device when the training and inference functions on the cloud are relatively mature?

155
A: MindSpore is a unified cloud-edge-device training and inference framework. Edge has been considered in its design, so MindSpore can perform inference at the edge. The open-source version will support Ascend 310-based inference. The optimizations supported in the current inference stage include quantization, operator fusion, and memory overcommitment.
昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
156

157 158 159 160 161 162 163 164 165 166 167 168
<br/>

Q: How does MindSpore support automatic parallelism?

A: Automatic parallelism on CPUs and GPUs are being improved. You are advised to use the automatic parallelism feature on the Ascend 910 AI processor. Follow our open source community and apply for a MindSpore developer experience environment for trial use.

<br/>

Q: What is the relationship between MindSpore and ModelArts? Can MindSpore be used on ModelArts?

A: ModelArts is an online training and inference platform on HUAWEI CLOUD. MindSpore is a Huawei deep learning framework. You can view the tutorials on the [MindSpore official website](https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/use_on_the_cloud.html) to learn how to train MindSpore models on ModelArts.

昇思MindSpore's avatar
add faq  
昇思MindSpore 已提交
169 170 171 172 173
## Capabilities

Q: Does MindSpore have a module that can implement object detection algorithms as TensorFlow does?

A: The TensorFlow's object detection pipeline API belongs to the TensorFlow's Model module. After MindSpore's detection models are complete, similar pipeline APIs will be provided.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191

<br/>

Q: How do I migrate scripts or models of other frameworks to MindSpore?

A: For details about script or model migration, please visit the [MindSpore official website](https://www.mindspore.cn/tutorial/en/master/advanced_use/network_migration.html).

<br/>

Q: Does MindSpore provide open-source e-commerce datasets?

A: No. Please stay tuned for updates on the [MindSpore official website](https://www.mindspore.cn/en).

<br/>

Q: How simple can the MindSpore model training code be?

A: MindSpore provides Model APIs except for network definitions. In most scenarios, model training can be completed using only a few lines of code.