Skip to content

Commit

Permalink
fix json export to remove middleware (#1612)
Browse files Browse the repository at this point in the history
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.coom>
  • Loading branch information
dsikka and Dipika Sikka authored Feb 20, 2024
1 parent 1eed6f6 commit b0a066e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/deepsparse/benchmark/benchmark_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ def _clear_measurements():
"Generated no batch timings, try extending benchmark time with '--time'"
)

if SupportedTasks.is_text_generation(task) or SupportedTasks.is_code_generation(
task
):
kwargs.pop("middleware_manager")

return batch_times, total_run_time, num_streams


Expand Down

0 comments on commit b0a066e

Please sign in to comment.