[Feature]: Add corrupted request metric to V1 metrics system. (#27306)

Signed-off-by: atalhens <sneh.lata@nutanix.com>
This commit is contained in:
Snehlata
2025-11-05 13:45:29 -08:00
committed by GitHub
parent 65ac8d8dc4
commit e15601789b
6 changed files with 51 additions and 13 deletions
+4
View File
@@ -122,6 +122,10 @@ class EngineCoreOutput(
# The number of tokens with prefix cache hits.
num_cached_tokens: int = 0
# The number of NaNs in logits.
# A value greater than 0 indicates that the output is corrupted.
num_nans_in_logits: int = 0
@property
def finished(self) -> bool:
return self.finish_reason is not None