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

Ensure backward compatibility of ORTModel #933

Merged

Conversation

fxmarty
Copy link
Contributor

@fxmarty fxmarty commented Mar 30, 2023

Following #872, we make sure we have no breaking change for the existing exported models.

Thank you @echarlaix for pointing it out!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 30, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@michaelbenayoun michaelbenayoun left a comment

Choose a reason for hiding this comment

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

LGTM

optimum/onnxruntime/base.py Show resolved Hide resolved
optimum/onnxruntime/base.py Outdated Show resolved Hide resolved
@@ -262,3 +267,8 @@ def reset_format() -> None:

for handler in handlers:
handler.setFormatter(None)


@lru_cache(None)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@lru_cache(None)
@lru_cache

is enough no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@echarlaix echarlaix left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot for taking care of this @fxmarty

Co-authored-by: Michael Benayoun <mickbenayoun@gmail.com>
@fxmarty fxmarty merged commit 9ac6dea into huggingface:main Mar 30, 2023
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

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.

4 participants