Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
b90c988c
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b90c988c
编写于
2月 17, 2023
作者:
W
wangzhen38
提交者:
GitHub
2月 17, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[RM FLUID] rm fluid_pslib_init (#50549)
* [RM FLUID] rm fluid_pslib_init * [RM FLUID] for ci * [RM FLUID] for ci
上级
40cd9552
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
25 addition
and
1298 deletion
+25
-1298
paddle/fluid/distributed/CMakeLists.txt
paddle/fluid/distributed/CMakeLists.txt
+1
-1
python/paddle/fluid/dataset.py
python/paddle/fluid/dataset.py
+7
-7
python/paddle/fluid/executor.py
python/paddle/fluid/executor.py
+1
-1
python/paddle/fluid/incubate/fleet/parameter_server/pslib/__init__.py
...e/fluid/incubate/fleet/parameter_server/pslib/__init__.py
+0
-1273
python/paddle/fluid/incubate/fleet/utils/fleet_util.py
python/paddle/fluid/incubate/fleet/utils/fleet_util.py
+1
-1
python/paddle/fluid/tests/unittests/test_dataset.py
python/paddle/fluid/tests/unittests/test_dataset.py
+2
-2
python/paddle/fluid/tests/unittests/test_downpoursgd.py
python/paddle/fluid/tests/unittests/test_downpoursgd.py
+3
-3
python/paddle/fluid/tests/unittests/test_fleet.py
python/paddle/fluid/tests/unittests/test_fleet.py
+1
-1
python/paddle/fluid/tests/unittests/test_fleet_nocvm_1.py
python/paddle/fluid/tests/unittests/test_fleet_nocvm_1.py
+1
-1
python/paddle/fluid/tests/unittests/test_fleet_rolemaker.py
python/paddle/fluid/tests/unittests/test_fleet_rolemaker.py
+1
-1
python/paddle/fluid/tests/unittests/test_fleet_rolemaker_3.py
...on/paddle/fluid/tests/unittests/test_fleet_rolemaker_3.py
+1
-1
python/paddle/fluid/tests/unittests/test_fleet_unitaccessor.py
...n/paddle/fluid/tests/unittests/test_fleet_unitaccessor.py
+1
-1
python/paddle/incubate/fleet/parameter_server/pslib/__init__.py
.../paddle/incubate/fleet/parameter_server/pslib/__init__.py
+1
-1
python/setup.py.in
python/setup.py.in
+2
-2
setup.py
setup.py
+2
-2
未找到文件。
paddle/fluid/distributed/CMakeLists.txt
浏览文件 @
b90c988c
...
...
@@ -7,7 +7,7 @@ if(WITH_PYTHON)
file
(
MAKE_DIRECTORY
${
PADDLE_BINARY_DIR
}
/python/paddle/distributed/fleet/proto
)
set
(
PSLIB_PROTO_DSTPATH
"
${
PADDLE_SOURCE_DIR
}
/python/paddle/
fluid/
incubate/fleet/parameter_server/pslib/"
"
${
PADDLE_SOURCE_DIR
}
/python/paddle/incubate/fleet/parameter_server/pslib/"
)
if
(
NOT WIN32
)
add_custom_command
(
...
...
python/paddle/fluid/dataset.py
浏览文件 @
b90c988c
...
...
@@ -867,7 +867,7 @@ class InMemoryDataset(DatasetBase):
# required: skiptest
import paddle.fluid as fluid
from paddle.
fluid.
incubate.fleet.parameter_server.pslib import fleet
from paddle.incubate.fleet.parameter_server.pslib import fleet
dataset = fluid.DatasetFactory().create_dataset("InMemoryDataset")
filelist = ["a.txt", "b.txt"]
dataset.set_filelist(filelist)
...
...
@@ -929,7 +929,7 @@ class InMemoryDataset(DatasetBase):
# required: skiptest
import paddle.fluid as fluid
from paddle.
fluid.
incubate.fleet.parameter_server.pslib import fleet
from paddle.incubate.fleet.parameter_server.pslib import fleet
dataset = fluid.DatasetFactory().create_dataset("InMemoryDataset")
filelist = ["a.txt", "b.txt"]
dataset.set_filelist(filelist)
...
...
@@ -993,7 +993,7 @@ class InMemoryDataset(DatasetBase):
# required: skiptest
import paddle.fluid as fluid
from paddle.
fluid.
incubate.fleet.parameter_server.pslib import fleet
from paddle.incubate.fleet.parameter_server.pslib import fleet
dataset = fluid.DatasetFactory().create_dataset("InMemoryDataset")
filelist = ["a.txt", "b.txt"]
dataset.set_filelist(filelist)
...
...
@@ -1037,7 +1037,7 @@ class InMemoryDataset(DatasetBase):
# required: skiptest
import paddle.fluid as fluid
from paddle.
fluid.
incubate.fleet.parameter_server.pslib import fleet
from paddle.incubate.fleet.parameter_server.pslib import fleet
dataset = fluid.DatasetFactory().create_dataset("InMemoryDataset")
filelist = ["a.txt", "b.txt"]
dataset.set_filelist(filelist)
...
...
@@ -1084,7 +1084,7 @@ class InMemoryDataset(DatasetBase):
# required: skiptest
import paddle.fluid as fluid
from paddle.
fluid.
incubate.fleet.parameter_server.pslib import fleet
from paddle.incubate.fleet.parameter_server.pslib import fleet
dataset = fluid.DatasetFactory().create_dataset("InMemoryDataset")
graph_config = {"walk_len": 24,
"walk_degree": 10,
...
...
@@ -1251,9 +1251,9 @@ class QueueDataset(DatasetBase):
.. code-block:: python
import paddle.fluid as fluid
from paddle.
fluid.
incubate.fleet.parameter_server.pslib import fleet
from paddle.incubate.fleet.parameter_server.pslib import fleet
dataset = fluid.DatasetFactory().create_dataset("QueueDataset")
dataset.global_shuffle(fleet)
#
dataset.global_shuffle(fleet)
Raises:
NotImplementedError: QueueDataset does not support global shuffle
...
...
python/paddle/fluid/executor.py
浏览文件 @
b90c988c
...
...
@@ -2126,7 +2126,7 @@ class Executor:
assert
len
(
fetch_list
)
==
len
(
fetch_info
)
compiled
=
isinstance
(
program
,
compiler
.
CompiledProgram
)
if
is_heter
:
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.fluid.incubate.fleet.utils.fleet_util
import
FleetUtil
fu
=
FleetUtil
()
...
...
python/paddle/fluid/incubate/fleet/parameter_server/pslib/__init__.py
已删除
100644 → 0
浏览文件 @
40cd9552
此差异已折叠。
点击以展开。
python/paddle/fluid/incubate/fleet/utils/fleet_util.py
浏览文件 @
b90c988c
...
...
@@ -57,7 +57,7 @@ class FleetUtil:
op_maker
=
core
.
op_proto_and_checker_maker
self
.
op_role_key
=
op_maker
.
kOpRoleAttrName
()
if
mode
==
"pslib"
:
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
(
from
paddle.incubate.fleet.parameter_server.pslib
import
(
fleet
as
fleet_pslib
,
)
...
...
python/paddle/fluid/tests/unittests/test_dataset.py
浏览文件 @
b90c988c
...
...
@@ -1185,7 +1185,7 @@ class TestDataset2(unittest.TestCase):
train_program
=
fluid
.
Program
()
startup_program
=
fluid
.
Program
()
scope
=
fluid
.
Scope
()
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
with
fluid
.
program_guard
(
train_program
,
startup_program
):
slots
=
[
"slot1_ff"
,
"slot2_ff"
,
"slot3_ff"
,
"slot4_ff"
]
...
...
@@ -1316,7 +1316,7 @@ class TestDataset2(unittest.TestCase):
train_program
=
fluid
.
Program
()
startup_program
=
fluid
.
Program
()
scope
=
fluid
.
Scope
()
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
with
fluid
.
program_guard
(
train_program
,
startup_program
):
slots
=
[
"slot1_ff"
,
"slot2_ff"
,
"slot3_ff"
,
"slot4_ff"
]
...
...
python/paddle/fluid/tests/unittests/test_downpoursgd.py
浏览文件 @
b90c988c
...
...
@@ -21,12 +21,12 @@ from google.protobuf import text_format
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.incubate.fleet.parameter_server.pslib.ps_pb2
as
pslib
from
paddle.fluid.incubate.fleet.parameter_server.pslib.node
import
(
import
paddle.incubate.fleet.parameter_server.pslib.ps_pb2
as
pslib
from
paddle.fluid.trainer_factory
import
TrainerFactory
from
paddle.incubate.fleet.parameter_server.pslib.node
import
(
DownpourServer
,
DownpourWorker
,
)
from
paddle.fluid.trainer_factory
import
TrainerFactory
cache_path
=
os
.
path
.
expanduser
(
'~/.cache/paddle/dataset'
)
...
...
python/paddle/fluid/tests/unittests/test_fleet.py
浏览文件 @
b90c988c
...
...
@@ -35,7 +35,7 @@ class TestFleet1(unittest.TestCase):
import
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
os
.
environ
[
"POD_IP"
]
=
"127.0.0.1"
os
.
environ
[
"PADDLE_PORT"
]
=
"36001"
...
...
python/paddle/fluid/tests/unittests/test_fleet_nocvm_1.py
浏览文件 @
b90c988c
...
...
@@ -35,7 +35,7 @@ class TestFleet1(unittest.TestCase):
"""Test cases for pslib."""
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
os
.
environ
[
"POD_IP"
]
=
"127.0.0.1"
os
.
environ
[
"PADDLE_PORT"
]
=
"36001"
...
...
python/paddle/fluid/tests/unittests/test_fleet_rolemaker.py
浏览文件 @
b90c988c
...
...
@@ -64,7 +64,7 @@ class TestCloudRoleMaker(unittest.TestCase):
"""Test cases for pslib."""
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
os
.
environ
[
"POD_IP"
]
=
"127.0.0.1"
os
.
environ
[
"PADDLE_PORT"
]
=
"36001"
...
...
python/paddle/fluid/tests/unittests/test_fleet_rolemaker_3.py
浏览文件 @
b90c988c
...
...
@@ -35,7 +35,7 @@ class TestCloudRoleMaker(unittest.TestCase):
"""Test cases for pslib."""
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
os
.
environ
[
"POD_IP"
]
=
"127.0.0.1"
os
.
environ
[
"PADDLE_PORT"
]
=
"36001"
...
...
python/paddle/fluid/tests/unittests/test_fleet_unitaccessor.py
浏览文件 @
b90c988c
...
...
@@ -35,7 +35,7 @@ class TestFleet1(unittest.TestCase):
"""Test cases for pslib."""
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
paddle.
fluid.
incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.incubate.fleet.parameter_server.pslib
import
fleet
os
.
environ
[
"POD_IP"
]
=
"127.0.0.1"
os
.
environ
[
"PADDLE_PORT"
]
=
"36001"
...
...
python/paddle/incubate/fleet/parameter_server/pslib/__init__.py
浏览文件 @
b90c988c
...
...
@@ -1230,7 +1230,7 @@ class DownpourOptimizer(DistributedOptimizer):
fleet
.
_main_programs
=
programs
fleet
.
_scopes
=
scopes
if
opt_info
[
"use_ps_gpu"
]:
from
paddle.
flui
d.transpiler.collective
import
MultiThread
from
paddle.
distribute
d.transpiler.collective
import
MultiThread
# check start program
if
program_mode
not
in
[
...
...
python/setup.py.in
浏览文件 @
b90c988c
...
...
@@ -406,7 +406,6 @@ packages=['paddle',
'paddle.fluid.incubate.fleet.base',
'paddle.fluid.incubate.fleet.parameter_server',
'paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler',
'paddle.fluid.incubate.fleet.parameter_server.pslib',
'paddle.fluid.incubate.fleet.parameter_server.ir',
'paddle.fluid.incubate.fleet.collective',
'paddle.fluid.incubate.fleet.utils',
...
...
@@ -438,6 +437,7 @@ packages=['paddle',
'paddle.incubate.distributed.models.moe',
'paddle.incubate.distributed.models.moe.gate',
'paddle.incubate.fleet.parameter_server.distribute_transpiler',
'paddle.incubate.fleet.parameter_server.pslib',
'paddle.quantization',
'paddle.quantization.quanters',
'paddle.quantization.observers',
...
...
@@ -594,7 +594,7 @@ if '${WITH_CINN}' == 'ON':
if '${WITH_PSLIB}' == 'ON':
shutil.copy('${PSLIB_LIB}', libs_path)
if os.path.exists('${PSLIB_VERSION_PY}'):
shutil.copy('${PSLIB_VERSION_PY}', '${PADDLE_BINARY_DIR}/python/paddle/
fluid/
incubate/fleet/parameter_server/pslib/')
shutil.copy('${PSLIB_VERSION_PY}', '${PADDLE_BINARY_DIR}/python/paddle/incubate/fleet/parameter_server/pslib/')
package_data['paddle.libs'] += ['libps' + ext_name]
if '${WITH_MKLDNN}' == 'ON':
...
...
setup.py
浏览文件 @
b90c988c
...
...
@@ -963,7 +963,7 @@ def get_package_data_and_package_dir():
shutil
.
copy
(
env_dict
.
get
(
"PSLIB_VERSION_PY"
),
paddle_binary_dir
+
'/python/paddle/
fluid/
incubate/fleet/parameter_server/pslib/'
,
+
'/python/paddle/incubate/fleet/parameter_server/pslib/'
,
)
package_data
[
'paddle.libs'
]
+=
[
'libps'
+
ext_suffix
]
if
env_dict
.
get
(
"WITH_MKLDNN"
)
==
'ON'
:
...
...
@@ -1293,7 +1293,6 @@ def get_setup_parameters():
'paddle.fluid.incubate.fleet.base'
,
'paddle.fluid.incubate.fleet.parameter_server'
,
'paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler'
,
'paddle.fluid.incubate.fleet.parameter_server.pslib'
,
'paddle.fluid.incubate.fleet.parameter_server.ir'
,
'paddle.fluid.incubate.fleet.collective'
,
'paddle.fluid.incubate.fleet.utils'
,
...
...
@@ -1325,6 +1324,7 @@ def get_setup_parameters():
'paddle.incubate.distributed.models.moe'
,
'paddle.incubate.distributed.models.moe.gate'
,
'paddle.incubate.fleet.parameter_server.distribute_transpiler'
,
'paddle.incubate.fleet.parameter_server.pslib'
,
'paddle.quantization'
,
'paddle.quantization.quanters'
,
'paddle.quantization.observers'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录