Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Revert "[MXNET-#16795] Byteps-KVStore: Intergrate Byteps into mxnet a…
Browse files Browse the repository at this point in the history
…s new type of kvstore backend (#17555)" (#17998)

This reverts commit c244f9f.

Co-authored-by: Lin <haibilin@a483e7be4c92.ant.amazon.com>
  • Loading branch information
eric-haibin-lin and Lin authored Apr 8, 2020
1 parent da95add commit 6cc990c
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 624 deletions.
19 changes: 0 additions & 19 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ cd_unittest_ubuntu() {
# Adding these here as CI doesn't test all CUDA environments
$python_cmd example/image-classification/test_score.py
integrationtest_ubuntu_gpu_dist_kvstore
integrationtest_ubuntu_gpu_byteps
fi

if [[ ${mxnet_variant} = *mkl ]]; then
Expand Down Expand Up @@ -1352,24 +1351,6 @@ integrationtest_ubuntu_gpu_dist_kvstore() {
popd
}

integrationtest_ubuntu_gpu_byteps() {
set -ex
pushd .
export PYTHONPATH=$PWD/python/
export BYTEPS_WITHOUT_PYTORCH=1
export BYTEPS_WITHOUT_TENSORFLOW=1
git clone -b v0.2 https://github.com/bytedance/byteps/ --recursive
cd byteps && python3 setup.py install --user && cd -

export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0
export MXNET_SUBGRAPH_VERBOSE=0
export DMLC_LOG_STACK_TRACE_DEPTH=10
cd tests/nightly/
python3 ../../tools/launch.py -n 1 -s 1 --byteps --env NVIDIA_VISIBLE_DEVICES:0,1 python3 dist_device_sync_kvstore_byteps.py
popd
}


test_ubuntu_cpu_python3() {
set -ex
pushd .
Expand Down
14 changes: 0 additions & 14 deletions ci/jenkins/Jenkins_steps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1277,20 +1277,6 @@ def test_unix_distributed_kvstore_cpu() {
}]
}

def test_unix_byteps_gpu() {
return ['byteps tests GPU': {
node(NODE_LINUX_GPU) {
ws('workspace/it-byteps') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('gpu', mx_lib)
utils.docker_run('ubuntu_gpu_cu101', 'integrationtest_ubuntu_gpu_byteps', true)
utils.publish_test_coverage()
}
}
}
}]
}

def test_unix_distributed_kvstore_gpu() {
return ['dist-kvstore tests GPU': {
node(NODE_LINUX_GPU) {
Expand Down
2 changes: 1 addition & 1 deletion ci/jenkins/Jenkinsfile_edge
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ core_logic: {

utils.parallel_stage('Tests', [
custom_steps.test_qemu_armv7_cpu()
])
])
}
,
failure_handler: {
Expand Down
1 change: 0 additions & 1 deletion ci/jenkins/Jenkinsfile_unix_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ core_logic: {
custom_steps.test_unix_cpp_package_gpu(),
custom_steps.test_unix_scala_gpu(),
custom_steps.test_unix_distributed_kvstore_gpu(),
custom_steps.test_unix_byteps_gpu(),
custom_steps.test_static_python_gpu(),
custom_steps.test_static_python_gpu_cmake(),
custom_steps.test_unix_python3_gpu_no_tvm_op(),
Expand Down
1 change: 0 additions & 1 deletion python/mxnet/kvstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@
from .kvstore import *
from .base import *
from .kvstore_server import *
from .byteps import *
9 changes: 1 addition & 8 deletions python/mxnet/kvstore/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ def pushpull(self, key, value, out=None, priority=0):
def is_capable(capability):
"""Queries if the KVStore type supports certain capability, such as optimizer algorithm,
gradient compression, sparsity, etc.
If the kvstore does not store weights in server part, then no optimizer is supported,
this function will return False.
Parameters
----------
Expand Down Expand Up @@ -429,15 +427,10 @@ def create(name='local'):
No two updates happen on the same weight at the same time. However, the order is not
guaranteed.
``byteps``: Use byteps as broadcast/pushpull backend.
This kind of kvstore doesn't store weights, thus there won't be optimizer in this kvstore server.
Byteps doesn't support pure cpu training, so be sure to enable gpu training when using this kvstore.
Parameters
----------
name : {'local', 'device', 'nccl', 'dist_sync', 'dist_device_sync', 'dist_async', 'horovod', 'byteps'}
name : {'local', 'device', 'nccl', 'dist_sync', 'dist_device_sync', 'dist_async', 'horovod'}
The type of KVStore.
Returns
-------
kv : KVStoreBase
Expand Down
255 changes: 0 additions & 255 deletions python/mxnet/kvstore/byteps.py

This file was deleted.

Loading

0 comments on commit 6cc990c

Please sign in to comment.