-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add english tutorials #621
Conversation
doc/tutorial.md
Outdated
@@ -0,0 +1,175 @@ | |||
# Getting Started with Submitting Job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Submitting Job" => "Submitting Training Jobs"
doc/tutorial.md
Outdated
|
||
## Download and Configure paddlectl | ||
|
||
`paddlectl` is a command-line tool that submits distributed training job to the cloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"submits distributed training job to the cloud" => "submits distributed training jobs to the paddle cloud"
doc/tutorial.md
Outdated
|
||
- Step1 | ||
|
||
Download `paddlectl` and copy the binary file to the folder which under |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download paddlectl
to your system $PATH
directory, and make it executable by running the command below
chmod +x paddlectl
Stable paddlectl
binary can be found from the Release Page.
Or if you wish to try the latest one from our CI, please find the URLs from the table below for different OSs.
doc/tutorial.md
Outdated
|
||
- Step2 | ||
|
||
Configurate the configuration file `~/.paddle/config` (`./paddle\config` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Configurate the configuration file" => "Edit the configuration file"
doc/tutorial.md
Outdated
current-datacenter: production | ||
``` | ||
|
||
Supports you have two data-center's access, one for `production` and another one for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Supports" => "We suppose"
doc/tutorial.md
Outdated
``` | ||
|
||
Supports you have two data-center's access, one for `production` and another one for | ||
`experimentation`, you can choose one data-center by the `current-datacenter` field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"you can choose one data-center by the current-datacenter
field for the current one." => "you can select your current data-center by editing current-datacenter
field"
doc/tutorial.md
Outdated
|
||
Configurate the configuration file `~/.paddle/config` (`./paddle\config` | ||
under current user folder for Windows), | ||
an example is as following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paddlectl supports adding multi data-center settings and switch between them on the fly. An example configuration is as follows:
doc/tutorial.md
Outdated
`experimentation`, you can choose one data-center by the `current-datacenter` field | ||
for the current one. | ||
|
||
`username`, `password` and `endpoint` is your secret for the data-center, you will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"is your secret for the data-center" => "is your credential for accessing the data-center"
doc/tutorial.md
Outdated
for the current one. | ||
|
||
`username`, `password` and `endpoint` is your secret for the data-center, you will | ||
received an email including your secret information send by the administrator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"receive an email with your credential from paddle cloud administrator"
doc/tutorial.md
Outdated
`username`, `password` and `endpoint` is your secret for the data-center, you will | ||
received an email including your secret information send by the administrator. | ||
|
||
After finish the two steps above, execute `paddlectl` command will print the usage: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"After finish the two steps above" => "With completion of the two steps above"
doc/tutorial.md
Outdated
Use "paddlectl flags" for a list of top-level flags | ||
``` | ||
|
||
## Download the Demo Code and Try to Submit it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Code" => "Projects"
doc/tutorial.md
Outdated
|
||
## Download the Demo Code and Try to Submit it | ||
|
||
We prepare some demo code to help users understanding how to submit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"We prepare some demo code to help users understanding how to submit" => "We prepared some demo projects to help users understand how to submit"
doc/tutorial.md
Outdated
on [Paddle Book](/~https://github.com/Paddlepaddle/book), you can find the | ||
tutorials for each chapter. | ||
|
||
You can fetch the demo code and submit the job as the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"as" => "with"
doc/tutorial.md
Outdated
> paddlecloud submit -jobname fit-a-line -cpu 1 -gpu 1 -parallelism 1 -entry "python train.py train" fit_a_line/ | ||
``` | ||
|
||
For each submits arguments: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For each submits arguments:" => "Options:"
doc/tutorial.md
Outdated
- `./fit_a_line`, STRING, the local directory including job package. | ||
|
||
**NOTE1**: You can find the whole usage by `paddlectl submit -h`. | ||
**NOTE2**: Submit the job by different jobname, so that the previous jobs data would be saved on the cloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"jobname" = "jobnames"
doc/tutorial.md
Outdated
- `-entry`, STRING, the entry point for the training job. | ||
- `./fit_a_line`, STRING, the local directory including job package. | ||
|
||
**NOTE1**: You can find the whole usage by `paddlectl submit -h`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"whole" => "complete"
doc/tutorial.md
Outdated
- `./fit_a_line`, STRING, the local directory including job package. | ||
|
||
**NOTE1**: You can find the whole usage by `paddlectl submit -h`. | ||
**NOTE2**: Submit the job by different jobname, so that the previous jobs data would be saved on the cloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"so that the previous jobs data would be saved on the cloud." => "so that it does not conflict with previous job with the same name"
doc/tutorial.md
Outdated
- `SUCC`, the number for finished training node. | ||
- `FAIL`, the number for failed training node. | ||
|
||
Then, you can view the logs of job(only running or finished status) by `paddelctl logs` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"logs of job" => "logs of a job"
doc/tutorial.md
Outdated
``` | ||
|
||
`paddlectl logs` will return the last 10 lines by default, you can also | ||
use `-n <number>` argument to print the last number lines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"number lines" => "<number>
of lines"
doc/tutorial.md
Outdated
|
||
## Clean the Training Job | ||
|
||
The following command will clean the training job, after that, you could check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"could" => "can't" ?
doc/tutorial.md
Outdated
## Clean the Training Job | ||
|
||
The following command will clean the training job, after that, you could check | ||
the logs, but you can find the output on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the output on" => "the output from"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see inline comments, thanks!
FROM @putcn
Thanks for reviewing! Updated by comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Related #594