Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/lighteval/utils/cache_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ def sync_wrapper(self, docs: List[Doc], *args, **kwargs):

@functools.wraps(model_call)
async def async_wrapper(self, docs: List[Doc], *args, **kwargs):
if isinstance(docs, Doc):
docs = [docs]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use as_list not remove entirely ^^"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mb, I misunderstood your comment. the new commit uses as_list.

results = [None] * len(docs)
with diskcache.Cache(self.config.cache_dir) as cache:
uncached_docs = []
Expand Down