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

import OVQuantizer only if it is required in VLM #1048

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

eaidova
Copy link
Collaborator

@eaidova eaidova commented Dec 4, 2024

What does this PR do?

in some cases, import OVQuantizer may lead to issues with onnx (import check_dummy_inputs trigger whole initialization of onnx part in optimum), for avoiding this issue in analogy with OVModelForCausalLM I suggest to import it conditionally only in place where it is required as short-term solution. As long-term, we need to extract common part of helper functions from optimum.exporters.onnx to general optimum.exporters.utils (imports will be switched after merge huggingface/optimum#2114 in separated PR)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@AlexKoff88
Copy link
Collaborator

@echarlaix, @IlyasMoutawwakil, this is a hotfix for Windows OS users

@AlexKoff88
Copy link
Collaborator

@echarlaix, @IlyasMoutawwakil, this is a hotfix.

@eaidova eaidova force-pushed the ea/lazy_quantizedr_import branch from 7d5d9d6 to 97e9141 Compare December 4, 2024 09:57
@eaidova eaidova force-pushed the ea/lazy_quantizedr_import branch from b95d78e to 6f6b245 Compare December 4, 2024 13:27
github-merge-queue bot pushed a commit to openvinotoolkit/openvino.genai that referenced this pull request Dec 5, 2024
together with huggingface/optimum-intel#1048 and
huggingface/optimum#2114 allow me run wwb with
already exported models on windows platform
@AlexKoff88 AlexKoff88 merged commit eacf098 into huggingface:main Dec 5, 2024
21 checks passed
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.

6 participants