Skip to content

Commit

Permalink
Merge pull request #47 from qjing666/document
Browse files Browse the repository at this point in the history
Update document
  • Loading branch information
qjing666 authored Mar 12, 2020
2 parents 656b3f7 + 6ba6bfc commit e5482ff
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ kubectl apply -f ./paddle_fl/examples/k8s_deployment/master.yaml

```
Please refer [K8S deployment example](./paddle_fl/examples/k8s_deployment/README.md) for details

You can also refer [K8S cluster application and kubectl installation](./paddle_fl/examples/k8s_deployment/deploy_instruction.md) to deploy your K8S cluster
## Benchmark task

Gru4Rec [9] introduces recurrent neural network model in session-based recommendation. PaddlePaddle's Gru4Rec implementation is in https://github.com/PaddlePaddle/models/tree/develop/PaddleRec/gru4rec. An example is given in [Gru4Rec in Federated Learning](https://paddlefl.readthedocs.io/en/latest/examples/gru4rec_examples.html)
Expand Down
4 changes: 3 additions & 1 deletion README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ PaddleFL是一个基于PaddlePaddle的开源联邦学习框架。研究人员可
kubectl apply -f ./paddle_fl/examples/k8s_deployment/master.yaml

```
请参考[K8S 部署实例](./paddle_fl/examples/k8s_deployment/README.md)
请参考[K8S部署实例](./paddle_fl/examples/k8s_deployment/README.md)

也可以参考[K8S集群申请及kubectl安装](./paddle_fl/examples/k8s_deployment/deploy_instruction.md) 配置自己的K8S集群
## 性能测试

Gru4Rec [9] 在基于会话的推荐中引入了递归神经网络模型。PaddlePaddle的GRU4RC实现代码在 https://github.com/PaddlePaddle/models/tree/develop/PaddleRec/gru4rec. 一个基于联邦学习训练Gru4Rec模型的示例请参考[Gru4Rec in Federated Learning](https://paddlefl.readthedocs.io/en/latest/examples/gru4rec_examples.html)
Expand Down
2 changes: 1 addition & 1 deletion paddle_fl/examples/k8s_deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ python -u fl_server.py > server.log 2>&1

```

###Trainer
#### Trainer
```sh

#Download job config file from master
Expand Down
33 changes: 33 additions & 0 deletions paddle_fl/examples/k8s_deployment/deploy_instruction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# K8S cluster application
Here is a guide for you to apply your K8S cluster on [Baidu Cloud](https://cloud.baidu.com/doc/CCE/s/zjxpoqohb)

The number of CPU cores should be larger than 8

<img src='fl_node.png' width = "400" height = "160">

# kubectl installation
```sh
#download newest version
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl"
#add authorization for kubectl execution
chmod +x ./kubectl
#move the execuable file to the enviroment path
sudo mv ./kubectl /usr/local/bin/kubectl
#check installation and get the version
kubectl version
```
# Add configuration for kubectl

After installing kubectl, we need to add some configurations for kubectl.

You can find the status of your cluster and download the certication [here](https://cloud.baidu.com/doc/CCE/index.html#.E6.9F.A5.E7.9C.8B.E9.9B.86.E7.BE.A4)

<img src='status.png' width = "400" height = "160">

Finally, move the certification to default path of kubectl and you can access the remote K8S cluster on your machine

```sh
mv kubectl.conf ~/.kube/config

kubectl get node
```
Binary file added paddle_fl/examples/k8s_deployment/fl_node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added paddle_fl/examples/k8s_deployment/status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5482ff

Please sign in to comment.