Skip to content

Commit

Permalink
Fix run.py run_ipex_fp16_gpu (#11361)
Browse files Browse the repository at this point in the history
* fix a bug on run.py

* Update run.py

fixed the format problem

---------

Co-authored-by: sgwhat <[email protected]>
  • Loading branch information
RyuKosei and sgwhat authored Jun 20, 2024
1 parent b2f62a8 commit 05a8d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/dev/benchmark/all-in-one/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def run_ipex_fp16_gpu(repo_id,
print(output[0])
if i >= warm_up:
result[in_out].append([model.first_cost, model.rest_cost_mean, model.encoder_time,
actual_in_len, actual_out_len, load_time])
actual_in_len, actual_out_len, load_time, model.peak_memory])
del model
torch.xpu.empty_cache()
return result
Expand Down

0 comments on commit 05a8d05

Please sign in to comment.