File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ def _export(
159
159
export_kwargs = export_kwargs ,
160
160
onnx_transform_kwargs = onnx_transform_kwargs ,
161
161
)
162
+ self .export_hash = export_hash
162
163
export_dir = export_dir .with_name (export_dir .name + "-" + export_hash )
163
164
onnx_path = export_dir / f"{ self .model_name } .onnx"
164
165
if onnx_path .is_file ():
@@ -321,7 +322,6 @@ def _compile(
321
322
else :
322
323
mdp_ts_json = None
323
324
324
- # Check if already compiled
325
325
compile_hash , hashed_params = hash_compile_params (
326
326
command = command ,
327
327
specializations = specializations ,
Original file line number Diff line number Diff line change 12
12
from typing import Dict , List , Optional
13
13
14
14
from QEfficient .utils ._utils import create_json , execute_command , load_json
15
- from QEfficient .utils .cache import to_hashable
16
15
from QEfficient .utils .constants import QnnConstants
17
16
from QEfficient .utils .generate_qnn_network_specialization_config import (
18
17
generate_data_format_config ,
19
18
generate_qnn_specialization ,
20
19
)
20
+ from QEfficient .utils .hash_utils import to_hashable
21
21
from QEfficient .utils .logging_utils import logger
22
22
23
23
Original file line number Diff line number Diff line change 27
27
from QEfficient .transformers .models .pytorch_transforms import CustomOpsTransform , KVCacheTransform
28
28
from QEfficient .utils import constants
29
29
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
31
31
32
32
logger = logging .getLogger (__name__ )
33
33
Original file line number Diff line number Diff line change 18
18
from QEfficient import QEFFAutoModelForCausalLM
19
19
from QEfficient .peft .lora .pytorch_transforms import LoraModelInputsTransform , TargetModulesTransform
20
20
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
22
22
from QEfficient .utils .logging_utils import logger
23
23
24
24
You can’t perform that action at this time.
0 commit comments