Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed mode is much slower than memory mode #55

Open
jasperzhong opened this issue Mar 9, 2021 · 0 comments
Open

Speed mode is much slower than memory mode #55

jasperzhong opened this issue Mar 9, 2021 · 0 comments

Comments

@jasperzhong
Copy link

Settings:

  • benchmark: BERT Base
  • one 32GB V100 GPU
  • Tensorflow 1.15
  • CUDA 10.0, cuDNN 7.6.5

The measured time is the average of 10 iterations.

method iteration time (ms) memory (GB)
w/o optimization 557.11 16.42
recomputation (speed mode) 1457.91 13.32
recomputation (memory mode) 704.9 7.43

code comes from google-research/bert, with a small modification to adopt gradient checkpointing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant