Skip to content

Commit

Permalink
Merge pull request #1267 from exhyy/fix-mmlu
Browse files Browse the repository at this point in the history
fix task reloading of MMLU
  • Loading branch information
penguine-ip authored Jan 14, 2025
2 parents 9b34b7d + a2b8485 commit 4450ac8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions deepeval/benchmarks/mmlu/mmlu.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,10 @@ def batch_predict(

def load_benchmark_dataset(self, task: MMLUTask) -> List[Golden]:

if self.dataset:
dataset = self.dataset
else:
dataset = load_dataset(
"lukaemon/mmlu", task.value, trust_remote_code=True
)
self.dataset = dataset
dataset = load_dataset(
"lukaemon/mmlu", task.value, trust_remote_code=True
)
self.dataset = dataset

# If dataset has not been previously loaded, construct
# dataset of examples and save as instance var (to save time)
Expand Down

0 comments on commit 4450ac8

Please sign in to comment.