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 python arg parser error report #8205

Merged
merged 3 commits into from
May 13, 2022
Merged

fix python arg parser error report #8205

merged 3 commits into from
May 13, 2022

Conversation

hjchen2
Copy link
Contributor

@hjchen2 hjchen2 commented May 12, 2022

No description provided.

@hjchen2 hjchen2 requested review from daquexian and wyg1997 May 12, 2022 14:13
@hjchen2 hjchen2 requested a review from oneflow-ci-bot May 12, 2022 14:14
@hjchen2 hjchen2 enabled auto-merge (squash) May 12, 2022 14:14
@github-actions
Copy link
Contributor

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/8205/

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: NVIDIA GeForce GTX 1080 

❌ OneFlow resnet50 time: 129.1ms (= 12906.0ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 140.7ms (= 14074.1ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.09 (= 140.7ms / 129.1ms)

OneFlow resnet50 time: 78.8ms (= 7884.2ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 84.5ms (= 8453.6ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.07 (= 84.5ms / 78.8ms)

OneFlow resnet50 time: 53.0ms (= 10598.6ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 59.0ms (= 11797.6ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.11 (= 59.0ms / 53.0ms)

OneFlow resnet50 time: 43.3ms (= 8659.1ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 51.3ms (= 10257.8ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.18 (= 51.3ms / 43.3ms)

OneFlow resnet50 time: 34.7ms (= 6939.9ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 46.1ms (= 9217.1ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 1.33 (= 46.1ms / 34.7ms)

OneFlow swin dataloader time: 0.252s (= 50.489s / 200, num_workers=1)
PyTorch swin dataloader time: 0.154s (= 30.738s / 200, num_workers=1)
Relative speed: 0.609 (= 0.154s / 0.252s)

OneFlow swin dataloader time: 0.066s (= 13.268s / 200, num_workers=4)
PyTorch swin dataloader time: 0.041s (= 8.269s / 200, num_workers=4)
Relative speed: 0.623 (= 0.041s / 0.066s)

OneFlow swin dataloader time: 0.036s (= 7.178s / 200, num_workers=8)
PyTorch swin dataloader time: 0.023s (= 4.506s / 200, num_workers=8)
Relative speed: 0.628 (= 0.023s / 0.036s)

❌ OneFlow resnet50 time: 145.4ms (= 14540.9ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 168.1ms (= 16814.0ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.16 (= 168.1ms / 145.4ms)

OneFlow resnet50 time: 97.3ms (= 9726.3ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 110.9ms (= 11086.5ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.14 (= 110.9ms / 97.3ms)

OneFlow resnet50 time: 75.9ms (= 15170.1ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 88.0ms (= 17603.8ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
❌ Relative speed: 1.16 (= 88.0ms / 75.9ms)

OneFlow resnet50 time: 63.5ms (= 12698.4ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 73.1ms (= 14621.6ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
❌ Relative speed: 1.15 (= 73.1ms / 63.5ms)

OneFlow resnet50 time: 57.2ms (= 11437.4ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 78.8ms (= 15767.3ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.38 (= 78.8ms / 57.2ms)

@github-actions
Copy link
Contributor

CI failed when running job: cpu-module. PR label automerge has been removed

@github-actions
Copy link
Contributor

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/8205/

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: NVIDIA GeForce GTX 1080 

✔️ OneFlow resnet50 time: 129.0ms (= 12897.8ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 149.5ms (= 14953.1ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.16 (= 149.5ms / 129.0ms)

OneFlow resnet50 time: 83.0ms (= 8300.9ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 85.2ms (= 8523.8ms / 100, input_shape=[8, 3, 224, 224])
❌ Relative speed: 1.03 (= 85.2ms / 83.0ms)

OneFlow resnet50 time: 52.2ms (= 10449.1ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 64.4ms (= 12879.7ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.23 (= 64.4ms / 52.2ms)

OneFlow resnet50 time: 41.5ms (= 8309.7ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 48.2ms (= 9647.9ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.16 (= 48.2ms / 41.5ms)

OneFlow resnet50 time: 36.6ms (= 7312.0ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 39.5ms (= 7908.7ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 1.08 (= 39.5ms / 36.6ms)

OneFlow swin dataloader time: 0.254s (= 50.745s / 200, num_workers=1)
PyTorch swin dataloader time: 0.150s (= 30.096s / 200, num_workers=1)
Relative speed: 0.593 (= 0.150s / 0.254s)

OneFlow swin dataloader time: 0.066s (= 13.198s / 200, num_workers=4)
PyTorch swin dataloader time: 0.042s (= 8.489s / 200, num_workers=4)
Relative speed: 0.643 (= 0.042s / 0.066s)

OneFlow swin dataloader time: 0.039s (= 7.733s / 200, num_workers=8)
PyTorch swin dataloader time: 0.022s (= 4.374s / 200, num_workers=8)
Relative speed: 0.566 (= 0.022s / 0.039s)

❌ OneFlow resnet50 time: 146.2ms (= 14622.6ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 172.0ms (= 17198.0ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.18 (= 172.0ms / 146.2ms)

OneFlow resnet50 time: 100.7ms (= 10069.5ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 110.8ms (= 11078.8ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.10 (= 110.8ms / 100.7ms)

OneFlow resnet50 time: 76.9ms (= 15383.5ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 88.7ms (= 17730.4ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
❌ Relative speed: 1.15 (= 88.7ms / 76.9ms)

OneFlow resnet50 time: 58.7ms (= 11740.4ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 74.4ms (= 14877.9ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.27 (= 74.4ms / 58.7ms)

OneFlow resnet50 time: 59.9ms (= 11981.5ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 69.4ms (= 13879.5ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.16 (= 69.4ms / 59.9ms)

@hjchen2 hjchen2 merged commit 5c0ff0d into master May 13, 2022
@hjchen2 hjchen2 deleted the dev_fix_error_report branch May 13, 2022 09:14
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