Skip to content

Conversation

@yuslepukhin
Copy link
Member

Description

SessionOptions now have a new property - load_cancelation_flag.
This flag if set to true causes the model to abort load and initialization for huge models.

Motivation and Context

Some users request an ability to abandon model loading and initialization if that exceeds certain time limits.

@yuslepukhin yuslepukhin force-pushed the yuslepukhin/load_cancelletion branch from b1774bc to 37d21d8 Compare March 31, 2025 22:55
Add python interface.
Add CSharp interface.
@yuslepukhin yuslepukhin force-pushed the yuslepukhin/load_cancelletion branch from 37d21d8 to cc00502 Compare March 31, 2025 23:44
edgchen1
edgchen1 previously approved these changes Apr 4, 2025
edgchen1
edgchen1 previously approved these changes Apr 4, 2025
@yuslepukhin yuslepukhin merged commit 350d140 into main Apr 7, 2025
87 of 89 checks passed
@yuslepukhin yuslepukhin deleted the yuslepukhin/load_cancelletion branch April 7, 2025 17:22
zhaoxul-qti pushed a commit to CodeLinaro/onnxruntime that referenced this pull request Apr 17, 2025
### Description
SessionOptions now have a new property - load_cancelation_flag.
This flag if set to true causes the model to abort load and
initialization for huge models.

### Motivation and Context
Some users request an ability to abandon model loading and
initialization if that exceeds certain time limits.
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.

5 participants