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 more error info for nn.Graph build #8250

Merged
merged 6 commits into from
May 18, 2022

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented May 18, 2022

No description provided.

@BBuf BBuf requested review from oneflow-ci-bot and removed request for oneflow-ci-bot May 18, 2022 10:16
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: NVIDIA GeForce GTX 1080 

❌ OneFlow resnet50 time: 129.8ms (= 12977.4ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 143.5ms (= 14347.2ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.11 (= 143.5ms / 129.8ms)

OneFlow resnet50 time: 77.4ms (= 7736.2ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 83.6ms (= 8357.1ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.08 (= 83.6ms / 77.4ms)

OneFlow resnet50 time: 53.9ms (= 10789.5ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 58.7ms (= 11746.9ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.09 (= 58.7ms / 53.9ms)

OneFlow resnet50 time: 41.5ms (= 8295.5ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 41.2ms (= 8240.2ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 0.99 (= 41.2ms / 41.5ms)

OneFlow resnet50 time: 38.2ms (= 7633.1ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 39.8ms (= 7957.7ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 1.04 (= 39.8ms / 38.2ms)

OneFlow swin dataloader time: 0.242s (= 48.362s / 200, num_workers=1)
PyTorch swin dataloader time: 0.150s (= 30.094s / 200, num_workers=1)
Relative speed: 0.622 (= 0.150s / 0.242s)

OneFlow swin dataloader time: 0.065s (= 13.081s / 200, num_workers=4)
PyTorch swin dataloader time: 0.041s (= 8.240s / 200, num_workers=4)
Relative speed: 0.630 (= 0.041s / 0.065s)

OneFlow swin dataloader time: 0.035s (= 6.935s / 200, num_workers=8)
PyTorch swin dataloader time: 0.022s (= 4.438s / 200, num_workers=8)
Relative speed: 0.640 (= 0.022s / 0.035s)

❌ OneFlow resnet50 time: 146.4ms (= 14638.7ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 175.6ms (= 17557.3ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.20 (= 175.6ms / 146.4ms)

OneFlow resnet50 time: 96.5ms (= 9654.8ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 122.2ms (= 12222.6ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.27 (= 122.2ms / 96.5ms)

OneFlow resnet50 time: 75.6ms (= 15118.8ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 88.5ms (= 17703.4ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
❌ Relative speed: 1.17 (= 88.5ms / 75.6ms)

OneFlow resnet50 time: 63.3ms (= 12666.4ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 74.5ms (= 14899.2ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.18 (= 74.5ms / 63.3ms)

OneFlow resnet50 time: 57.6ms (= 11520.0ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 69.8ms (= 13955.2ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.21 (= 69.8ms / 57.6ms)

@mergify mergify bot merged commit c5a46b0 into master May 18, 2022
@mergify mergify bot deleted the add_more_error_info_for_nn_graph_build branch May 18, 2022 20:51
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