Skip to content

Commit

Permalink
fix messages strat loader
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Oct 11, 2024
1 parent 14d4b16 commit 0e08627
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/axolotl/prompt_strategies/messages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def load(tokenizer, cfg, ds_cfg, processor=None):
if strategy.split(".")[-1].startswith("load_"):
load_fn = strategy.split(".")[-1]
strategy = ".".join(strategy.split(".")[:-1])
mod = importlib.import_module(f".{strategy}", "axolotl.prompt_strategies")
mod = importlib.import_module(
f".{strategy}", "axolotl.prompt_strategies.messages"
)
func = getattr(mod, load_fn)
load_kwargs = {}
sig = inspect.signature(func)
Expand Down

0 comments on commit 0e08627

Please sign in to comment.