-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad07ac4
commit ffd1fae
Showing
29 changed files
with
142 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ vendor/ | |
.vscode/ | ||
*.pyc | ||
build/ | ||
*.log | ||
resnet50_pod/ | ||
.*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Introduction | ||
This demo is for developers of EDL: you can test Paddle EDL function without a Kubernetes cluster. And it's simple to test it on a none or multiple nodes. | ||
Of course, this is also a toy. You can play with it! | ||
Have fun! | ||
|
||
# Install | ||
1. Install EDL from source | ||
|
||
``` | ||
git clone https://github.com/PaddlePaddle/edl | ||
cd edl | ||
mkdir build & cd build | ||
cmake .. | ||
pip install ./python/dist/paddle_edl-0.0.0-py2-none-any.whl | ||
``` | ||
|
||
2. Install EDL using `pip install paddle_edl`. | ||
|
||
# Run the demo on a single node | ||
1. Start a Jobserver on one node. | ||
|
||
``` | ||
git clone https://github.com/PaddlePaddle/edl | ||
cd python/edl/demo/collective | ||
./start_job_server.sh | ||
``` | ||
|
||
2. Start a Jobclient on every node. Jobclient controls the POD process. | ||
|
||
``` | ||
#Set the ImageNet data path | ||
export PADDLE_EDL_IMAGENET_PATH=<your path> | ||
#Set the checkpoint path | ||
export PADDLE_EDL_FLEET_CHECKPOINT_PATH=<your path> | ||
mkdir -p resnet50_pod | ||
./start_job_client.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 前言 | ||
在单节点或者多个节点(物理机器或者虚拟机或者Docker之类的)搭建EDL主要是为开发者准备的:没有集群的情况下也可以对Paddle(计算引擎)模拟进行EDL的测试。 | ||
当然,这个过程也有点意思,看着训练进程起起伏伏而且不影响最后的结果,还是蛮有意思的。 | ||
Have fun! | ||
|
||
# 安装EDL | ||
1. 你可以从源代码编译安装 | ||
|
||
``` | ||
git clone https://github.com/PaddlePaddle/edl | ||
cd edl | ||
mkdir build & cd build | ||
cmake .. | ||
pip install ./python/dist/paddle_edl-0.0.0-py2-none-any.whl | ||
``` | ||
|
||
2. 也可以直接使用`pip`安装我们发布的版本`pip install paddle_edl` | ||
|
||
# demo搭建步骤:以单节点为例 | ||
1. 我们需要在一个节点上启动JobServer的demo,用来记录训练任务的Pod信息。 | ||
|
||
``` | ||
git clone https://github.com/PaddlePaddle/edl | ||
cd python/paddle_edl/demo/collective | ||
./start_job_server.sh | ||
``` | ||
2. 我们需要在(各个)节点上启动一个JobClient的demo,用来管理训练的Pod进程。 | ||
|
||
``` | ||
#指定ImageNet的数据目录路径 | ||
export PADDLE_EDL_IMAGENET_PATH=<your path> | ||
#指定`checkpoint`的目录,用来保存checkpoint | ||
export PADDLE_EDL_FLEET_CHECKPOINT_PATH=<your path> | ||
mkdir -p resnet50_pod | ||
./start_job_client.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
python -m paddle_edl.collective.launch edl_demo.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.