-
Notifications
You must be signed in to change notification settings - Fork 253
Add enable_profiling in Runtime Options
#1949
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,7 @@ parameters: | |
| - name: ort_version | ||
| displayName: 'OnnxRuntime version' | ||
| type: string | ||
| default: '1.23.0' | ||
| default: '1.25.0-dev-20260125-1205-727db0d3dc' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are default values for publishing the official packages for ORT GenAI. I think we should keep the defaults as a stable version of ORT. We can always override what version of ORT to use when the packages are built. |
||
|
|
||
| - name: ort_winml_version | ||
| displayName: 'Microsoft.WindowsAppSDK.ML Version (should match CMakeList.txt)' | ||
|
|
@@ -71,12 +71,12 @@ parameters: | |
| - name: ort_cuda_version | ||
| displayName: 'OnnxRuntime GPU version' | ||
| type: string | ||
| default: '1.23.0' | ||
| default: '1.25.0-dev-20260125-0617-727db0d3dc' | ||
|
|
||
| - name: ort_dml_version | ||
| displayName: 'OnnxRuntime DML version' | ||
| type: string | ||
| default: '1.23.0' | ||
| default: '1.25.0-dev-20260125-0556-727db0d3dc' | ||
|
|
||
| - name: cuda_version | ||
| displayName: 'CUDA version' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,6 +173,19 @@ void State::SetRunOption(const char* key, const char* value) { | |
| throw std::runtime_error(std::string("terminate_session key value unexpected: ") + value); | ||
| } | ||
| return; | ||
| } else if (strcmp(key, "enable_profiling") == 0) { | ||
| if (strcmp(value, "0") == 0) { | ||
| run_options_->DisableProfiling(); | ||
| } else if (strcmp(value, "1") == 0) { | ||
| run_options_->EnableProfiling(ORT_TSTR("onnxruntime_run_profile")); | ||
| } else { | ||
| auto ToProfileString = [](const char* s) -> std::basic_string<ORTCHAR_T> { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| std::string str(s); | ||
| return std::basic_string<ORTCHAR_T>(str.begin(), str.end()); | ||
| }; | ||
| run_options_->EnableProfiling(ToProfileString(value).c_str()); | ||
| } | ||
| return; | ||
| } | ||
| run_options_->AddConfigEntry(key, value); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| onnxruntime==1.23.0 | ||
| -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ | ||
| onnxruntime==1.25.0.dev20260126001 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| onnxruntime-gpu==1.23.0 | ||
| -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ | ||
| onnxruntime-gpu==1.25.0.dev20260123001 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| onnxruntime-directml==1.23.0 | ||
| -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ | ||
| onnxruntime-directml==1.25.0.dev20260125001 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| onnxruntime==1.23.0 | ||
| -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ | ||
| onnxruntime==1.25.0.dev20260126001 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,5 @@ sympy | |
| pytest | ||
| onnx | ||
| onnx_ir>=0.1.3 | ||
| transformers | ||
| transformers<5.0.0 | ||
| huggingface_hub[cli] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify a version here or would not listing a version and using the latest nightly package be sufficient?