73 KiB
MindSpore 1.1.0 Release Notes
MindSpore
Major Features and Improvements
NewModels
- [STABLE] GNMT v2: similar to the model described in Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation, which is mainly used for corpus translation, on WMT Englis-German dataset.(Ascend)
- [STABLE] MaskRCNN: a conceptually simple, flexible, and general framework for object instance segmentation on COCO2017 dataset.(Ascend)
- [STABLE] YOLOv4: a state-of-the-art detector which is faster and more accurate than all available alternative detectors on MS COCO dataset.(Ascend)
- [STABLE] Openpose: proposes a bottom-up human attitude estimation algorithm using Part Affinity Fields on COCO2017 dataset.(Ascend)
- [STABLE] CNN-CTC: proposes three major contributions to addresses scene text recognition (STR) on MJSynth and SynthText dataset.(Ascend)
- [STABLE] CenterFace: a practical anchor-free face detection and alignment method for edge devices on WiderFace dataset.(Ascend)
- [STABLE] ShuffleNetV2: a much faster and more accurate netowrk than the previous networks on ImageNet 2012 dataset.(GPU)
- [STABLE] EfficientNet-B0: a new scaling method that uniformly scales all dimensions of depth/width/resolution using a simple yet highly effective compound coefficient on ImageNet 2012 dataset.(GPU)
- [BETA] SSD-GhostNet: based on an Ghost module structure which generate more features from cheap operations on Oxford-IIIT Pet dataset.(Ascend)
- [BETA] DS-CNN: Depthwise separable convolutional neural network on Speech commands dataset.(Ascend)
- [BETA] DeepPotentialH2O: A neural network model for molecular dynamics simulations. (Ascend)
- [BETA] GOMO: A classical numerical method called GOMO for ocean simulation. (GPU)
FrontEnd
- [STABLE] Refactor the MINDIR to support 310 inference(Ascend).
- [STABLE] The execution backend of sparse operations in optimizer can be set through 'target'. (Ascend/GPU/CPU)
- [STABLE] Support saving specified network to checkpoint and filtering parameters according to prefix when load checkpoint. (Ascend/GPU/CPU)
- [STABLE] Allow users choose whether to load parameter into network strictly.(Ascend/GPU/CPU)
- [STABLE] Before training, in graph mode, in order to have the same network initialization parameter values for all devices, broadcast the parameters on device 0 to other devices. (Ascend/GPU)
- [STABLE] Support if by if of control flow subgraph. (Ascend/GPU)
- [STABLE] Support the judgment that whether a tensor is in a list. (Ascend/GPU/CPU)
- [STABLE] Support to get a value by using the corresponding key in a dictionary in the network; Support to get keys and values of a dictionary in the network. (Ascend/GPU/CPU)
- [STABLE] Support Tensor in enumerate. (Ascend/GPU/CPU)
- [STABLE] Support multilevel index assignment. (Ascend/GPU/CPU)
- [STABLE] Support the 'expand_as','view','abs','mean' method of Tensor. (Ascend/GPU/CPU)
- [STABLE] Support ResizeBilinear operation transfer ratio. (Ascend)
- [STABLE] nn.Matmul supports matrix-vector product and batched matrix multiply. (Ascend/GPU)
- [STABLE] nn.Dense supports input tensor whose dimension can be greater than 2. (Ascend/GPU)
- [BETA] Support higher order differentiation for partial operators.(CPU/GPU/Ascend)
- [STABLE] Support Tensor Augassign.(Ascend/GPU)
- [BETA] Support 22 numpy native interfaces.
Auto Parallel
- [STABLE] Support parallel optimizer with weight shard. (Ascend/GPU)
- [STABLE] Support distributed operators: element-wise series, UnsortedSegmentSum, UnsortedSegmentMin, Split, BroadcastTo and Unique etc. (Ascend/GPU)
- [STABLE] Support distributed model prediction. (Ascend/GPU)
- [STABLE] Support auto mixed precision level "O2" in auto and semi auto parallel mode. (Ascend/GPU)
- [STABLE] Add MultiFieldEmbeddingLookup high-level interface. (Ascend/GPU)
Executor
- [STABLE] ResNet50 performance optimize. (GPU)
- [STABLE] Support modelzoo net in PyNative mode(Ascend 29, GPU 23, CPU 2).(Ascend/GPU/CPU)
- [STABLE] Support PyNative mode on CPU.(CPU)
- [STABLE] Optimize performance in PyNative mode.(Ascend/GPU/CPU)
- [STABLE] Support Safe Optimized Memory Allocation Solver (SOMAS) on Ascend to improve the memory-reuse, the batch size of Bert large model (128 sequence length) is increased from 160 to 208.(Ascend)
- [BETA] Support second order differentiation in PyNative mode.(Ascend/GPU)
- [DEMO] Add distributed trainning in PyNative mode.(Ascend/GPU)
MDP
- [STABLE] Add new operators for Ascend and GPU: IGamma, LGamma, DiGamma;
- [STABLE] Add new distributions for Ascend and GPU: LogNormal, and Logistic;
- [BETA] Add new distributions for Ascend only: Gumbel, Cauchy, Gamma, Beta, and Poisson; Add Categorical distribution for GPU;
- [STABLE] Add new bijectors for Ascend and GPU: GumbelCDF, Invert;
- [STABLE] Add Bayesian layer realized by local reparameterization method for Ascend and GPU;
- [STABLE] Add Anomaly Detection Toolbox based on VAE for Ascend and GPU.
DataSet
- [STABLE] Support single node multi-p distributed cache data sharing
- [STABLE] Support GPU profiling with data processing
- [STABLE] Support YOLOV3 dynamic shape in sink mode with dataset
- [STABLE] Support unique processing in the data processing pipeline
- [STABLE] Python layer parameter verification error information unified
API Change
Backwards Incompatible Change
Python API
Parts of Optimizer
add target interface (!6760)
The usage of the sparse optimizer is changed.
The target interface is used to set the execution backend of the sparse operator.
The add_primitive_attr interface is no longer allowed.
The following optimizers add the target interface: Adam, FTRL, LazyAdam, ProximalAdagrad
1.0.1 | 1.1.0 |
|
|
export
Modify the input parameters and export's file name (!7385, !9057)
Export the MindSpore prediction model to a file in the specified format.
The reference includes: net
, *inputs
, file_name
, file_format
, **kwargs
.
Input parameters can be input according to specific export requirements.
Add the file name extension based on the format.
1.0.1 | 1.1.0 |
|
|
Dense
, Conv2dBnAct
, DenseBnAct
, DenseQuant
support setting the activation attribute as an instance of a class derived from nn.Cell
or Primtive
(!7581)
activation (Union[str, Cell, Primitive]): activate function applied to the output of the fully connected layer
1.0.1 | 1.1.0 |
|
|
tensor.dim()
, tensor.size()
has been renamed to tensor.ndim
, tensor.size
(!10175)
Previously, tensor.size() and tensor.dim() were used for checking the total number of elements/dimensions in the tensor. However, from a user's perspective, tensor.size and tensor.ndim (methods -> properties) are better choices, since they follow the numpy naming convention.
1.0.1 | 1.1.0 |
|
|
EmbeddingLookup
add a config in the interface: sparse (!8202)
sparse (bool): Using sparse mode. When 'target' is set to 'CPU', 'sparse' has to be true. Default: True.
1.0.1 | 1.1.0 |
|
|
nn.probability.bijector
change types of attributes from (int, float) to (float, list, numpy.ndarray, Tensor) (!8191)
Attributes Type change: (int, float) -> (float, list, numpy.ndarray, Tensor). Int type is not supported anymore. Parameters of all bijectors should be type float, list, numpy.ndarray or Tensor.
1.0.1 | 1.1.0 |
|
|
nn.probability.bijector.GumbelCDF
remove a attribute in the interface: dtype (!8191)
dtype is removed from GumbelCDF and is no longer an argument of the class.
1.0.1 | 1.1.0 |
|
|
nn.layer.combined.Conv2dBnAct
, nn.layer.combined.DenseBnAct
move from nn.layer.quant to nn.layer.combined (!8187)
Previously Conv2dBnAct and DenseBnAct are in nn.layer.quant, since they are not quant cells, now they are moved to nn.layer.combined. If you import Conv2dBnAct, DenseBnAct from mindspore.nn, then your code dosen't need any change.
1.0.1 | 1.1.0 |
|
|
nn.layer.conv.Conv2D
, nn.layer.quant.Conv2dBnFoldQuant
, nn.layer.quant.Conv2dBnWithoutFoldQuant
change weight shape when group > 1 in Ascend platform (!9723)
In Ascend platform, if group > 1, the weight shape of Conv2D change from [in_channels//group, out_channels, kernel_size, kernel_size] to [out_channels, in_channels//group, kernel_size, kernel_size]. Previously, checkpoints of the networks are used, which use Conv2D with group > 1, such as MobileNet, can not be directly used now, need to transpose the first and second axis of the weight.
Bug fixes
FrontEnd
- [STABLE] Fix the problem of the cse optimization in the situation of control flow. (Ascend/GPU)
Auto Parallel
- [STABLE] Resolve the restriction: input and output layouts of Reshape are restricted in tensor redistribution. (Ascend/GPU)
- [STABLE] Resolve the restriction: output strategy should be data parallel in model evaluation. (Ascend/GPU)
Executor
- [STABLE] Fix fusion operator compilation cache. (Ascend)
- [STABLE] Fix compilation error of dynamic shape operator. (Ascend)
- [STABLE] Fix bug of pynative cannot insert transdata of node output when node should be spilted in the backend opt.(Ascend)
- [STABLE] Fix the bug of TensorMove and memcpy_async merge to one after backend cse pass (Ascend)
DataSet
- [STABLE] Fix cache server hang on RequestFreeTag. (Ascend/GPU/CPU)
- [STABLE] Fix hung when use pyfunc multi-processing. (Ascend/GPU/CPU)
- [STABLE] Fix add multiple parent nodes to tree node cause core dump. (Ascend/GPU/CPU)
MindSpore Lite
Converter and runtime
- Support dynamic shape in MindSpore Lite Converter.
- Optimize sub-graph mechanism by dynamically splitting the entire graph into multiple subgraphs based on the operator supported, backend hardware and user configuration.
- Support TensorList and TensorList operators such as TensorListFromTensor, TensorListGetItem and so on.
- Support BatchMatMul fusion and LSTM fusion in MindSpore Lite Converter.
- Support converting model and run inference on Windows operator system.
- Support Model(.ms) visualization on Netron.
- Support Tensorflow model in MindSpore Lite Converter
- Add 86 converter parsers.
- Convert aware training model without user’s awareness
- Support scalar tensor in MindSpore Lite Converter and Runtime
- Support NPU backend on HUAWEI Kirin SoC.[BETA]
- Merge timeprofiler into benchmark
ARM backend optimization
- Add 50+ new operators, including new Op type(like Adder, Gru).
- Enhanced performance on armv8.2 supported platform. For example, utilizing sdot instruction more efficiently.
- Optimize all operators(fp32, fp16, int8) by implementing multi-thread, SIMD tech as much as possible. Model inference time can reduce at least 20% after these optimizations.
- Extending to support operators for x86_64 platform based on SSE/AVX instruction set.
OpenCL backend
- Add new ops: add 10+ ops, total 58 ops;
- Performance optimization: by memory layout optimize, Winograd Convolution select strategyoptimize, SIMT local size optimize, local cache optimize, GPU performance improvement up to 20+% vs MSLITE Version1.0
- Add Online Graph optimzation: by fusion Convolution/Matmul/Fullconnection and add/mul/pad/reshape, improve performance up to 50+% for some networks;
- Add auto tuning: by online tuning in the graph compilation phase, optimize performance up to 10%;
- Add weight quant: support weight quant
- Add opencl kernel binary cache: improve Initilization time .
Post quantization
MindSpore Lite supports both weight quantization and full quantization. Currently, Weights can be quantized into 1 ~ 16 bits according to user configuration. In internal testing, quantization of networks, such as classification, detection, segmentation and transformer are well supported. To ensure high accuracy of quantized models, MindSpore Lite uses a pipeline quantization method. In the first phase, the weight and activation value are quantized using linear quantization methods, such as MIN-MAX. In the second phase, the quantization error is analyzed, and uses statistical methods to compensate loss caused by fp32 quantization to a fixed point such as Int8 to quantized models. The features of Post-training quantization are:
- perchannel asymmetric quantization for weights, such as MAX_MIN and KMEANS
- Perlayer symmetric quantization for activation, such as KL and MAX_MIN.
- perlayer asymmetrical quantization for activation, such as, RemoveOutlier.
- accuracy loss compensation, such as BiasCorrection
mobilenet_v2 | ACC (ImageNet) |
---|---|
FP32 | 71.56% |
A8W8 | 71.16% |
A8W8(without BiasCorrection) | 70.74% |
A8W7 | 71.06% |
A7W7 | 70.78% |
The above table uses the mobilenet_v2 model from TF official website. Using MindSpore Lite quantization, the precision of A8W8 (8-bit activation value quantization and 8-bit weight quantization) decreases from 0.82% to 0.4% after accuracy loss compensation, for 7-bit quantization, the precision loss is still no more than 1%.
Training on Device
Within MindSpore 1.1 release, the MindSpore Lite provides the following Training-on-Device (ToD) capabilities:
- Learning from scratch and Transfer Learning strategies are supported
- MindSpore based models can be converted and used in training on the device. (Third-party models such as TensorFlow and PyTorch for now cannot be directly imported to the framework)
- Grad operations are supported for more than 30 operators such as Dense layers, Convolutions and Batch Normalizations. Momentum, SGD, and ADAM optimizers are supported.
- Supports networks such as LeNet, Alexnet, Resnet, MobileNetV1/V2/V3, and EffectiveNet, and provides complete model loading, conversion, and Python training scripts on the device side.
The MindSpore Lite ToD framework is already in use in the newest Huawei Smart TV, providing a unique and personalized user experience as a family entertainment center.
API Change
API Incompatible Change
C++ API
- [Modify] Context now support multi-context configuration.(Context.h)
- [Modify] Callback is move from lite_session.h into ms_tensor.h.
- [Modify] GetInputsByName in lite_session.h is changed into GetInputsByTensorName
- [Add] add static LiteSession CreateSession(const charmodel_buf, size_t size, const lite::Context *context) in lite_session.h
- [Add] add GetErrorInfo interface returning error message in errorcode.h
- [Delete] Remove model_generated.h, ops_generated.h and headers of FlatBuffers library from interfaces
Java API
- [Add] Implament JNI layer and add Java api for CPU and GPU backend
Deprecations
C++ API
Deprecate Interface GetOutputsByNodeName
Bug fixes
- [BUGFIX] Fix the bug in sub-graph segmentation
- [BUGFIX] Fix the bug in Tensor getitem in which the ellipsis matches the wrong dim-size.
- [BUGFIX] Fix the bug that activation modification after defining Dense will not take effect.
Contributors
zhouyifengCode, huqi, JulyAi, damon0626, chenbo116, rmdyh, davidmc, gray0v0, doitH, Gogery, zymaa, xinyunfan
MindSpore 1.0.0 Release Notes
Major Features and Improvements
MindSpore Training and Inference Framework
Ascend 910
- New models
- DenseNet121: a dense convolutional neural network, which connects each layer to every other layer in a feed-forward fashion for object recognition on ImageNet dataset.
- UNet2D-Medical: Unet Medical model for 2D image segmentation, Convolutional Networks for Biomedical Image Segmentation on ISBI Challenge database.
- Frontend and user interface
- Second-Order Optimization
- Enable second-order optimization for Bert on Ascend 910, which can achieve a masked lm accuracy of 71.3% in 800 seconds using 8 Ascend 910 (Bert-Large @MLPerf v0.7 dataset).
- New GNN model BGCF
- Bayesian Graph Convolutional Filtering network which naturally incorporate the uncertainty in the user-item interaction graph shows excellent recommendation performance on Amazon-Beauty dataset.
- Add append interface for SequentialCell.
- Add a level
auto
for AMP.
- Second-Order Optimization
- Executor and performance optimization
- Support quantitative network (Resnet50 & YoloV3 & MobileNetV2).
- Project ease of use optimization: project compilation time optimization, CMakelist regularization, cudnn, cuda independent compilation and installation independent.
- Data processing, augmentation, and save format
- Support GeneratorDataset return string type
Other Hardware Support
- GPU platform
- Enable second-order optimization for resnet50 on GPU, which achieve 30% improvement on training time compared to SGD with Momentum (Resnet50 @ImageNet).
User interfaces change log
- Remove global object GradOperation in Autodiff(!5011)
- Remove useless attribute 'name' in Autodiff(!5172)
- Rectification distributed init(!5350)
- Move the setting of ParalleMode from train.parallel_utils to context(!5351)
- Modification of save_checkpoint(!5482)
- Wrap numpy random seed into an api(!5634)
- Delete enable_fused_layernorm in some modelzoo scripts(!5665)
- Move 'multi-subgraphs' interface to internal(!5696)
- Rename mirror_mean to gradient_mean(!5700)
- Remove default value of 'group' of DepthWiseConv2d(!5865)
- Modify interface for function and remove duplicated def(!5958)
- Unify Conv2d and DepthwiseConv2d(!5916)
- Modification of SoftmaxCrossEntropyWithLogits(!5502)
- Change API set_strategy() to shard()(!5991)
- Move batch_size from bert_cfg_cfg to cfg(!6233)
- Remove unused parameters from SummaryRecord init(!5548)
- remove sens parameter of TrainOneStepWithLossScaleCell(!5753)
- optimize the TrainOneStepCell for user's define(!6159)
- delete seed0 and seed1 of nn.Dropout(!5735)
- delete DataWrapper(!6101)
- LSTM API optimization(!6374)
- Merge P\C\F of ops(!5645)
- delete SoftmaxCrossEntropyExpand interface(!6607)
- Adjust GroupNorm interface(!6329)
- Modify init interface to internal interface(!6651)
- Log optimization(!5842)
- Remove useless API dataset.set_dataset_size(!5806)
- Some of Dataset API add usage parameter(!5605)
- Change the import path, such as from mindspore.dataset.transforms.vision to mindspore.dataset.vision.transforms(!5384)
- Rename ImageFolderDatasetV2 to ImageFolderDataset(!5384)
- Dataset.map parameter optimization(!5384)
- Add new api dataset.get_col_names(!5384)
- Add new api dataset.get_col_names(!5384)
- Remove useless API MindRecord finish(!5580)
MindSpore Lite
-
Converter
- Add 6 TFLite op, 7 Caffe op, 1 ONNX op.
- Add support for Windows.
- Support parallel inference of multiple sessions to adapt to more scenarios
- Support 8bits only weight-quantization, most main-stream models has small accuracy loss (less than 0.5%) when compared to non-qunantized fp32 model.
-
CPU & GPU
- Add 20 CPU ops,include FP32, int8/uint8, FP16 and int32 ops.
- Add supporting FP16 for GPU, add 14 GPU ops include FP32/FP16.
- Add Buffer/Image2D transform op for GPU
- Performance optimization for CPU ops focus on ARM32.
- Performance optimization for GPU Convolution using winograd.
-
Tool & example
- Add object detection Android Demo.
Bugfixes
- Models
- Python API
- Executor
- fix pynative mode to build temporary nn objects.(!6189)
- fix the accuracy problem of multiple inputs of multi-card communication operator broadcast.(!6522)
- fix the problem that the sample distribution interface categorical does not support graph mode.(!5772)
- fix the random seed failure problem of the polynomial downsampling distribution operator.(!5948)
- fix unnecessary address binding issues in GPU heterogeneous scenarios.(!6232)
- GPU platform
- Data processing
- Third party
- Sqlite : Update sqlite to 3.32.2 to handle CVE-2020-11656, CVE-2020-13871, CVE-2020-11655, CVE-2020-9327, CVE-2020-13630, CVE-2020-15358, CVE-2020-13631, CVE-2020-13632, CVE-2020-13434, CVE-2020-13435, and CVE-2020-15358.
- Libjpeg-turbo : Update libjpeg-turbo to 2.0.4 to handle CVE-2020-13790.
Contributors
Thanks goes to these wonderful people:
Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, danish, Danish, dayschan, eric, Eric, fary86, fuzhiye, Gaoxiong, gengdongjie, gongdaguo, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huzhifeng, hwjiaorui, Jesse, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, r1chardf1d0, riemann_penn, root, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuweikang, wuxuejian, Xiaoda, xiefangqi, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, zhoufeng, zhousiyi, zhouyaqiang, Zichun, Zirui, Ziyan, zjun, ZPaC
Contributions of any kind are welcome!
MindSpore 0.7.0-beta Release Notes
Major Features and Improvements
MindSpore Training and Inference Framework
Ascend 910
- New models
- TinyBert: a smaller and faster version of BERT using transformer distillation for natural language understanding on GLUE benchmark.
- SE-ResNet50: add Squeeze-and-Excitation blocks(SE-Blocks) to the resnet50 network to improve channel interdependencies for image classification on ImageNet 2012 dataset.
- Inception V3: the third version of Inception convolutional architectures for image classification on ImageNet 2012 dataset.
- Frontend and user interface
- Embedding operator high-level packaging to support segmented by field for Wide&Deep.
- Load multi-node checkpoint into single-process to support host-device hybrid inference.
- Support Concat/Tile/Strideslice distributed operators.
- Support cumulative gradient and batch training split.
- Support variable parameter input for Cell object.
- Parameter mixed calculation optimization for pynative mode.
- Deep Probabilistic Programming
- Support statistical distributions classes used to generate stochastic tensors.
- Support probabilistic inference algorithms.
- Support BNN layers used to construct BNN in Graph mode.
- Support interfaces for the transformation between BNN and DNN in Graph mode.
- Support uncertainty estimation to estimate epistemic uncertainty and aleatoric uncertainty.
- User interfaces change log
- Executor and performance optimization
- MindSpore graph compilation process performance improved by 20%.
- Decoupling C++ and Python modules to achieve separate compilation of core modules.
- Data processing, augmentation, and save format
- Support automatic data augmentation
- Support GNN distributed cache in single node
- Support ConcatDataset using distributed sampler
Other Hardware Support
- GPU platform
- New model supported: VGG16, ResNet101, DeepFM.
- Support some distributed operators in ResNet50 and Wide&Deep.
- Support automatic parallel for Wide&Deep.
- Support function funcsi (such as switch-case).
- Support distributed training with parameter server.
- Support GPU operator profiling.
- Performance optimization of the distributed training with allreduce.
- Performance optimization of the mixed precision training.
- Performance optimization of the pynative mode.
- Performance optimization of the convolution operator, batch normalization operator.
- CPU platform
- Support MobileNetV2 Re-Training: Re-train the network with different class number.
MindSpore Lite
- Converter
- Support third-party models, including TFLite/Caffe/ONNX.
- Add 93 TFLite op.
- Add 24 Caffe op.
- Add 62 ONNX op.
- Add 11 optimized passes, include fusion/const fold.
- Support aware-training and Post-training quantization.
- CPU
- Add 100+ops,support fp32, int8/uint8, FP16 ops
- Support fast convolution algorithms: Sliding Window, Img2col + Gemm, Strassen, Winograd
- Support assembly/neon instruction.
- Support CPU fp16 and sdot on ARM v8.2+.
- GPU
- Add 20+ ops for OpenCL.
- Support image2D/buffer format.
- Optimize online initialization time.
- add optimized convolution1X1/3X3/depthwise/convolution_transposed for OpenCL.
- Tool & example
- Add benchmark and TimeProfile tools.
- Add image classification Android Demo.
Bugfixes
- Models
- Python API
- Executor
- fix etsnet train error when UnsegmentSum's first input shape is (1,) (!4573)
- fix bug of result error in while control flow because of unsupporting for value reference (!4103)
- fix bug of the output tensor does not carry device data type (!3774)
- fix bug of avoiding multi attr value are eliminated in pynative mode (!4225)
- fix bug of AssignAdd unable to work normally in multi-cases (!5171)
- GPU platform
- Data processing and Pro
- Third party
- Sqlite : Update sqlite to 3.32.2 to handle CVE-2020-11656, CVE-2020-13871, CVE-2020-11655, CVE-2020-9327, CVE-2020-13630, CVE-2020-15358, CVE-2020-13631, CVE-2020-13632, CVE-2020-13434, CVE-2020-13435, and CVE-2020-15358.
- Libjpeg-turbo : Update libjpeg-turbo to 2.0.4 to handle CVE-2020-13790.
Contributors
Thanks goes to these wonderful people:
Adel, Alexey, andy, andy_wangrui, anthonyaje, anzhengqi, askmiao, avakh, baihuawei, bingyaweng, BowenK, buxue, caifubi, CaoJian, caozhou, Cathy, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chenzupeng, chujinjin, cjh9368, Corleone, cristoval, danish, dengyutao, eric, Eric, ervinzhang, etone-chan, fangzehua, fary86, fuzhiye, gengdongjie, genglishuai, Giancarlo, gongdaguo, gukecai, guohongzilong, GuoMengHao, hangq, hanhaocheng, hanhuifeng2020, hanjun996, Harshvardhan, He, heleiwang, hesham, hexia, Hoai, hongxing, huangdongrun, huanghui, huangxinjing, islam_amin, Jesse, jianghui58, jiangzhiwen, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, kai00, kingfo, kpy, kswang, laiyongqiang, leilei_snow, leopz, Li, liangzelang, lianliguang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, lingyunli63, linqingke, lirongzhen1, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuzhongkai, Lixia, lixian, liyong, lizhenyu, looop5, luoyang, lvchangquan, lvliang, lvwenyuan, lyvette, mahdi, Mahdi, mamba_ni, maning202007, Margaret_wangrui, mayang, meixiaowei, meng_chunyang, ms_yan, nhussain, panbingao, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, pengyongrong, Pengyongrong, qianlong, qujianwei, root, shenwei41, shibeiji, simson, songhonglei413, Su, sunsuodong, suteng, tao_yunhao, TFbunny, tinazhang, tom__chen, tony_liu2, tronzhang, VectorSL, wandongdong, wangdongxu, wanghua, wangmin, wangshaocong, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuweikang, wuxuejian, wuyongkang, xiefangqi, xuanyue, Xun, xutianchun, xuyongfei, yanghaitao, yangjie159, YangLuo, yangruoqi713, yangyongjie, yangzhenzhang, yankai, yao_yf, yelihua, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zhangxuetong, zhaizhiqiang, Zhang, zhangxinfeng3, zhangxuetong, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaoting, zhaozhenlong, zhengjun10, zhongligeng, zhoufeng, zhousiyi, zhouyaqiang, zhouyuanshen, Zichun, Zirui, zjun, zongha, ZPaC, lijiaqi, liangchenghui, wangminggui
Contributions of any kind are welcome!
MindSpore 0.6.0-beta Release Notes
Major Features and Improvements
Ascend 910 Training and Inference Framework
- New models
- There are official, research and community under modelzoo.
- Official is maintained with the newest APIs by MindSpore team, MaskRCNN are added.
- Research is uploaded by researchers for official review, and APIs may not be updated in time.
- Community reprints the relevant links of partner research results.
- Hub added on the same level as modelzoo, synchronous storage of materials needed for official hub web pages which will be launched soon.
- Support pre-trained models, few lines of code can be used to download and load pre-trained models, supporting inference or transfer learning.
- There are official, research and community under modelzoo.
- Frontend and user interface
- Supports user side operator compilation and graph execution error rendering.
- Uniform definition dynamic learning rate behavior in optimizers.
- Support IndexSlice in sparse expression.
- Support use parent construct method during construct.
- Support asynchronous execution save checkpoint file.
- Support implicit type conversion in pynative mode.
- User interfaces change log
- Executor and performance optimization
- Decouple C++ and python, so make the architecture more extensible.
- Parameter Server for distributed deep learning supported.
- Serving:a flexible service deployment framework for deep learning models.
- Memory reuse is enhanced, and the batch size of Bert large model is increased from 96 to 160 on a single server.
- Data processing, augmentation, and save format
- Support MindRecord save operator after date processing
- Support automatic fusion operator, such as decode/resize/crop
- Support CSV dataset loading
Other Hardware Support
- GPU platform
- New model supported: ResNext50, WarpCTC and GoogLeNet.
- Support hyperparametric search and data enhanced automl on GPU.
- Support Resnet50 automatic parallel in GPU backend.
Bugfixes
- Models
- Python API
- Fix assign used in while loop(!2720)
- Revert optimize the graph output of all nop node.(!2857)
- Print tensor as numpy.(!2859)
- Support weight decay for sparse optimizer(!2668)
- Fix BatchToSpaceND(!2741)
- Fixing type check mistakes of InplaceAdd and Inplace Sub ops(!2744)
- Change order param only equal to group param(!2748)
- Executor
- The performance of graph whith control flow is optimized(!2931)
- Fix bug of wrong number of tuple layers(!3390)
- Fix cpu multi graph memory exception(!3631)
- Enable data sync when calling operator without defining a cell(!3081)
- Fix argmaxwith value error in pynative mode on GPU(!3082)
- Fix precision error with fp16 input on pynative mode(!3196)
- Data processing
- Third party
- Sqlite : Update sqlite to 3.32.2 to handle CVE-2020-11656, CVE-2020-13871, CVE-2020-11655, CVE-2020-9327, CVE-2020-13630, CVE-2020-15358, CVE-2020-13631, CVE-2020-13632, CVE-2020-13434, CVE-2020-13435, and CVE-2020-15358.
- Libjpeg-turbo : Update libjpeg-turbo to 2.0.4 to handle CVE-2020-13790.
Contributors
Thanks goes to these wonderful people:
Alexey Shevlyakov, avakh, baihuawei, BowenK, buxue, caifubi, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, Danish Farid, dayschan, dengwentao, dinghao, etone-chan, fangzehua, fary86, geekun, Giancarlo Colmenares, gong chen, gukecai, guohongzilong, hangangqiang, heleiwang, hesham, He Wei, hexia, hongxing, huangdongrun, huanghui, islam_amin, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, Jonathan Yan, jonyguo, Junhan Hu, Kang, kingfo, kouzhenzhong, kpy, kswang, laiyongqiang, leopz, liangzelang, lichenever, lihongkang, Li Hongzhang, lilei, limingqi107, lirongzhen1, liubuyu, liuchongming74, liuwenhao4, liuxiao, Lixia Chen, liyanliu, liyong, lizhenyu, lvliang, Mahdi, Margaret_wangrui, meixiaowei, ms_yan, nhussain, ougongchang, panfengfeng, panyifeng, peilinwang, Peilin Wang, pkuliuliu, qianlong, rick_sanchez, shibeiji, Shida He, shijianning, simson, sunsuodong, suteng, Tinazhang, Tron Zhang, unknown, VectorSL, wandongdong, wangcong, wangdongxu, wangdongxu6, wanghua, wangnan39, Wei Luning, wenchunjiang, wenkai, wilfChen, WilliamLian, wukesong, Xian Weizhao, Xiaoda Zhang, xiefangqi, xulei2020, xunxue, xutianchun, Yang, yanghaitao, yanghaitao1, yanghaoran, yangjie, yangjie159, YangLuo, Yanjun Peng, yankai, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yuchaojie, yujianfeng, zhangzhongpeng, zhangdengcheng, Zhang Qinghua, zhangyinxia, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang, wangdongxu
Contributions of any kind are welcome!
MindSpore 0.5.2-beta Release Notes
Major Features and Improvements
Ascend 910 Training and Inference Framework
- New models
- DenseNet121: a convolution based neural network for the task of image classification on ImageNet 2012 dataset.
Bugfixes
- Models
Contributors
Thanks goes to these wonderful people:
Alexey Shevlyakov, avakh, baihuawei, BowenK, buxue, caifubi, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, Danish Farid, dayschan, dengwentao, dinghao, etone-chan, fangzehua, fary86, geekun, Giancarlo Colmenares, gong chen, gukecai, guohongzilong, hangangqiang, heleiwang, hesham, He Wei, hexia, hongxing, huangdongrun, huanghui, islam_amin, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, Jonathan Yan, jonyguo, Junhan Hu, Kang, kingfo, kouzhenzhong, kpy, kswang, laiyongqiang, leopz, liangzelang, lichenever, lihongkang, Li Hongzhang, lilei, limingqi107, lirongzhen1, liubuyu, liuchongming74, liuwenhao4, liuxiao, Lixia Chen, liyanliu, liyong, lizhenyu, lvliang, Mahdi, Margaret_wangrui, meixiaowei, ms_yan, nhussain, ougongchang, panfengfeng, panyifeng, peilinwang, Peilin Wang, pkuliuliu, qianlong, rick_sanchez, shibeiji, Shida He, shijianning, simson, sunsuodong, suteng, Tinazhang, Tron Zhang, unknown, VectorSL, wandongdong, wangcong, wangdongxu, wangdongxu6, wanghua, wangnan39, Wei Luning, wenchunjiang, wenkai, wilfChen, WilliamLian, wukesong, Xian Weizhao, Xiaoda Zhang, xiefangqi, xulei2020, xunxue, xutianchun, Yang, yanghaitao, yanghaitao1, yanghaoran, yangjie, yangjie159, YangLuo, Yanjun Peng, yankai, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yuchaojie, yujianfeng, zhangzhongpeng, zhangdengcheng, Zhang Qinghua, zhangyinxia, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang, wangdongxu
Contributions of any kind are welcome!
MindSpore 0.5.0-beta Release Notes
Major Features and Improvements
Ascend 910 Training and Inference Framework
- New models
- ResNext50: a simple, highly modularized network architecture using aggregated resdiual transformations for image classification on ImageNet 2012 dataset.
- MASS: a pre-training method for sequence to sequence based language generation tasks on Text Summarization and Conversational Response Generation using News Crawls 2007-2017 dataset, Gigaword corpus and Cornell movie dialog corpus.
- Transformer: a neural network architecture for language understanding on WMT 2014 English-German dataset.
- GCN:Graph Convolutional Networks for the task of classification of nodes in a graph on Cora and Citeseer datasets.
- GAT:an attention-based graph neural network for node classification on Cora and CiteSeer dataset.
- Frontend and user interface
- Support tensor value and assignment of mixed tensor index in graph mode.
- Support tensor comparison, len operator, constexpr syntax, value and assignment of tensor index in pynative mode.
- Support converting MindSpore IR to pb format for infer model.
- Support print operator to write data directly on the hard disk.
- Add the double recursive programming solution for very high speed parallel strategy search in automatic parallel.
- User interfaces change log
- Allow the learning rate of AdamWeightDecayDynamicLR and Lamb to be 0(!1826)
- Restricting the entire network input parameter is Tensor(!1967)
- Turn shape and dtype into attributes instead of interfaces(!1919)
- Delete multitypefungraph(!2116)
- Refactor the callback module in an encapsulated way, use _CallbackManager instead of_build_callbacks(!2236)
- Delete EmbeddingLookup(!2163)
- Checkpoint add model_type(!2517)
- Executor and performance optimization
- Heterogeneous execution on CPU and Ascend devices supported, and is verified in Wide&Deep model.
- Quantitative training of MobileNetV2, Lenet and Resnet50 on Ascend-910 are supported.
- Support new fusion architecture, which can do fusion optimization across graphs and kernels to improve execution speed.
- Data processing, augmentation, and save format
- Support data processing pipeline performance profiling.
- Support public dataset loading, such as CLUE and Coco.
- Support more text processing, such as more tokenizers and vocab data.
- Support MindRecord padded data.
Other Hardware Support
- GPU platform
- New model supported: Bert / Wide&Deep.
- Support setting max device memory.
- CPU platform
- New model supported: LSTM.
Bugfixes
- Models
- Bert, Move Bert from
example
tomodel_zoo
, optimize network for better performance. (!1902) - VGG16, Move VGG16 from
example
tomodel_zoo
, optimize network for better accuracy. (!2645) - Alexnet, modify parameter setting to improve accuracy (!1364)
- Wide&Deep, Move Wide&Deep from
example
tomodel_zoo
, optimize network for better performance. (!2221)
- Bert, Move Bert from
- Python API
- Executor
- GPU platform
- Fix bug of summary feature invalid(!2173)
- Data processing
- Third party
- Sqlite : Update sqlite to 3.32.2 to handle CVE-2020-11656, CVE-2020-13871, CVE-2020-11655, CVE-2020-9327, CVE-2020-13630, CVE-2020-15358, CVE-2020-13631, CVE-2020-13632, CVE-2020-13434, CVE-2020-13435, and CVE-2020-15358.
Contributors
Thanks goes to these wonderful people:
Alexey Shevlyakov, avakh, baihuawei, BowenK, buxue, caifubi, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, Danish Farid, dayschan, dengwentao, dinghao, etone-chan, fangzehua, fary86, geekun, Giancarlo Colmenares, gong chen, gukecai, guohongzilong, hangangqiang, heleiwang, hesham, He Wei, hexia, hongxing, huangdongrun, huanghui, islam_amin, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, Jonathan Yan, jonyguo, Junhan Hu, Kang, kingfo, kouzhenzhong, kpy, kswang, laiyongqiang, leopz, liangzelang, lichenever, lihongkang, Li Hongzhang, lilei, limingqi107, lirongzhen1, liubuyu, liuchongming74, liuwenhao4, liuxiao, Lixia Chen, liyanliu, liyong, lizhenyu, lvliang, Mahdi, Margaret_wangrui, meixiaowei, ms_yan, nhussain, ougongchang, panfengfeng, panyifeng, peilinwang, Peilin Wang, pkuliuliu, qianlong, rick_sanchez, shibeiji, Shida He, shijianning, simson, sunsuodong, suteng, Tinazhang, Tron Zhang, unknown, VectorSL, wandongdong, wangcong, wangdongxu, wangdongxu6, wanghua, wangnan39, Wei Luning, wenchunjiang, wenkai, wilfChen, WilliamLian, wukesong, Xian Weizhao, Xiaoda Zhang, xiefangqi, xulei2020, xunxue, xutianchun, Yang, yanghaitao, yanghaitao1, yanghaoran, yangjie, yangjie159, YangLuo, Yanjun Peng, yankai, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yuchaojie, yujianfeng, zhangzhongpeng, zhangdengcheng, Zhang Qinghua, zhangyinxia, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang, wangdongxu
Contributions of any kind are welcome!
MindSpore 0.3.1-alpha Release Notes
Major Features and Improvements
Ascend 910 Training and Inference Framework
- Frontend and User Interface
- Independent model init interface.
- Data processing, augmentation, and save format
- Support sample padding for minddataset.
Bugfixes
- Python API
- Fix bugs in the lars optimizer(!1894)
- Data processing
- Fix accuracy problem of RandomCropDecodeResize (!2340)
Release 0.3.0-alpha
Major Features and Improvements
Ascend 910 Training and Inference Framework
- New models
- DeepFM: a factorization-machine based neural network for CTR prediction on Criteo dataset.
- DeepLabV3: significantly improves over our previous DeepLab versions without DenseCRF post-processing and attains comparable performance with other state-of-art models on the PASCAL VOC 2007 semantic image segmentation benchmark.
- Faster-RCNN: towards real-time object detection with region proposal networks on COCO 2017 dataset.
- SSD: a single stage object detection methods on COCO 2017 dataset.
- GoogLeNet: a deep convolutional neural network architecture codenamed Inception V1 for classification and detection on CIFAR-10 dataset.
- Wide&Deep: jointly trained wide linear models and deep neural networks for recommender systems on Criteo dataset.
- Frontend and User Interface
- Complete numpy advanced indexing method. Supports value and assignment through tensor index.
- Some optimizers support separating parameter groups. Different parameter groups can set different
learning_rate
andweight_decay
. - Support setting submodule's logging level independently, e.g. you can set logging level of module
A
to warning and set logging level of moduleB
to info. - Support weights to be compiled according to shape to solve the problem of large memory overhead.
- Add some operators implement and grammar support in pynative mode. To be consistent with graph mode.
- User interfaces change log
- Executor and Performance Optimization
- Support doing evaluation while in training process, so that the accuracy of training can be easily obtained.
- Enable second-order optimization for resnet50, which can achieve 75.9% accuracy in 45 epochs (Resnet50 @ImageNet).
- Optimize pynative implementation and improve it's execution performance.
- Optimize summary record implementation and improve its performance.
- Data processing, augmentation, and save format
- Support simple text processing, such as tokenizer/buildvocab/lookup.
- Support padding batch.
- Support split or concat dataset.
- Support MindDataset reading from file list.
Other Hardware Support
- GPU platform
- New models supported: MobileNetV2, MobileNetV3.
- Support mixed precision training.
- Support device memory swapping.
Bugfixes
- Python API
- Executor
- Fix dropout,topK and addn errors in PyNative mode (!1285, !1138, !1033).
- Fix memory leaks after execution in PyNatvie mode (!1201).
- Fix HCCL failure in some special scenes (!1204, !1252).
- Fix SSD network when Select failed, cann't find kernel info(!1449).
- Fix Topk operator selection strategy bug between aicore and aicpu(!1367).
- Fix input memory size of 'assign' op unequal in control sink mode when assigning a data from one child graph to another child graph(!802).
- Fix allreduce ir inconsistency(!989).
- GPU platform
- Data processing
Contributors
Thanks goes to these wonderful people:
Alexey Shevlyakov, Amir Lashkari, anthony, baihuawei, biffex, buxue, caifubi, candanzg, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenzomi, chujinjin, cristoval, dengwentao, eric, etone-chan, fary86, gaojing, gengdongjie, gongchen, guohongzilong, guozhijian, heleiwang, hesham, He Wei, Hoai Linh Tran, hongxing, huangdongrun, huanghui, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jonwe, jonyguo, Junhan Hu, Kang, kingfo, kswang, laiyongqiang, leopz, lichenever, lihongkang, limingqi107, liubuyu, liuliyan2, liuwenhao4, liuxiao, liuxiao, liyong, lizhenyu, lvliang, Margaret_wangrui, meixiaowei, ms_yan, Nat Sutyanyong, ougongchang, panfengfeng, panyifeng, Peilin Wang, peixu_ren, qianlong, rick_sanchez, seatea, sheng, shijianning, simson, sunsuodong, Tinazhang, VectorSL, wandongdong, wangcong, wanghua, wangnan39, Wei Luning, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuxuejian, Xiaoda Zhang, xiefangqi, xulei2020, Yang, yangjie159, yangruoqi713, yangyongjie, yangzhenzhang, Yanjun Peng, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yujianfeng, YuJianfeng, yvetteliu, zhangdengcheng, Zhang Qinghua, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, zhouyuanshen, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang
Contributions of any kind are welcome!
MindSpore 0.2.0-alpha Release Notes
Major Features and Improvements
Ascend 910 Training and Inference Framework
-
New models
- MobileNetV2: Inverted Residuals and Linear Bottlenecks.
- ResNet101: Deep Residual Learning for Image Recognition.
-
Frontend and User Interface
- Support for all python comparison operators.
- Support for math operators **,//,%. Support for other python operators like and/or/not/is/is not/ in/ not in.
- Support for the gradients of function with variable arguments.
- Support for tensor indexing assignment for certain indexing type.
- Support for dynamic learning rate.
- User interfaces change log
- DepthwiseConv2dNative, DepthwiseConv2dNativeBackpropFilter, DepthwiseConv2dNativeBackpropInput(!424)
- ReLU6, ReLU6Grad(!224)
- GeneratorDataset(!183)
- VOCDataset(!477)
- MindDataset, PKSampler(!514)
- map(!506)
- Conv(!226)
- Adam(!253)
- _set_fusion_strategy_by_idx,_set_fusion_strategy_by_size(!189)
- CheckpointConfig(!122)
- Constant(!54)
-
Executor and Performance Optimization
- Support parallel execution of data prefetching and forward/backward computing.
- Support parallel execution of gradient aggregation and forward/backward computing in distributed training scenarios.
- Support operator fusion optimization.
- Optimize compilation process and improve the performance.
-
Data processing, augmentation, and save format
- Support multi-process of GeneratorDataset/PyFunc for high performance
- Support variable batchsize
- Support new Dataset operators, such as filter,skip,take,TextLineDataset
Other Hardware Support
- GPU platform
- Use dynamic memory pool by default on GPU.
- Support parallel execution of computation and communication.
- Support continuous address allocation by memory pool.
- CPU platform
- Support for windows 10 OS.
Bugfixes
- Models
- Fix mixed precision bug for VGG16 model (!629).
- Python API
- Executor
- GPU platform
- Data processing
Contributors
Thanks goes to these wonderful people:
Alexey_Shevlyakov, Cathy, Chong, Hoai, Jonathan, Junhan, JunhanHu, Peilin, SanjayChan, StrawNoBerry, VectorSL, Wei, WeibiaoYu, Xiaoda, Yanjun, YuJianfeng, ZPaC, Zhang, ZhangQinghua, ZiruiWu, amongo, anthonyaje, anzhengqi, biffex, caifubi, candanzg, caojian05, casgj, cathwong, ch-l, chang, changzherui, chenfei, chengang, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, dengwentao, dinghao, fanglei, fary86, flywind, gaojing, geekun, gengdongjie, ghzl, gong, gongchen, gukecai, guohongzilong, guozhijian, gziyan, h.farahat, hesham, huangdongrun, huanghui, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, jonathan_yan, jonyguo, jzw, kingfo, kisnwang, laiyongqiang, leonwanghui, lianliguang, lichen, lichenever, limingqi107, liubuyu, liuxiao, liyong, liyong126, lizhenyu, lupengcheng, lvliang, maoweiyong, ms_yan, mxm, ougongchang, panfengfeng, panyifeng, pengyanjun, penn, qianlong, seatea, simson, suteng, thlinh, vlne-v1, wangchengke, wanghua, wangnan39, wangqiuliang, wenchunjiang, wenkai, wukesong, xiefangqi, xulei, yanghaitao, yanghaoran, yangjie159, yangzhenzhang, yankai10, yanzhenxiang2020, yao_yf, yoonlee666, zhangbuxue, zhangz0911gm, zhangzheng, zhaojichen, zhaoting, zhaozhenlong, zhongligeng, zhoufeng, zhousiyi, zjun, zyli2020, yuhuijun, limingqi107, lizhenyu, chenweifeng.
Contributions of any kind are welcome!
MindSpore 0.1.0-alpha Release Notes
Main Features
Ascend 910 Training and Inference Framework
- Recommended OS: Ubuntu 16.04 (or later) or EulerOS 2.5 or EulerOS 2.8
- Python version: 3.7.5
- Preset models
- ResNet-50: residual structure-based convolutional neural network (CNN) for image classification, which is widely used.
- AlexNet: classic CNN for image classification, achieving historical results in ImageNet LSVRC-2012.
- LeNet: classic CNN for image classification, which was proposed by Yann LeCun.
- VGG16: classic CNN for image classification, which was proposed by Oxford Visual Geometry Group.
- YoloV3: real-time object detection network.
- NEZHA: BERT-based Chinese pre-training network produced by Huawei Noah's Ark Laboratory.
- Execution modes
- Graph mode: provides graph optimization methods such as memory overcommitment, IR fusion, and buffer fusion to achieve optimal execution performance.
- PyNative mode: single-step execution mode, facilitating process debugging.
- Debugging capability and methods
- Save CheckPoints and Summary data during training.
- Support asynchronous printing.
- Dump the computing data.
- Support profiling analysis of the execution process performance.
- Distributed execution
- Support AllReduce, AllGather, and BroadCast collective communication.
- AllReduce data parallel: Each device obtains different training data, which accelerates the overall training process.
- Collective communication-based layerwise parallel: Models are divided and allocated to different devices to solve the problem of insufficient memory for large model processing and improve the training speed.
- Automatic parallel mode: The better data and model parallel mode can be predicted based on the cost model. It is recommended that this mode be used on ResNet series networks.
- Automatic differentiation
- Implement automatic differentiation based on Source to Source.
- Support distributed scenarios and automatic insertion of reverse communication operators.
- Data processing, augmentation, and save format
- Load common datasets such as ImageNet, MNIST, CIFAR-10, and CIFAR-100.
- Support common data loading pipeline operations, such as shuffle, repeat, batch, map, and sampler.
- Provide basic operator libraries to cover common CV scenarios.
- Support users to customize Python data augmentation operators through the Pyfunc mechanism.
- Support the access of user-defined datasets through the GeneratorDataset mechanism.
- Provide the MindSpore data format, data aggregation and storage, random access example, data partition, efficient parallel read, user-defined index, and dataset search.
- Convert user datasets to the MindSpore data format.
- After data processing and augmentation, provide training applications in feed and graph modes.
- FP32/16 mixed precision computation, supporting automatic and manual configuration
- Provide common operators such as nn, math, and array, which can be customized.
Inference Deployment
- Deploy models in MindSpore format on the Ascend 310 platform for inference.
- Save models in ONNX format.
- Support saving models in LITE format and running models based on the lightweight inference framework.
- Recommended OS: Android 4.3 or later
- Supported network type: LeNet
- Provide the generalization operators generated by TVM and operators generated after specific networks are tuned.
Other Hardware Support
- GPU platform training
- Recommended OS: Ubuntu 16.04
- CUDA version: 9.2 or 10.1
- CuDNN version: 7.6 or later
- Python version: 3.7.5
- NCCL version: 2.4.8-1
- OpenMPI version: 3.1.5
- Supported models: AlexNet, LeNet, and LSTM
- Supported datasets: MNIST and CIFAR-10
- Support data parallel.
- CPU platform training
- Recommended OS: Ubuntu 16.04
- Python version: 3.7.5
- Supported model: LeNet
- Supported dataset: MNIST
- Provide only the stand-alone operation version.