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

add optimizer api docs #6131

Merged
merged 3 commits into from
Sep 1, 2021
Merged

add optimizer api docs #6131

merged 3 commits into from
Sep 1, 2021

Conversation

MARD1NO
Copy link
Contributor

@MARD1NO MARD1NO commented Sep 1, 2021

增加optimizer文档

warmupLR

image

image

optimizer系列

image

image

image

@MARD1NO MARD1NO requested review from Ldpe2G and strint and removed request for Ldpe2G September 1, 2021 10:09
@@ -25,7 +25,7 @@ class CosineDecayLR(LrScheduler):

.. math::

& cos\\_decay = 0.5*(1+cos(\\pi*\\frac{current\\_step}{decay_steps}))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的修改是避免下划线让s变成标号形式

@oneflow-ci-bot oneflow-ci-bot removed their request for review September 1, 2021 11:38
@oneflow-ci-bot oneflow-ci-bot self-requested a review September 1, 2021 11:38
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot September 1, 2021 12:47
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

OneFlow resnet50 time: 128.6ms (= 6428.6ms / 50, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 140.8ms (= 7041.0ms / 50, input_shape=[16, 3, 224, 224])
Relative speed: 1.10 (= 140.8ms / 128.6ms)

OneFlow resnet50 time: 74.6ms (= 3728.3ms / 50, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 85.1ms (= 4255.5ms / 50, input_shape=[8, 3, 224, 224])
Relative speed: 1.14 (= 85.1ms / 74.6ms)

OneFlow resnet50 time: 50.7ms (= 2533.5ms / 50, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 62.6ms (= 3129.9ms / 50, input_shape=[4, 3, 224, 224])
Relative speed: 1.24 (= 62.6ms / 50.7ms)

OneFlow resnet50 time: 44.9ms (= 2245.9ms / 50, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 48.7ms (= 2435.9ms / 50, input_shape=[2, 3, 224, 224])
Relative speed: 1.08 (= 48.7ms / 44.9ms)

OneFlow resnet50 time: 40.5ms (= 2026.3ms / 50, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 43.3ms (= 2167.3ms / 50, input_shape=[1, 3, 224, 224])
Relative speed: 1.07 (= 43.3ms / 40.5ms)

OneFlow resnet50 time: 146.3ms (= 7314.8ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 161.1ms (= 8053.8ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
Relative speed: 1.10 (= 161.1ms / 146.3ms)

OneFlow resnet50 time: 94.2ms (= 4709.9ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 117.8ms (= 5892.4ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
Relative speed: 1.25 (= 117.8ms / 94.2ms)

OneFlow resnet50 time: 71.9ms (= 3595.6ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 86.4ms (= 4319.9ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
Relative speed: 1.20 (= 86.4ms / 71.9ms)

OneFlow resnet50 time: 57.8ms (= 2888.7ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 77.7ms (= 3886.8ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
Relative speed: 1.35 (= 77.7ms / 57.8ms)

OneFlow resnet50 time: 65.3ms (= 3264.1ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 63.2ms (= 3157.6ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
Relative speed: 0.97 (= 63.2ms / 65.3ms)

@oneflow-ci-bot oneflow-ci-bot merged commit 5a333ff into master Sep 1, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the add_docs_for_clipgrad_warmup branch September 1, 2021 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants