Model Development and Migration

Currently, no migration tool is provided for MindSpore training scenarios. This document uses the training script developed in the Ascend environment as an example.

Prerequisites

  1. You have performed operations in Environment Setup.
  2. You have created a training script file named mindspore_main.py and copied the script content in MindSpore Training Script Sample in the Ascend NPU Environment to the file.
  3. You have uploaded the mindspore_main.py file to any directory on the training server. (Ensure that you have read and write permissions for the files in the directory.)

Performing Training

Perform training.

python mindspore_main.py

If the training proceeds properly, the following log is printed:

1
train finish