diff --git a/tutorials/source_en/advanced_use/checkpoint_for_hybrid_parallel.md b/tutorials/source_en/advanced_use/checkpoint_for_hybrid_parallel.md index 1f2affd6d3efecfdc14769a52483c87ff22ef18c..fb87d25a9488ef410af2ec8d61a6d783082365a0 100644 --- a/tutorials/source_en/advanced_use/checkpoint_for_hybrid_parallel.md +++ b/tutorials/source_en/advanced_use/checkpoint_for_hybrid_parallel.md @@ -1,25 +1,26 @@ # Saving and Loading Model Parameters in the Hybrid Parallel Scenario + - [Saving and Loading Model Parameters in the Hybrid Parallel Scenario](#saving-and-loading-model-parameters-in-the-hybrid-parallel-scenario) - - [Overview](#overview) - - [Background](#background) - - [Application Scenario](#application-scenario) - - [Integrating the Saved Checkpoint Files](#integrating-the-saved-checkpoint-files) - - [Overall Process](#overall-process) - - [Preparations](#preparations) - - [Importing the Checkpoint Files to the Network](#importing-the-checkpoint-files-to-the-network) - - [Obtaining a List of All Parameters on the Network](#obtaining-a-list-of-all-parameters-on-the-network) - - [Integrate the Model Parallel Parameters](#integrate-the-model-parallel-parameters) - - [Saving the Data and Generating a New Checkpoint File](#saving-the-data-and-generating-a-new-checkpoint-file) - - [Loading the Integrated and Saved Checkpoint File](#loading-the-integrated-and-saved-checkpoint-file) - - [Overall Process](#overall-process-1) - - [Step 1: Loading the Checkpoint File](#step-1-loading-the-checkpoint-file) - - [Step 2: Dividing a Model Parallel Parameter](#step-2-dividing-a-model-parallel-parameter) - - [Step 3: Loading the Modified Parameter Data to the Network](#step-3-loading-the-modified-parameter-data-to-the-network) - - [Example](#example) - - [Scenario Description](#scenario-description) - - [Example Code](#example-code) + - [Overview](#overview) + - [Background](#background) + - [Application Scenario](#application-scenario) + - [Integrating the Saved Checkpoint Files](#integrating-the-saved-checkpoint-files) + - [Overall Process](#overall-process) + - [Preparations](#preparations) + - [Importing the Checkpoint Files to the Network](#importing-the-checkpoint-files-to-the-network) + - [Obtaining a List of All Parameters on the Network](#obtaining-a-list-of-all-parameters-on-the-network) + - [Integrate the Model Parallel Parameters](#integrate-the-model-parallel-parameters) + - [Saving the Data and Generating a New Checkpoint File](#saving-the-data-and-generating-a-new-checkpoint-file) + - [Loading the Integrated and Saved Checkpoint File](#loading-the-integrated-and-saved-checkpoint-file) + - [Overall Process](#overall-process-1) + - [Step 1: Loading the Checkpoint File](#step-1-loading-the-checkpoint-file) + - [Step 2: Dividing a Model Parallel Parameter](#step-2-dividing-a-model-parallel-parameter) + - [Step 3: Loading the Modified Parameter Data to the Network](#step-3-loading-the-modified-parameter-data-to-the-network) + - [Example](#example) + - [Scenario Description](#scenario-description) + - [Example Code](#example-code) ## Overview @@ -76,7 +77,7 @@ Then, update the parameter list and integrate the model parallel parameters. See Finally, save the updated parameter list to a file through the API provided by MindSpore to generate a new checkpoint file. See step 4 in the following figure. -![img](./images/checkpoint_integration_process.png) +![img](./images/checkpoint_integration_process.jpg) ### Preparations diff --git a/tutorials/source_en/advanced_use/images/checkpoint_integration_process.jpg b/tutorials/source_en/advanced_use/images/checkpoint_integration_process.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a3d190897587c64d027a3284edade1850e0bce2f Binary files /dev/null and b/tutorials/source_en/advanced_use/images/checkpoint_integration_process.jpg differ diff --git a/tutorials/source_en/advanced_use/images/checkpoint_integration_process.png b/tutorials/source_en/advanced_use/images/checkpoint_integration_process.png deleted file mode 100644 index 1f56c21f82d46eb7569e683ddfb84ef6343c2a2e..0000000000000000000000000000000000000000 Binary files a/tutorials/source_en/advanced_use/images/checkpoint_integration_process.png and /dev/null differ