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 ORT-Extension for the coming GroupQueryAttention work #674

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

jslhcl
Copy link
Contributor

@jslhcl jslhcl commented Mar 17, 2024

Refactor ORT-Extension for the coming GroupQueryAttention work (#654).
Main changes:

  • separate common macros to a new header
  • separate other ORT dependencies than custom ops to a new header
  • cublas and device id info in cuda context
  • separate cuda type (MFloat16, etc.) to a new header
  • separate cuda device properties to a new header

@jslhcl jslhcl requested a review from a team as a code owner March 17, 2024 15:35
}

template <typename T>
T ParseEnvironmentVariableWithDefault(const std::string& name, const T& default_value) {
Copy link
Member

Choose a reason for hiding this comment

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

where are these functions used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will be used in the coming GroupQueryAttention code

Copy link
Member

Choose a reason for hiding this comment

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

any other file name? something ..._abi_wrapper.h

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My intention is to separate the ORT dependencies into 2 files: one contains custom op stuff only and the other doesn't. Let me merge this PR in first and then we can discuss the naming things later.

@jslhcl jslhcl merged commit 2234001 into main Mar 20, 2024
43 checks passed
@jslhcl jslhcl deleted the leca/refactor branch March 20, 2024 17:55
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