Skip to content
Merged
Show file tree
Hide file tree
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 opencompass/openicl/icl_evaluator/icl_base_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def evaluate(
):
# Check if predictions and references have the
# same length if both are provided
if 'predictions' in score_kwargs and 'references' in score_kwargs:
if ('predictions' in score_kwargs and 'references' in score_kwargs
and score_kwargs['references'] is not None):
if len(score_kwargs['predictions']) != len(
score_kwargs['references']):
raise ValueError(
Expand Down
413 changes: 195 additions & 218 deletions opencompass/tasks/openicl_eval.py

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions opencompass/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
from .lark import * # noqa
from .logging import * # noqa
from .menu import * # noqa
from .model_postprocessors import * # noqa
from .network import * # noqa
from .postprocessors import * # noqa
from .prompt import * # noqa
from .result_station import * # noqa
from .text_postprocessors import * # noqa
135 changes: 0 additions & 135 deletions opencompass/utils/model_postprocessors.py

This file was deleted.

Empty file.
11 changes: 0 additions & 11 deletions opencompass/utils/postprocessors/naive/PROMPT_TEMPLATE.py

This file was deleted.

71 changes: 0 additions & 71 deletions opencompass/utils/postprocessors/naive/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions opencompass/utils/postprocessors/naive/__init__.py

This file was deleted.

121 changes: 0 additions & 121 deletions opencompass/utils/postprocessors/naive/extractor.py

This file was deleted.

Loading