Skip to content
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

Merged
merged 4 commits into from
Mar 2, 2018
Merged

Conversation

Yancey1989
Copy link
Collaborator

Related #594

doc/tutorial.md Outdated
@@ -0,0 +1,175 @@
# Getting Started with Submitting Job
Copy link

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.
Copy link

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
Copy link

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`
Copy link

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
Copy link

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
Copy link

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:
Copy link

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
Copy link

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.
Copy link

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:
Copy link

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
Copy link

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
Copy link

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:
Copy link

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:
Copy link

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.
Copy link

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`.
Copy link

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.
Copy link

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`
Copy link

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.
Copy link

@putcn putcn Feb 12, 2018

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
Copy link

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
Copy link

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"

Copy link

@putcn putcn left a 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!

@Yancey1989
Copy link
Collaborator Author

FROM @putcn

please see inline comments, thanks!

Thanks for reviewing! Updated by comments.

Copy link

@putcn putcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Yancey1989 Yancey1989 merged commit 1596ddf into PaddlePaddle:develop Mar 2, 2018
@Yancey1989 Yancey1989 deleted the refine_tutorials branch March 2, 2018 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants