diff --git a/apps/accelerate/speedster/speedster/root_op.py b/apps/accelerate/speedster/speedster/root_op.py index c0942af9..8b940abb 100644 --- a/apps/accelerate/speedster/speedster/root_op.py +++ b/apps/accelerate/speedster/speedster/root_op.py @@ -364,7 +364,7 @@ def execute( "model size", f"{original_model_size / 1e6:.2f} MB", f"{optimized_models[0][0].get_size() / 1e6:.2f} MB", - f"{int((optimized_models[0][0].get_size()-original_model_size) / original_model_size)}%", # noqa: E501 + f"{min(int((optimized_models[0][0].get_size()-original_model_size) / original_model_size * 100), 0)}%", # noqa: E501 ], ["metric drop", "", opt_metric_drop, ""], [