Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/oumi/core/evaluation/backends/alpaca_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

try:
import alpaca_eval # pyright: ignore[reportMissingImports]
import alpaca_eval.evaluate # pyright: ignore[reportMissingImports]
except ImportError:
alpaca_eval = None

Expand Down Expand Up @@ -125,7 +126,7 @@ def evaluate(
max_instances=task_params.num_samples,
sort_by=sort_by_metric,
**task_params.eval_kwargs,
) # type: ignore
)

# Metrics are only available on the main process, and `None` on others.
if not is_world_process_zero():
Expand Down
Loading