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
6 changes: 5 additions & 1 deletion src/lighteval/main_accelerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ def accelerate( # noqa C901
Optional[str], Option(help="Load responses from details directory.", rich_help_panel=HELP_PANEL_NAME_1)
] = None,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down
6 changes: 5 additions & 1 deletion src/lighteval/main_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ def custom(
int, Option(help="Number of seeds to use for few-shot evaluation.", rich_help_panel=HELP_PANEL_NAME_1)
] = 1,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down
24 changes: 20 additions & 4 deletions src/lighteval/main_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def inference_endpoint(
Optional[str], Option(help="Load responses from details directory.", rich_help_panel=HELP_PANEL_NAME_1)
] = None,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down Expand Up @@ -188,7 +192,11 @@ def tgi(
Optional[str], Option(help="Load responses from details directory.", rich_help_panel=HELP_PANEL_NAME_1)
] = None,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down Expand Up @@ -320,7 +328,11 @@ def litellm(
Optional[str], Option(help="Load responses from details directory.", rich_help_panel=HELP_PANEL_NAME_1)
] = None,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down Expand Up @@ -486,7 +498,11 @@ def inference_providers(
),
] = False,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down
6 changes: 5 additions & 1 deletion src/lighteval/main_nanotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def nanotron(
],
lighteval_config_path: Annotated[str, Option(help="Path to a YAML config to be used for the evaluation.")],
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down
6 changes: 5 additions & 1 deletion src/lighteval/main_sglang.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ def sglang(
Optional[str], Option(help="Load responses from details directory.", rich_help_panel=HELP_PANEL_NAME_1)
] = None,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Expand Down
8 changes: 6 additions & 2 deletions src/lighteval/main_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ def vllm(
Optional[str], Option(help="Load responses from details directory.", rich_help_panel=HELP_PANEL_NAME_1)
] = None,
remove_reasoning_tags: Annotated[
bool, Option(help="Remove reasoning tags from responses.", rich_help_panel=HELP_PANEL_NAME_1)
] = False,
bool | None,
Option(
help="Remove reasoning tags from responses (true to remove, false to leave - true by default).",
rich_help_panel=HELP_PANEL_NAME_1,
),
] = True,
reasoning_tags: Annotated[
str | None,
Option(
Expand Down
Loading