Skip to content

Commit

Permalink
add more tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Nov 26, 2024
1 parent a0cf257 commit b712d98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/olmo_core/model_ladder.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def get_trainer_config(
:param size: The target model size.
:param gpu_type: The type of GPU as given by ``torch.cuda.get_device_name()``.
"""
from olmo_eval import list_tasks

rank_mbz = self.get_rank_microbatch_size(size=size, gpu_type=gpu_type)
if rank_mbz % self.sequence_length != 0:
raise OLMoConfigurationError(
Expand Down Expand Up @@ -303,7 +305,9 @@ def get_trainer_config(
.with_callback(
"downstream_evaluator",
DownstreamEvaluatorCallbackConfig(
tasks=["hellaswag"], # TODO: which other tasks?
tasks=[
task for task in list_tasks() if "_mc" not in task and "_var" not in task
],
tokenizer=self.tokenizer,
eval_interval=250,
),
Expand Down

0 comments on commit b712d98

Please sign in to comment.