This commit is contained in:
Jorg Doku
2023-08-29 21:29:51 -05:00
parent 5b112b30c2
commit 5fd458381d
+2
View File
@@ -57,6 +57,8 @@ def concurrency_controller() -> bool:
def prepare_metrics() -> dict:
# The vLLM metrics are updated every 5 seconds, see metrics.py for the _LOGGING_INTERVAL_SEC field.
if hasattr(llm.engine, 'metrics'):
print("Showing metrics")
print(llm.engine.metrics)
return llm.engine.metrics
else:
return {}