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

Fix optim load_state_dict bug #6152

Merged
merged 6 commits into from
Sep 3, 2021
Merged

Conversation

wyg1997
Copy link
Contributor

@wyg1997 wyg1997 commented Sep 3, 2021

No description provided.

@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot September 3, 2021 09:00
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot September 3, 2021 11:30
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot September 3, 2021 13:55
@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

OneFlow resnet50 time: 128.7ms (= 6434.0ms / 50, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 139.8ms (= 6991.0ms / 50, input_shape=[16, 3, 224, 224])
Relative speed: 1.09 (= 139.8ms / 128.7ms)

OneFlow resnet50 time: 74.8ms (= 3740.6ms / 50, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 84.3ms (= 4213.8ms / 50, input_shape=[8, 3, 224, 224])
Relative speed: 1.13 (= 84.3ms / 74.8ms)

OneFlow resnet50 time: 49.1ms (= 2455.4ms / 50, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 58.1ms (= 2904.5ms / 50, input_shape=[4, 3, 224, 224])
Relative speed: 1.18 (= 58.1ms / 49.1ms)

OneFlow resnet50 time: 40.5ms (= 2023.9ms / 50, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 49.0ms (= 2450.2ms / 50, input_shape=[2, 3, 224, 224])
Relative speed: 1.21 (= 49.0ms / 40.5ms)

OneFlow resnet50 time: 46.8ms (= 2341.5ms / 50, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 44.7ms (= 2232.9ms / 50, input_shape=[1, 3, 224, 224])
Relative speed: 0.95 (= 44.7ms / 46.8ms)

OneFlow resnet50 time: 143.9ms (= 7194.9ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 162.3ms (= 8115.3ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
Relative speed: 1.13 (= 162.3ms / 143.9ms)

OneFlow resnet50 time: 93.8ms (= 4692.1ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 103.7ms (= 5185.8ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
Relative speed: 1.11 (= 103.7ms / 93.8ms)

OneFlow resnet50 time: 68.0ms (= 3399.1ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 73.0ms (= 3652.5ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
Relative speed: 1.07 (= 73.0ms / 68.0ms)

OneFlow resnet50 time: 64.6ms (= 3227.9ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 69.3ms (= 3465.3ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
Relative speed: 1.07 (= 69.3ms / 64.6ms)

OneFlow resnet50 time: 67.7ms (= 3385.7ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 58.9ms (= 2942.5ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
Relative speed: 0.87 (= 58.9ms / 67.7ms)

@oneflow-ci-bot oneflow-ci-bot removed their request for review September 3, 2021 15:41
@oneflow-ci-bot oneflow-ci-bot merged commit a4c257a into master Sep 3, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the fix-optim_load_state_bug branch September 3, 2021 15: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