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

Update BiasGelu fusion and related ops #23518

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Update BiasGelu fusion and related ops #23518

merged 3 commits into from
Jan 31, 2025

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Jan 28, 2025

Description

(1) Update BiasGelu fusion to support onnx Gelu-20

Since onnx Gelu-20 supports float/double/bf16/fp16, here we update related ops to support these data types in CUDA and ROCm execution providers:
(2) Add double support for Gelu/FastGelu op in CUDA/ROCm execution provider
(3) Add BFloat16 support for Gelu ops in CUDA execution provider

(4) Add unit tests
(5) Update operator documents

Motivation and Context

#23491

@tianleiwu tianleiwu marked this pull request as draft January 28, 2025 18:26
@tianleiwu tianleiwu marked this pull request as ready for review January 28, 2025 22:26
@tianleiwu tianleiwu requested a review from Copilot January 29, 2025 01:15

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 18 changed files in this pull request and generated no comments.

Files not reviewed (14)
  • onnxruntime/contrib_ops/cuda/bert/fast_gelu.cc: Language not supported
  • onnxruntime/contrib_ops/cuda/cuda_contrib_kernels.cc: Language not supported
  • onnxruntime/contrib_ops/rocm/bert/elementwise.h: Language not supported
  • onnxruntime/contrib_ops/rocm/bert/elementwise_impl/impl_fastgelu.cu: Language not supported
  • onnxruntime/contrib_ops/rocm/bert/elementwise_impl/impl_gelu.cu: Language not supported
  • onnxruntime/contrib_ops/rocm/rocm_contrib_kernels.cc: Language not supported
  • onnxruntime/core/graph/contrib_ops/bert_defs.cc: Language not supported
  • onnxruntime/core/optimizer/bias_gelu_fusion.cc: Language not supported
  • onnxruntime/core/providers/cuda/tensor/gelu.cc: Language not supported
  • onnxruntime/core/providers/cuda/tensor/gelu_impl.cu: Language not supported
  • onnxruntime/test/contrib_ops/fastgelu_op_test.cc: Language not supported
  • onnxruntime/test/optimizer/graph_transform_test.cc: Language not supported
  • onnxruntime/test/testdata/transform/fusion/bias_onnx_fast_gelu_fusion.onnx: Language not supported
  • onnxruntime/test/testdata/transform/fusion/bias_onnx_gelu_fusion.onnx: Language not supported
@tianleiwu tianleiwu merged commit 0bb4ea6 into main Jan 31, 2025
99 checks passed
@tianleiwu tianleiwu deleted the tlwu/gelu_related_ops branch January 31, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants