Improve code styles (#4021)

This commit is contained in:
Lianmin Zheng authored and GitHub committed 2025-03-03 03:20:23 -08:00
1 parent ac2387279e
commit 66301e124f
14 files changed
+88 -243

No files matched your search

@@ -329,12 +329,7 @@ class RuntimeEndpoint(BaseBackend):
def compute_normalized_prompt_logprobs(input_logprobs):
values = [x[0] for x in input_logprobs if x[0]]
try:
return sum(values) / len(values)
except TypeError:
print(f"{input_logprobs=}", flush=True)
print(f"{input_logprobs[0]=}", flush=True)
exit(-1)
return sum(values) / len(values)
class Runtime: