File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,11 @@ def _compile(
276
276
277
277
return self .qpc_path
278
278
279
- command = constants .COMPILER + [f"-m={ onnx_path } " ]
279
+ command = (
280
+ constants .COMPILER
281
+ + [f"-aic-hw-version={ compiler_options .pop ('aic-hw-version' , '2.0' )} " ]
282
+ + [f"-m={ onnx_path } " ]
283
+ )
280
284
281
285
if mdp_ts_json_path := compiler_options .pop ("mdp_load_partition_config" , None ):
282
286
command .append (f"-mdp-load-partition-config={ mdp_ts_json_path } " )
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def get_models_dir():
70
70
ONNX_EXPORT_EXAMPLE_MIN_PS = 0.99
71
71
ONNX_EXPORT_OPSET = 13
72
72
73
- COMPILER = ["/opt/qti-aic/exec/qaic-exec" , "-aic-hw" , "-aic-hw-version=2.0" ]
73
+ COMPILER = ["/opt/qti-aic/exec/qaic-exec" , "-aic-hw" ]
74
74
75
75
# InternVL constants
76
76
# Fixing the feature size with reference to OpenGVLab/InternVL2_5-1B, OpenGVLab/InternVL2_5-38B and OpenGVLab/InternVL2_5-78B
You can’t perform that action at this time.
0 commit comments