Skip to content

Commit

Permalink
update optimum version for having latest fixes (#1085)
Browse files Browse the repository at this point in the history
* update optimum version for having latest fixes

* update imports
  • Loading branch information
eaidova authored Dec 20, 2024
1 parent 420fa87 commit 0a09651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion optimum/exporters/openvino/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def export_pytorch(
import torch
from torch.utils._pytree import tree_map

from optimum.exporters.onnx.convert import check_dummy_inputs_are_allowed
from optimum.exporters.utils import check_dummy_inputs_are_allowed

logger.info(f"Using framework PyTorch: {torch.__version__}")
output = Path(output)
Expand Down
2 changes: 1 addition & 1 deletion optimum/intel/openvino/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def _quantize_torchmodel(

quantization_config = ov_config.quantization_config
if isinstance(quantization_config, OVWeightQuantizationConfig):
from optimum.exporters.onnx.convert import check_dummy_inputs_are_allowed
from optimum.exporters.utils import check_dummy_inputs_are_allowed

if stateful:
# patch model before weight compression
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

INSTALL_REQUIRE = [
"torch>=1.11",
"optimum~=1.23",
"optimum@git+https://github.com/huggingface/optimum.git",
"transformers>=4.36,<4.47",
"datasets>=1.4.0",
"sentencepiece",
Expand Down

0 comments on commit 0a09651

Please sign in to comment.