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 support for xpu/KunLunXin device #10540

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add support for xpu/KunLunXin device #10540

wants to merge 2 commits into from

Conversation

fpzh2011
Copy link
Contributor

@fpzh2011 fpzh2011 commented Jul 3, 2024

No description provided.

@fpzh2011 fpzh2011 enabled auto-merge (squash) July 3, 2024 07:40
Copy link
Contributor

Copy link
Contributor

Speed stats:
GPU Name: NVIDIA GeForce RTX 3080 Ti 

❌ OneFlow resnet50 time: 43.8ms (= 4383.3ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 57.3ms (= 5726.3ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.31 (= 57.3ms / 43.8ms)

OneFlow resnet50 time: 26.1ms (= 2613.2ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 37.5ms (= 3747.0ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.43 (= 37.5ms / 26.1ms)

OneFlow resnet50 time: 18.6ms (= 3728.6ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 36.0ms (= 7196.9ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.93 (= 36.0ms / 18.6ms)

OneFlow resnet50 time: 17.7ms (= 3547.2ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 31.5ms (= 6294.2ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.77 (= 31.5ms / 17.7ms)

OneFlow resnet50 time: 14.8ms (= 2953.4ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 29.7ms (= 5935.4ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 2.01 (= 29.7ms / 14.8ms)

OneFlow swin dataloader time: 0.201s (= 40.117s / 200, num_workers=1)
PyTorch swin dataloader time: 0.130s (= 25.918s / 200, num_workers=1)
Relative speed: 0.646 (= 0.130s / 0.201s)

OneFlow swin dataloader time: 0.059s (= 11.702s / 200, num_workers=4)
PyTorch swin dataloader time: 0.033s (= 6.609s / 200, num_workers=4)
Relative speed: 0.565 (= 0.033s / 0.059s)

OneFlow swin dataloader time: 0.034s (= 6.877s / 200, num_workers=8)
PyTorch swin dataloader time: 0.017s (= 3.305s / 200, num_workers=8)
Relative speed: 0.481 (= 0.017s / 0.034s)

❌ OneFlow resnet50 time: 49.1ms (= 4913.1ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 64.4ms (= 6435.7ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.31 (= 64.4ms / 49.1ms)

OneFlow resnet50 time: 36.3ms (= 3626.4ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 47.8ms (= 4783.6ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.32 (= 47.8ms / 36.3ms)

OneFlow resnet50 time: 27.6ms (= 5518.3ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 38.8ms (= 7752.3ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.40 (= 38.8ms / 27.6ms)

OneFlow resnet50 time: 25.2ms (= 5037.4ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 39.0ms (= 7800.5ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.55 (= 39.0ms / 25.2ms)

OneFlow resnet50 time: 24.4ms (= 4889.9ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 35.9ms (= 7189.6ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.47 (= 35.9ms / 24.4ms)

Copy link
Contributor

CI failed when running job: Build llvm15. PR label automerge has been removed

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