Skip to content

Commit

Permalink
log warning when dataset strategy is not loadable
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Jan 23, 2024
1 parent 29663d8 commit 76b5c2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/axolotl/prompt_strategies/dpo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"""

import importlib
import logging

LOG = logging.getLogger("axolotl")


def load(strategy, cfg):
Expand All @@ -14,4 +17,5 @@ def load(strategy, cfg):
load_kwargs = {}
return func(cfg, **load_kwargs)
except Exception: # pylint: disable=broad-exception-caught
LOG.warning(f"unable to load strategy {strategy}")
return None

0 comments on commit 76b5c2d

Please sign in to comment.