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

Refactor hierarchical parallel cast autograd #5764

Merged
merged 188 commits into from
Aug 9, 2021

Conversation

clackhan
Copy link
Contributor

@clackhan clackhan commented Aug 6, 2021

hierarchical_parallel_cast_op autograd 过程采用inplace操作

…support_tensor_to/to_local

Conflicts:
	oneflow/core/framework/tensor.h
…support_tensor_to/to_local

Conflicts:
	oneflow/core/framework/op_expr.cpp
	oneflow/core/framework/tensor.h
…support_tensor_to/to_local

Conflicts:
	oneflow/core/framework/op_interpreter.h
…support_tensor_to/to_local

Conflicts:
	oneflow/api/python/symbol/sbp_symbol.cpp
…support_tensor_to/to_local

Conflicts:
	oneflow/api/python/framework/op_expr.cpp
	oneflow/api/python/framework/tensor.cpp
	oneflow/core/framework/op_expr.h
…support_tensor_to/to_local

Conflicts:
	oneflow/api/python/framework/tensor.cpp
@clackhan clackhan requested a review from wyg1997 August 6, 2021 02:29
Base automatically changed from inferface_eager_boxing to master August 6, 2021 10:41
…refactor_hierarchical_parallel_cast_autograd

Conflicts:
	oneflow/core/autograd/gradient_funcs/hierarchical_parallel_cast.cpp
	oneflow/user/ops/eager_nccl_ops.cpp
@oneflow-ci-bot oneflow-ci-bot self-requested a review August 9, 2021 05:00
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 136.9ms (= 6844.4ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 125.9ms (= 6294.0ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.09 (= 136.9ms / 125.9ms)

PyTorch resnet50 time: 82.6ms (= 4130.2ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 72.7ms (= 3634.0ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.14 (= 82.6ms / 72.7ms)

PyTorch resnet50 time: 55.7ms (= 2784.5ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.8ms (= 2391.5ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.16 (= 55.7ms / 47.8ms)

PyTorch resnet50 time: 46.4ms (= 2321.2ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 50.7ms (= 2537.4ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 0.91 (= 46.4ms / 50.7ms)

PyTorch resnet50 time: 40.6ms (= 2031.6ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 35.4ms (= 1767.6ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 1.15 (= 40.6ms / 35.4ms)

@oneflow-ci-bot oneflow-ci-bot merged commit 1ca3b76 into master Aug 9, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the refactor_hierarchical_parallel_cast_autograd branch August 9, 2021 06:40
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.

None yet

6 participants