Skip to content

Commit d34cd1a

Browse files
committed
address review
1 parent 560450a commit d34cd1a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

examples/models/llama2/export_llama_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def build_args_parser() -> argparse.ArgumentParser:
319319

320320
parser.add_argument(
321321
"--soc_model",
322-
help="SoC model of current device. e.g. 'SM8650' for Snapdragon 8 Gen 3.",
322+
help="[QNN backend] SoC model of current device. e.g. 'SM8650' for Snapdragon 8 Gen 3.",
323323
type=str,
324324
required=False,
325325
default="SM8650",

examples/qualcomm/utils.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,12 @@ def build_executorch_binary(
230230
else:
231231
edge_prog = capture_program(model, inputs)
232232

233-
arch_table = {
234-
"SM8650": QcomChipset.SM8650,
235-
"SM8550": QcomChipset.SM8550,
236-
"SM8475": QcomChipset.SM8475,
237-
"SM8450": QcomChipset.SM8450,
238-
}
239-
240233
backend_options = generate_htp_compiler_spec(
241234
use_fp16=False if quant_dtype else True
242235
)
243236
qnn_partitioner = QnnPartitioner(
244237
generate_qnn_executorch_compiler_spec(
245-
soc_model=arch_table[soc_model],
238+
soc_model=getattr(QcomChipset, soc_model),
246239
backend_options=backend_options,
247240
debug=False,
248241
saver=False,

0 commit comments

Comments
 (0)