How can I start a benchmark with `distributed_all_reduce` ?
My Env: TensorFlow: 1.3 CUDA: 8.0 cuDNN: 6.0
I notice an update for distributed_all_reduce so I want to have a try. But I'm not sure what value should controller_host takes... My args are:
--variable_update=distributed_all_reduce
--all_reduce_spec=pscpu:32k:xring
and I start 3 processes with args: FIRST:
--job_name=worker
--worker_hosts=127.0.0.1:50001,127.0.0.1:50002
--task_index=0
SECONDE:
--job_name=worker
--worker_hosts=127.0.0.1:50001,127.0.0.1:50002
--task_index=1
THIRD:
--job_name=controller
--controller_host=??
--task_index=0
When I put 127.0.0.1:50000 or 127.0.0.1:50001 on controller_host, I got:
TensorFlow: 1.3
Model: resnet50
Mode: training
SingleSess: True
Batch size: 128 global
64 per device
Devices: ['job:worker/task0/gpu:0', 'job:worker/task1/gpu:0']
Data format: NCHW
Optimizer: sgd
Variables: distributed_all_reduce
AllReduce: pscpu:32k:xring
Sync: True
==========
Generating model
WARNING:tensorflow:From /home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py:486: __init__ (from tensorflow.contrib.data.python.ops.readers) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.TFRecordDataset`.
WARNING:tensorflow:From /home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py:487: range (from tensorflow.contrib.data.python.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.range()`.
WARNING:tensorflow:From /home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py:489: zip (from tensorflow.contrib.data.python.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.zip()`.
2017-10-10 14:03:34.183287: E tensorflow/core/common_runtime/session.cc:69] Not found: No session factory registered for the given session options: {target: "127.0.0.1:50001" config: intra_op_parallelism_threads: 1 gpu_options { force_gpu_compatible: true } allow_soft_placement: true} Registered factories are {DIRECT_SESSION, GRPC_SESSION}.
Traceback (most recent call last):
File "/home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py", line 46, in <module>
tf.app.run()
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py", line 42, in main
bench.run()
File "/home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py", line 892, in run
return self._benchmark_cnn()
File "/home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py", line 1068, in _benchmark_cnn
start_standard_services=start_standard_services) as sess:
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 964, in managed_session
self.stop(close_summary_writer=close_summary_writer)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 792, in stop
stop_grace_period_secs=self._stop_grace_secs)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 953, in managed_session
start_standard_services=start_standard_services)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 708, in prepare_or_wait_for_session
init_feed_dict=self._init_feed_dict, init_fn=self._init_fn)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/session_manager.py", line 273, in prepare_session
config=config)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/training/session_manager.py", line 178, in _restore_checkpoint
sess = session.Session(self._target, graph=self._graph, config=config)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1482, in __init__
super(Session, self).__init__(target, graph, config=config)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 622, in __init__
self._session = tf_session.TF_NewDeprecatedSession(opts, status)
File "/home/zzy/anaconda2/envs/tf-1.3/lib/python2.7/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: No session factory registered for the given session options: {target: "127.0.0.1:50001" config: intra_op_parallelism_threads: 1 gpu_options { force_gpu_compatible: true } allow_soft_placement: true} Registered factories are {DIRECT_SESSION, GRPC_SESSION}.
Codes HERE
master_target = self.worker_hosts[0]
I think it should be:
master_target = 'grpc://' + self.worker_hosts[0]
I'm not sure what's the string when protocal is grpc+verbs
But I meet a new problem when I start 3 processes. The controller process freezes. Here's the logs:
TensorFlow: 1.3
Model: resnet50
Mode: training
SingleSess: True
Batch size: 128 global
64 per device
Devices: ['job:worker/task0/gpu:0', 'job:worker/task1/gpu:0']
Data format: NCHW
Optimizer: sgd
Variables: distributed_all_reduce
AllReduce: xring
Sync: True
==========
Generating model
WARNING:tensorflow:From /home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py:486: __init__ (from tensorflow.contrib.data.python.ops.readers) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.TFRecordDataset`.
WARNING:tensorflow:From /home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py:487: range (from tensorflow.contrib.data.python.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.range()`.
WARNING:tensorflow:From /home/zzy/workspace/benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py:489: zip (from tensorflow.contrib.data.python.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.zip()`.
E1010 15:32:43.587504542 18066 ev_epoll1_linux.c:1051] grpc epoll fd: 3
I find that controller_host is passed into self.cluster and self.cluster is never used actually. So how dose controller_host work?
@tfboyd Would you pls have a look at this issue?
I am verifying the 1.4 release right now and then moving on to the latest release of the benchmark code for distributed that you are using here.
On Mon, Oct 16, 2017 at 5:53 AM, Zhang Zhenyu [email protected] wrote:
@tfboyd https://github.com/tfboyd Would you pls have a look at this issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/benchmarks/issues/64#issuecomment-336877607, or mute the thread https://github.com/notifications/unsubscribe-auth/AWZesk1V5soMxTaE-aXMcklgFSYwMFHmks5ss1HegaJpZM4PzcKa .
@tfboyd Any updates?
I ran the new script for benchmarks but did not have time to play with distributed. I am moving away from running theses tests. Rather I am done running them. @reedwm might be able to help you. I thought I would have time and then I ended up deciding I am not running these tests anymore.
On Nov 1, 2017 1:01 AM, "Zhang Zhenyu" [email protected] wrote:
@tfboyd https://github.com/tfboyd Any updates?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/benchmarks/issues/64#issuecomment-341027877, or mute the thread https://github.com/notifications/unsubscribe-auth/AWZesqjaioodFRRRuIjgixQOIWK1Z9Pcks5syCVcgaJpZM4PzcKa .
I'm fairly busy now. @poxvoculi can you take a look? I can also look into this in a week or so if you're also busy.
It's possible we need to fix benchmark_cnn.py to look up the server config properly. During development we're testing using a different server config (not gRPC), and it looks like our automated test suite doesn't cover the case of your example.
When using distributed_all_reduce the graph is built in a different way from all of the other cases. In all of the other cases each worker instance builds its own graph(s) locally (one per each GPU), and there are no edges between the graphs, only to/from the parameter servers. In distributed_all_reduce the special controller process builds one graph spanning all devices then partitions the graph, registers each partition with the worker that hosts it then issues RunStep requests to each worker in parallel. This latter mode is denoted 'single_session' in the benchmark_cnn.py source since one session is distributed across all the workers, which are using Send/Recv graph edges among themselves to do the gradient reductions.
@poxvoculi any chance this was addressed. Or anything that can be changed in the scripts locally to run these tests locally
Would like to know if there's any update too!
Thanks!
In distributed_all_reduce, we never tf.train.Server on the workers, which I believe is required in distributed TensorFlow. This prevents us from connecting to the workers. I'll try to get this resolved.
Still don't know how to run 'distributed_all_reduce', my settings as follows
Node1:
--variable_update=distributed_all_reduce
--all_reduce_spec=xring
--job_name=controller
--controller_host=node1
Node2
--variable_update=distributed_all_reduce
--all_reduce_spec=xring
--job_name=worker
--controller_host=node1
--worker_hosts=node2:2222,node3:2222
--task_index=0
Node3
--variable_update=distributed_all_reduce
--all_reduce_spec=xring
--job_name=worker
--controller_host=node1
--worker_hosts=node2:2222,node3:2222
--task_index=1
How you guys run this 'distributed_all_reduce' ?
Closing as this issue has been fixed for a while.
@dcmrlee, add --worker_hosts=node2:2222,node3:2222 to the Node1 command. Also, I believe --controller_host requires the port as well, although I am not certain.
@reedwm does collective_all_reduce support distributed mode? I don't find any instruction about how to run it under the distributed mode. Here are my commands to run collective_all_reduce:
# node1
python tf_cnn_benchmarks.py \
--num_gpus=2 \
--batch_size=32 \
--model=resnet50 \
--variable_update=collective_all_reduce \
--all_reduce_spec=collective \
--job_name=worker \
--worker_hosts=node1:22224,node2:22224 \
--task_index=0 \
# node2
python tf_cnn_benchmarks.py \
--num_gpus=2 \
--batch_size=32 \
--model=resnet50 \
--variable_update=collective_all_reduce \
--all_reduce_spec=collective \
--job_name=worker \
--worker_hosts=node1:22224,node2:22224 \
--task_index=1 \
It does support distributed mode.
We have moved to nccl for multi node distributed which on Ethernet is scaling very well in early tests. We have included it in the official resnet examples, which is not as fast as tf-cnn-bench due to no xla and some hand tweaks but is likely easier to use.
On Mon, Mar 11, 2019, 8:00 AM TairuiWang [email protected] wrote:
@reedwm https://github.com/reedwm does collective_all_reduce support distributed mode? I don't find any instruction about how to run it under the distributed mode. Here are my commands to run collective_all_reduce:
node1
python tf_cnn_benchmarks.py
--num_gpus=2
--batch_size=32
--model=resnet50
--variable_update=collective_all_reduce
--all_reduce_spec=collective
--job_name=worker
--worker_hosts=node1:22224,node2:22224
--task_index=0 \node2
python tf_cnn_benchmarks.py
--num_gpus=2
--batch_size=32
--model=resnet50
--variable_update=collective_all_reduce
--all_reduce_spec=collective
--job_name=worker
--worker_hosts=node1:22224,node2:22224
--task_index=1 \— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/benchmarks/issues/64#issuecomment-471575066, or mute the thread https://github.com/notifications/unsubscribe-auth/AWZeshgoIqHKVbtHs6JKjX2wUr03-nkzks5vVm-EgaJpZM4PzcKa .
@tfboyd thanks for your reply. I just checked official resnet example. It seems MirroredStrategy is only used on the single node.
I was a reviewer on the PR that added multi-node and have seen the results. It just isn't documented. @dubey Can give you some hints and maybe update the README.
@byronyi I am running the benchmark with the commands mentioned above. The tensorflow version is 1.12 and benchmark branch is cnn_tf_v1.12_compatible. However, I got the error like this:
# node 1
> python tf_cnn_benchmarks.py \
> --num_gpus=1 \
> --batch_size=32 \
> --model=resnet50 \
> --variable_update=collective_all_reduce \
> --all_reduce_spec=collective \
> --job_name=worker \
> --worker_hosts=10.20.41.21:11115,192.168.19.123:11113 \
> --task_index=0 \
>
2019-03-18 15:02:17.305164: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-18 15:02:17.739926: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.683
pciBusID: 0000:03:00.0
totalMemory: 10.92GiB freeMemory: 10.76GiB
2019-03-18 15:02:17.739964: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2019-03-18 15:02:18.000029: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-03-18 15:02:18.000064: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988] 0
2019-03-18 15:02:18.000069: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0: N
2019-03-18 15:02:18.000297: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:worker/replica:0/task:0/device:GPU:0 with 10409 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:03:00.0, compute capability: 6.1)
2019-03-18 15:02:18.001568: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:222] Initialize GrpcChannelCache for job worker -> {0 -> localhost:11115, 1 -> 192.168.19.123:11113}
2019-03-18 15:02:18.002278: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:381] Started server with target: grpc://localhost:11115
TensorFlow: 1.12
Model: resnet50
Dataset: imagenet (synthetic)
Mode: BenchmarkMode.TRAIN
SingleSess: False
Batch size: 64 global
32.0 per device
Num batches: 100
Num epochs: 0.00
Devices: ['/job:worker/replica:0/task:0/gpu:0']
Data format: NCHW
Optimizer: sgd
Variables: collective_all_reduce
AllReduce: collective
Sync: True
==========
Generating training model
Initializing graph
W0318 14:31:42.214000 139738331076352 tf_logging.py:125] From /home/terry/Muse_projects/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py:2157: Supervisor.__init__ (from tensorflow.python.training.supervisor) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.MonitoredTrainingSession
2019-03-18 14:31:52.817701: I tensorflow/core/distributed_runtime/master.cc:267] CreateSession still waiting for response from worker: /job:worker/replica:0/task:1
2019-03-18 14:31:59.820349: I tensorflow/core/distributed_runtime/master_session.cc:1161] Start master session 6c8ec9e340705783 with config: intra_op_parallelism_threads: 1 inter_op_parallelism_threads: 10 gpu_options { } allow_soft_placement: true graph_options { rewrite_options { scoped_allocator_optimization: ON scoped_allocator_opts { enable_op: "CollectiveReduce" enable_op: "CollectiveReduce" } } } experimental { collective_group_leader: "/job:worker/replica:0/task:0" }
I0318 14:32:00.391873 139738331076352 tf_logging.py:115] Running local_init_op.
2019-03-18 14:32:03.599252: I tensorflow/core/distributed_runtime/base_rendezvous_mgr.cc:159] Skipping rendezvous re-initialization.
2019-03-18 14:32:03.811672: W tensorflow/core/common_runtime/base_collective_executor.cc:203] BaseCollectiveExecutor::StartAbort Aborted: Cleanup 13893130782362741
[[{{node local_var_init_op_group/NoOp_1_S10}} = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:0/device:GPU:0", send_device="/job:worker/replica:0/task:1/device:GPU:0", send_device_incarnation=-670037267384239412, tensor_name="edge_1077_local_var_init_op_group/NoOp_1", tensor_type=DT_FLOAT, _device="/job:worker/replica:0/task:0/device:GPU:0"]()]]
I0318 14:32:03.811740 139738331076352 tf_logging.py:115] Done running local_init_op.
Running warm up
# node 2
> python tf_cnn_benchmarks.py \
> --num_gpus=1 \
> --batch_size=32 \
> --model=resnet50 \
> --variable_update=collective_all_reduce \
> --all_reduce_spec=collective \
> --job_name=worker \
> --worker_hosts=10.20.41.21:11115,192.168.19.123:11113 \
> --task_index=1 \
>
2019-03-18 15:11:20.415603: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-18 15:11:21.266968: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties:
name: TITAN X (Pascal) major: 6 minor: 1 memoryClockRate(GHz): 1.531
pciBusID: 0000:04:00.0
totalMemory: 11.91GiB freeMemory: 11.75GiB
2019-03-18 15:11:21.267003: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2019-03-18 15:11:21.530777: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-03-18 15:11:21.530815: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988] 0
2019-03-18 15:11:21.530821: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0: N
2019-03-18 15:11:21.531067: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:worker/replica:0/task:1/device:GPU:0 with 11374 MB memory) -> physical GPU (device: 0, name: TITAN X (Pascal), pci bus id: 0000:04:00.0, compute capability: 6.1)
2019-03-18 15:11:21.532432: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:222] Initialize GrpcChannelCache for job worker -> {0 -> 10.20.41.21:11115, 1 -> localhost:11113}
2019-03-18 15:11:21.533299: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:381] Started server with target: grpc://localhost:11113
TensorFlow: 1.12
Model: resnet50
Dataset: imagenet (synthetic)
Mode: BenchmarkMode.TRAIN
SingleSess: False
Batch size: 64 global
32.0 per device
Num batches: 100
Num epochs: 0.00
Devices: ['/job:worker/replica:0/task:1/gpu:0']
Data format: NCHW
Optimizer: sgd
Variables: collective_all_reduce
AllReduce: collective
Sync: True
==========
Generating training model
Initializing graph
W0318 15:11:24.739063 140540165003008 tf_logging.py:125] From /home/tairui/Muse_projects/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py:2157: Supervisor.__init__ (from tensorflow.python.training.supervisor) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.MonitoredTrainingSession
2019-03-18 15:11:25.168849: I tensorflow/core/distributed_runtime/master_session.cc:1161] Start master session 7a404d3589ba7c8c with config: intra_op_parallelism_threads: 1 inter_op_parallelism_threads: 10 gpu_options { } allow_soft_placement: true graph_options { rewrite_options { scoped_allocator_optimization: ON scoped_allocator_opts { enable_op: "CollectiveReduce" enable_op: "CollectiveReduce" } } } experimental { collective_group_leader: "/job:worker/replica:0/task:0" }
I0318 15:11:25.791156 140540165003008 tf_logging.py:115] Running local_init_op.
I0318 15:11:26.988887 140540165003008 tf_logging.py:115] Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.AbortedError'>, Cleanup 20425165847218639
[[{{node local_var_init_op_group/NoOp_1_S10}} = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:0/device:GPU:0", send_device="/job:worker/replica:0/task:1/device:GPU:0", send_device_incarnation=-2187979704125195533, tensor_name="edge_1077_local_var_init_op_group/NoOp_1", tensor_type=DT_FLOAT, _device="/job:worker/replica:0/task:0/device:GPU:0"]()]]
Traceback (most recent call last):
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call
return fn(*args)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.AbortedError: Cleanup 20425165847218639
[[{{node local_var_init_op_group/NoOp_1_S10}} = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:0/device:GPU:0", send_device="/job:worker/replica:0/task:1/device:GPU:0", send_device_incarnation=-2187979704125195533, tensor_name="edge_1077_local_var_init_op_group/NoOp_1", tensor_type=DT_FLOAT, _device="/job:worker/replica:0/task:0/device:GPU:0"]()]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tf_cnn_benchmarks.py", line 60, in <module>
app.run(main) # Raises error on invalid flags, unlike tf.app.run()
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "tf_cnn_benchmarks.py", line 56, in main
bench.run()
File "/home/tairui/Muse_projects/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py", line 1783, in run
return self._benchmark_train()
File "/home/tairui/Muse_projects/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py", line 1975, in _benchmark_train
return self._benchmark_graph(result_to_benchmark, eval_build_results)
File "/home/tairui/Muse_projects/benchmarks/scripts/tf_cnn_benchmarks/benchmark_cnn.py", line 2175, in _benchmark_graph
start_standard_services=start_standard_services) as sess:
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 1004, in managed_session
self.stop(close_summary_writer=close_summary_writer)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 832, in stop
ignore_live_threads=ignore_live_threads)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 993, in managed_session
start_standard_services=start_standard_services)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 730, in prepare_or_wait_for_session
init_feed_dict=self._init_feed_dict, init_fn=self._init_fn)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/session_manager.py", line 298, in prepare_session
local_init_success, msg = self._try_run_local_init_op(sess)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/training/session_manager.py", line 499, in _try_run_local_init_op
sess.run(self._local_init_op, options=self._local_init_run_options)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run
run_metadata)
File "/home/tairui/py-env/tf-13/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.AbortedError: Cleanup 20425165847218639
[[{{node local_var_init_op_group/NoOp_1_S10}} = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:0/device:GPU:0", send_device="/job:worker/replica:0/task:1/device:GPU:0", send_device_incarnation=-2187979704125195533, tensor_name="edge_1077_local_var_init_op_group/NoOp_1", tensor_type=DT_FLOAT, _device="/job:worker/replica:0/task:0/device:GPU:0"]()]]
th node2 returned an error and the node 1 stuck at the warm up step. Do you have any idea of what's happening here? Thanks a lot for your help!
I will try not to say this again as you should do what is interesting to you. I strongly suggest using the Estimator version that is becoming the TF 2.0 version with Keras. It uses NCCL and is shown to scale well on normal ethernet at ~18GB/sec for 64 GPUs ResNet. It is also where we are doing active development.
To run the official Estimator ResNet model on multiple workers, you need to specify --distribution_strategy=multi_worker_mirrored and also specify --worker_hosts and task_index similar to tf_cnn_benchmarks. This uses MultiWorkerMirroredStrategy to distribute training on multiple workers.
Thanks for the feedback, I'll add this to the readme for that model.