".github/git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "ec1c21cdc4d9dcfc94f48b0dad182dc34b943553"
Unverified Commit 924c9790 authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

Update evaluator.py

parent d33149c5
...@@ -484,7 +484,7 @@ def evaluate( ...@@ -484,7 +484,7 @@ def evaluate(
if "alias" in metrics: if "alias" in metrics:
metrics.pop("alias") metrics.pop("alias")
if configs[task]["weight_by_size"]: if ("weight_by_size" in configs) and configs[task]["weight_by_size"]:
current_size = metrics.pop("samples") current_size = metrics.pop("samples")
else: else:
metrics.pop("samples") metrics.pop("samples")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment