Update handler.py

This commit is contained in:
alpayariyak
2023-11-28 18:49:15 -05:00
parent 7cadff29f5
commit fdddeacf3c
+1 -1
View File
@@ -65,7 +65,7 @@ llm.engine._log_system_stats = lambda x, y: vllm_log_system_stats(
def concurrency_controller() -> int:
global TOTAL_RUNNING_JOBS
return min(0, MAX_CONCURRENCY - TOTAL_RUNNING_JOBS)
return max(0, MAX_CONCURRENCY - TOTAL_RUNNING_JOBS)
def prepare_metrics() -> dict: