Skip to content

Commit 85d075d

Browse files
committed
Style
1 parent f9ab362 commit 85d075d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

benchmark_v2/benchmark_scripts/continuous_batching_overall.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def _fmt(val: Any, spec: str = "", missing: str = "X") -> str:
3838
def _build_gsm8k_platinum_module() -> types.ModuleType:
3939
"""Define the gsm8k_platinum custom task inline so lighteval's Registry can pick it up via `custom_tasks=`."""
4040

41-
4241
def gsm8k_platinum_prompt(line, task_name=None):
4342
return Doc(
4443
task_name=task_name,
@@ -103,7 +102,9 @@ def score(outputs) -> float:
103102

104103

105104
# Data helpers
106-
def get_tokenized_gms8k(tokenizer: AutoTokenizer, n_fewshot: int = 8) -> tuple[list[list[int]], Callable[[Any], float]]:
105+
def get_tokenized_gms8k(
106+
tokenizer: AutoTokenizer, n_fewshot: int = 8
107+
) -> tuple[list[list[int]], Callable[[Any], float]]:
107108
"""GSM8K-Platinum few-shot inputs and scorer using the same lighteval extractive_match as the gsm8k task."""
108109
return _build_lighteval_inputs_scorer(
109110
tokenizer,

0 commit comments

Comments
 (0)