Skip to content

Commit e3d296f

Browse files
authored
Merge pull request #7307 from drinktee/keyboard
fix ports_num_for_sparse defaut value in cluster_train doc
2 parents e8a96a8 + ae29e8b commit e3d296f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/howto/usage/cluster/cluster_train_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $ stdbuf -oL /usr/bin/nohup paddle pserver --port=7164 --ports_num=1 --ports_num
5151

5252
- port:**必选,默认7164**,pserver监听的起始端口,根据ports_num决定总端口个数,从起始端口监听多个端口用于通信
5353
- ports_num:**必选,默认1**,监听的端口个数
54-
- ports_num_for_sparse:**必选,默认1**,用于稀疏类型参数通信的端口个数
54+
- ports_num_for_sparse:**必选,默认0**,用于稀疏类型参数通信的端口个数
5555
- num_gradient_servers:**必选,默认1**,当前训练任务pserver总数
5656

5757
### 启动计算节点
@@ -95,7 +95,7 @@ paddle.init(
9595
- trainer_count:**必选,默认1**,当前训练任务trainer总个数
9696
- port:**必选,默认7164**,连接到pserver的端口
9797
- ports_num:**必选,默认1**,连接到pserver的端口个数
98-
- ports_num_for_sparse:**必选,默认1**,和pserver之间用于稀疏类型参数通信的端口个数
98+
- ports_num_for_sparse:**必选,默认0**,和pserver之间用于稀疏类型参数通信的端口个数
9999
- num_gradient_servers:**必选,默认1**,当前训练任务pserver总数
100100
- trainer_id:**必选,默认0**,每个trainer的唯一ID,从0开始的整数
101101
- pservers:**必选,默认127.0.0.1**,当前训练任务启动的pserver的IP列表,多个IP使用“,”隔开

doc/howto/usage/cluster/cluster_train_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Parameter Description
5252

5353
- port: **required, default 7164**, port which parameter server will listen on. If ports_num greater than 1, parameter server will listen on multiple ports for more network throughput.
5454
- ports_num: **required, default 1**, total number of ports will listen on.
55-
- ports_num_for_sparse: **required, default 1**, number of ports which serves sparse parameter update.
55+
- ports_num_for_sparse: **required, default 0**, number of ports which serves sparse parameter update.
5656
- num_gradient_servers: **required, default 1**, total number of gradient servers.
5757

5858
### Starting trainer
@@ -98,7 +98,7 @@ Parameter Description
9898
- trainer_count: **required, default 1**, total count of trainers in the training job.
9999
- port: **required, default 7164**, port to connect to parameter server.
100100
- ports_num: **required, default 1**, number of ports for communication.
101-
- ports_num_for_sparse: **required, default 1**, number of ports for sparse type caculation.
101+
- ports_num_for_sparse: **required, default 0**, number of ports for sparse type caculation.
102102
- num_gradient_servers: **required, default 1**, total number of gradient server.
103103
- trainer_id: **required, default 0**, ID for every trainer, start from 0.
104104
- pservers: **required, default 127.0.0.1**, list of IPs of parameter servers, separated by ",".

0 commit comments

Comments
 (0)