Skip to content

Commit

Permalink
Update construct_requests method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi committed Apr 1, 2024
1 parent 0b51d45 commit 7607c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmms_eval/api/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from lmms_eval import utils
from lmms_eval.api import samplers
from lmms_eval.api.instance import Instance
from lmms_eval.api.samplers import FewShotDataset
from lmms_eval.api.samplers import FewShotDataset, Context

from lmms_eval.filters import build_filter_ensemble
from lmms_eval.api.registry import (
Expand Down Expand Up @@ -935,7 +935,7 @@ def doc_to_choice(self, doc: Any) -> List[str]:
else:
raise TypeError

def construct_requests(self, doc_id: int, ctx: str, **kwargs) -> Union[List[Instance], Instance]:
def construct_requests(self, doc_id: int, ctx: Context, **kwargs) -> Union[List[Instance], Instance]:
split = kwargs.get("split")
kwargs.pop("split")
if self.OUTPUT_TYPE == "loglikelihood":
Expand Down

0 comments on commit 7607c28

Please sign in to comment.