Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
edb1f6c3
Commit
edb1f6c3
authored
Nov 06, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
72385a85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
docs/tutorial/performance-tuning.md
docs/tutorial/performance-tuning.md
+1
-1
examples/DoReFa-Net/alexnet-dorefa.py
examples/DoReFa-Net/alexnet-dorefa.py
+4
-8
No files found.
docs/tutorial/performance-tuning.md
View file @
edb1f6c3
...
...
@@ -71,6 +71,6 @@ If you're unable to scale to multiple GPUs almost linearly:
2.
Then note that your model may have a different communication-computation pattern or other
characteristics that affects efficiency.
There isn't a simple answer to this.
Changing different multi-GPU trainers may affect the speed significantly
sometimes.
You may try a different multi-GPU trainer; the speed can vary a lot
sometimes.
Note that scalibility measurement always trains with the same "batch size per GPU", not the same total equivalent batch size.
examples/DoReFa-Net/alexnet-dorefa.py
View file @
edb1f6c3
...
...
@@ -33,21 +33,17 @@ This is our attempt to reproduce it on tensorpack & TensorFlow.
Accuracy:
Trained with 4 GPUs and (W,A,G)=(1,2,6), it can reach top-1 single-crop validation error of 47.6
%
,
after 70 epochs. This number is better than what's in the paper
due to more sophisticated augment
or
s.
due to more sophisticated augment
ation
s.
Note that the effective batch size in SyncMultiGPUTrainer is actually
BATCH_SIZE * NUM_GPU. With a different number of GPUs in use, things might
be a bit different, especially for learning rate.
With (W,A,G)=(32,32,32) -- full precision baseline
With (W,A,G)=(32,32,32) -- full precision baseline, 41.4
%
error.
With (W,A,G)=(1,32,32) -- BWN
With (W,A,G)=(1,2,6), 47.6
%
error
With (W,A,G)=(1,2,4)
With (W,A,G)=(1,2,4)
, 58.4
%
error
Speed:
About 11 iteration/s on 4 P100s. (Each epoch is set to 10000 iterations)
Note that this code was written early without using NCHW format. You
should expect a speed up
after switching
to NCHW format.
should expect a speed up
if the code is ported
to NCHW format.
To Train, for example:
./alexnet-dorefa.py --dorefa 1,2,6 --data PATH --gpu 0,1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment