Skip to content

I pulled the latest code, and the model is reporting errors everywhere #6955

Closed
@yangh0597

Description

@yangh0597

🐛 Describe the bug

I pulled the latest code, and the model is reporting errors everywhere. Two days ago it was fine.Looks like the code forgot to commit

command is:

 python -m examples.models.llama.export_llama --checkpoint "${MODEL_DIR}/consolidated.00.pth" -p "${MODEL_DIR}/params.json" -kv --disable_dynamic_shape --qnn --pt2e_quantize qnn_16a16w -d fp32 --num_sharding 4 --metadata '{"get_bos_id":128000, "get_eos_ids":[128009, 128001]}' --output_name="Llama-Guard-3.2-1B-qnn_16a16w_s4.pte"

error is

Traceback (most recent call last):
  File "/opt/anaconda3/envs/et_qnn/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/anaconda3/envs/et_qnn/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/opt/executorch/examples/models/llama/export_llama.py", line 32, in <module>
    main()  # pragma: no cover
  File "/opt/executorch/examples/models/llama/export_llama.py", line 28, in main
    export_llama(args)
  File "/opt/executorch/examples/models/llama/export_llama_lib.py", line 508, in export_llama
    builder = _export_llama(args)
  File "/opt/executorch/examples/models/llama/export_llama_lib.py", line 783, in _export_llama
    from executorch.backends.qualcomm.utils.utils import canonicalize_program
ImportError: cannot import name 'canonicalize_program' from 'executorch.backends.qualcomm.utils.utils' (/opt/executorch/backends/qualcomm/utils/utils.py)

I checked the/opt/executorch/backends/qualcomm/utils/utils. Py files, do not canonicalize_program this method

Versions

main

cc @cccclai

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: qnnIssues related to Qualcomm's QNN delegate and code under backends/qualcomm/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions