We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8494a51 + db228c2 commit caa1e4cCopy full SHA for caa1e4c
src/instructlab/eval/mmlu.py
@@ -6,6 +6,7 @@
6
# Third Party
7
from lm_eval.evaluator import simple_evaluate # type: ignore
8
from lm_eval.tasks import TaskManager # type: ignore
9
+import torch
10
11
# First Party
12
from instructlab.eval.evaluator import Evaluator
@@ -58,6 +59,7 @@ def run(self) -> tuple:
58
59
tasks=self.tasks,
60
num_fewshot=self.few_shots,
61
batch_size=self.batch_size,
62
+ device=("cuda" if torch.cuda.is_available() else "cpu"),
63
)
64
65
results = mmlu_output["results"]
0 commit comments