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).
Step 2. Get PAI token.
Click `My profile` button in the top-right side of PAI's webprotal.
![](../../img/pai_token_button.jpg)
Find the token management region, copy one of the token as your account token.
![](../../img/pai_token_profile.jpg)
![](../../img/pai_profile.jpg)
Click `copy` button in the page to copy a jwt token.
![](../../img/pai_token.jpg)
Step 3. Mount NFS storage to local machine.
Click `Submit job` button in PAI's webportal.
......@@ -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.
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.
You could use the following configuration in your NNI's config file:
......@@ -66,7 +66,7 @@ trial:
virtualCluster: default
nniManagerNFSMountPath: /home/user/mnt
containerNFSMountPath: /mnt/data/user
paiStoragePlugin: team_wise
paiStoragePlugin: teamwise_storage
# Configuration to access OpenPAI Cluster
paiConfig:
userName: your_pai_nni_user
......@@ -74,7 +74,7 @@ paiConfig:
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:
* 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