Skip to content

Commit a07406b

Browse files
committed
Updated path to import 'to_hashable' method, as we have 'hash_utils' file to contain all hashing related methods and tools.
Minor code clean ups. Signed-off-by: Dhiraj Kumar Sah <[email protected]>
1 parent 1888f28 commit a07406b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

QEfficient/base/modeling_qeff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def _export(
159159
export_kwargs=export_kwargs,
160160
onnx_transform_kwargs=onnx_transform_kwargs,
161161
)
162+
self.export_hash = export_hash
162163
export_dir = export_dir.with_name(export_dir.name + "-" + export_hash)
163164
onnx_path = export_dir / f"{self.model_name}.onnx"
164165
if onnx_path.is_file():
@@ -321,7 +322,6 @@ def _compile(
321322
else:
322323
mdp_ts_json = None
323324

324-
# Check if already compiled
325325
compile_hash, hashed_params = hash_compile_params(
326326
command=command,
327327
specializations=specializations,

QEfficient/compile/qnn_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
from typing import Dict, List, Optional
1313

1414
from QEfficient.utils._utils import create_json, execute_command, load_json
15-
from QEfficient.utils.cache import to_hashable
1615
from QEfficient.utils.constants import QnnConstants
1716
from QEfficient.utils.generate_qnn_network_specialization_config import (
1817
generate_data_format_config,
1918
generate_qnn_specialization,
2019
)
20+
from QEfficient.utils.hash_utils import to_hashable
2121
from QEfficient.utils.logging_utils import logger
2222

2323

QEfficient/peft/auto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from QEfficient.transformers.models.pytorch_transforms import CustomOpsTransform, KVCacheTransform
2828
from QEfficient.utils import constants
2929
from QEfficient.utils._utils import get_padding_shape_from_config
30-
from QEfficient.utils.cache import to_hashable
30+
from QEfficient.utils.hash_utils import to_hashable
3131

3232
logger = logging.getLogger(__name__)
3333

QEfficient/peft/lora/auto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from QEfficient import QEFFAutoModelForCausalLM
1919
from QEfficient.peft.lora.pytorch_transforms import LoraModelInputsTransform, TargetModulesTransform
2020
from QEfficient.utils import constants, get_padding_shape_from_config
21-
from QEfficient.utils.cache import to_hashable
21+
from QEfficient.utils.hash_utils import to_hashable
2222
from QEfficient.utils.logging_utils import logger
2323

2424

0 commit comments

Comments
 (0)