Skip to content

Commit

Permalink
fix json export to remove middleware (#1612) (#1613)
Browse files Browse the repository at this point in the history
Co-authored-by: Dipika Sikka <[email protected]>
  • Loading branch information
dsikka and Dipika Sikka authored Feb 21, 2024
1 parent c59aae4 commit 9622027
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 9622027

Please sign in to comment.