Skip to content

Commit

Permalink
Update _check_default_4bit_configs usage (#698)
Browse files Browse the repository at this point in the history
Compression currently fails with the latest `optimum-intel` version

Changes:
- Update usage of `_check_default_4bit_configs ` after
huggingface/optimum-intel#843
- Update optimum-intel version

---------

Co-authored-by: Ekaterina Aidova <[email protected]>
  • Loading branch information
nikita-savelyevv and eaidova authored Jul 31, 2024
1 parent 3f55103 commit a170436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llm_bench/python/utils/conversion_utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ def compress_ov_model_weights_helper(ov_model, tok, config, out_path, compress_w
if "INT8" in compress_weights_format and "INT8_ASYM" in COMPRESSION_OPTIONS:
warnings.warn("Usage INT8 mode is deprecated and will be removed soon. Please use INT8_ASYM instead", DeprecationWarning)
if "4BIT_DEFAULT" in compress_weights_format:
compression_args = _check_default_4bit_configs(config)
try:
# TODO: remove this path when support of an older version optimum-intel is deprecated
compression_args = _check_default_4bit_configs(config)
except TypeError:
compression_args = _check_default_4bit_configs(config.name_or_path)
if compression_args:
sym = compression_args.pop("sym", False)
compression_args.pop("bits", 4)
Expand Down

0 comments on commit a170436

Please sign in to comment.