From 118b3ae23bee1dd0827ebfcdd1f94a5859d120a1 Mon Sep 17 00:00:00 2001 From: Aoi <82735346+ryan-minato@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:59:57 +0900 Subject: [PATCH 1/2] fix: LightevalTaskConfig.stop_sequence attribute --- src/lighteval/tasks/lighteval_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lighteval/tasks/lighteval_task.py b/src/lighteval/tasks/lighteval_task.py index ea01f81e..21148175 100644 --- a/src/lighteval/tasks/lighteval_task.py +++ b/src/lighteval/tasks/lighteval_task.py @@ -130,7 +130,7 @@ def __post_init__(self): self.hf_avail_splits = tuple(self.hf_avail_splits) if self.hf_avail_splits is not None else None self.evaluation_splits = tuple(self.evaluation_splits) self.suite = tuple(self.suite) - self.stop_sequence = tuple(self.stop_sequence) if self.stop_sequence is not None else None + self.stop_sequence = tuple(self.stop_sequence) if self.stop_sequence is not None else tuple() def print(self): md_writer = MarkdownTableWriter() From e0d0c7af1df6996592a3d048b1aaa7f746a41a4b Mon Sep 17 00:00:00 2001 From: Aoi <82735346+ryan-minato@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:31:37 +0900 Subject: [PATCH 2/2] fix: linter --- src/lighteval/tasks/lighteval_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lighteval/tasks/lighteval_task.py b/src/lighteval/tasks/lighteval_task.py index 21148175..b2f26850 100644 --- a/src/lighteval/tasks/lighteval_task.py +++ b/src/lighteval/tasks/lighteval_task.py @@ -130,7 +130,7 @@ def __post_init__(self): self.hf_avail_splits = tuple(self.hf_avail_splits) if self.hf_avail_splits is not None else None self.evaluation_splits = tuple(self.evaluation_splits) self.suite = tuple(self.suite) - self.stop_sequence = tuple(self.stop_sequence) if self.stop_sequence is not None else tuple() + self.stop_sequence = tuple(self.stop_sequence) if self.stop_sequence is not None else () def print(self): md_writer = MarkdownTableWriter()