Unverified Commit 10f5bc5e authored by SparkSnail's avatar SparkSnail Committed by GitHub
Browse files

Update doc for PAI mode (#2444)

parent 58cd8c76
...@@ -7,9 +7,9 @@ Step 1. Install NNI, follow the install guide [here](../Tutorial/QuickStart.md). ...@@ -7,9 +7,9 @@ Step 1. Install NNI, follow the install guide [here](../Tutorial/QuickStart.md).
Step 2. Get PAI token. Step 2. Get PAI token.
Click `My profile` button in the top-right side of PAI's webprotal. Click `My profile` button in the top-right side of PAI's webprotal.
![](../../img/pai_token_button.jpg) ![](../../img/pai_profile.jpg)
Find the token management region, copy one of the token as your account token. Click `copy` button in the page to copy a jwt token.
![](../../img/pai_token_profile.jpg) ![](../../img/pai_token.jpg)
Step 3. Mount NFS storage to local machine. Step 3. Mount NFS storage to local machine.
Click `Submit job` button in PAI's webportal. Click `Submit job` button in PAI's webportal.
...@@ -19,7 +19,7 @@ Step 3. Mount NFS storage to local machine. ...@@ -19,7 +19,7 @@ Step 3. Mount NFS storage to local machine.
The `DEFAULT_STORAGE`field is the path to be mounted in PAI's container when a job is started. The `Preview container paths` is the NFS host and path that PAI provided, you need to mount the corresponding host and path to your local machine first, then NNI could use the PAI's NFS storage. The `DEFAULT_STORAGE`field is the path to be mounted in PAI's container when a job is started. The `Preview container paths` is the NFS host and path that PAI provided, you need to mount the corresponding host and path to your local machine first, then NNI could use the PAI's NFS storage.
For example, use the following command: For example, use the following command:
``` ```
sudo mount nfs://gcr-openpai-infra02:/pai/data /local/mnt sudo mount -t nfs4 gcr-openpai-infra02:/pai/data /local/mnt
``` ```
Then the `/data` folder in container will be mounted to `/local/mnt` folder in your local machine. Then the `/data` folder in container will be mounted to `/local/mnt` folder in your local machine.
You could use the following configuration in your NNI's config file: You could use the following configuration in your NNI's config file:
...@@ -66,7 +66,7 @@ trial: ...@@ -66,7 +66,7 @@ trial:
virtualCluster: default virtualCluster: default
nniManagerNFSMountPath: /home/user/mnt nniManagerNFSMountPath: /home/user/mnt
containerNFSMountPath: /mnt/data/user containerNFSMountPath: /mnt/data/user
paiStoragePlugin: team_wise paiStoragePlugin: teamwise_storage
# Configuration to access OpenPAI Cluster # Configuration to access OpenPAI Cluster
paiConfig: paiConfig:
userName: your_pai_nni_user userName: your_pai_nni_user
...@@ -74,7 +74,7 @@ paiConfig: ...@@ -74,7 +74,7 @@ paiConfig:
host: 10.1.1.1 host: 10.1.1.1
``` ```
Note: You should set `trainingServicePlatform: pai` in NNI config YAML file if you want to start experiment in pai mode. Note: You should set `trainingServicePlatform: pai` in NNI config YAML file if you want to start experiment in pai mode. The host field in configuration file is PAI's job submission page uri, like `10.10.5.1`, the default http protocol in NNI is `http`, if your PAI's cluster enabled https, please use the uri in `https://10.10.5.1` format.
Compared with [LocalMode](LocalMode.md) and [RemoteMachineMode](RemoteMachineMode.md), trial configuration in pai mode have these additional keys: Compared with [LocalMode](LocalMode.md) and [RemoteMachineMode](RemoteMachineMode.md), trial configuration in pai mode have these additional keys:
* cpuNum * cpuNum
......
docs/img/pai_job_submission_page.jpg

125 KB | W: | H:

docs/img/pai_job_submission_page.jpg

38.8 KB | W: | H:

docs/img/pai_job_submission_page.jpg
docs/img/pai_job_submission_page.jpg
docs/img/pai_job_submission_page.jpg
docs/img/pai_job_submission_page.jpg
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment