Skip to content

run_model get error when benchmark native int4 on CPU #9196

Open
@violet17

Description

@violet17
Traceback (most recent call last):
  File "/home/a770/crystal/benchmark/all-in-one/run.py", line 544, in <module>
    run_model(model, api, conf['in_out_pairs'], conf['local_model_hub'], conf['warm_up'], conf['num_trials'], conf['num_beams'])
  File "/home/a770/crystal/benchmark/all-in-one/run.py", line 60, in run_model
    np.mean(result[in_out_pair], axis=0)[0],
UnboundLocalError: local variable 'result' referenced before assignment

benchmark native int4 on CPU:
python run.py

bigdl-llm version: 2.4.0b20231015

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions