Skip to content

Commit

Permalink
Merge branch 'huggingface:main' into feature/gistembed
Browse files Browse the repository at this point in the history
  • Loading branch information
DemirTonchev authored Jan 29, 2025
2 parents 781c5fa + b961717 commit 117f36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/setfit/training_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ def __post_init__(self) -> None:

if self.report_to in (None, "all", ["all"]):
self.report_to = get_available_reporting_integrations()
elif self.report_to in ("none", ["none"]):
self.report_to = []
elif not isinstance(self.report_to, list):
self.report_to = [self.report_to]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_training_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def test_learning_rates(self):

def test_report_to(self):
args = TrainingArguments(report_to="none")
self.assertEqual(args.report_to, [])
self.assertEqual(args.report_to, ["none"])
args = TrainingArguments(report_to=["none"])
self.assertEqual(args.report_to, [])
self.assertEqual(args.report_to, ["none"])
args = TrainingArguments(report_to="hello")
self.assertEqual(args.report_to, ["hello"])

Expand Down

0 comments on commit 117f36e

Please sign in to comment.